Oplossing Ruby on MacosX
Zoals mijn vorige post al deed blijken zat ik tot op nu met een probleem om ruby (zowel 1.8.7 alsook 1.9.1) op macosX goed draaiende te krijgen.
RUBY
De oplossing: RVM!
RVM is een tool die het op een gemakkelijke manier mogelijk maakt om verschillende rubies (en bijhorende gems) te installeren in hun eigen omgeving, allemaal in user space.
Dit is dus een veel betere oplossing dan die dat ik uitgezocht had.
Wat het juist doet en hoe het in z’n werk gaat is gemakkelijk te vinden in hun documentatie.
De installatie was dan ook gebeurd in enkele stappen.
Ik heb eerst alles wat ik in mijn vorige post uitgevoerd heb ongedaan gemaakt en de rubies onder ports uninstalled.
Daarna heb ik met git (installeerbaar via ports) rvm binnengehaald en geïnstalleerd.
Onder RVM ruby 1.9.1 en 1.8.7 geïnstalleerd enzodoor.
Ondernomen stappen:
—————————————————————————
% mkdir -p .rvm/src && cd .rvm/src
% git clone –depth 1 git://github.com/wayneeseguin/rvm.git
% cd rvm && ./install
Daarna, wat het scriptje me verteld, voeg ik volgend lijntje toe aan .zshrc:
if [[ -s /Users/fredle/.rvm/scripts/rvm ]] ; then source /Users/fredle/.rvm/scripts/rvm ; fi
—————————————————————————
Wens je nu bv ruby 1.8.7 (van ruby-lang.org) te installeren voer je gewoon het volgend uit:
—————————————————————————
rvm install 1.8.7
—————————————————————————
Er zijn verschillende implementatie’s beschikbaar die op deze manier kunnen geïnstalleerd worden, ze zijn terug te vinden op http://rvm.beginrescueend.com/interpreters/.
Om te wisselen van versie in de huidige terminal voer je gewoon uit:
—————————————————————————
% rvm 1.8.7
% ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10.2.0]
% which ruby
/Users/fredle/.rvm/rubies/ruby-1.8.7-p249/bin/ruby
—————————————————————————
Om een default ruby in te stellen voor jouw user:
—————————————————————————
% rvm –default 1.8.7
—————————————————————————
Om de lijst van geïnstaleerde rubies te zien:
—————————————————————————
% rvm list rubies
—————————————————————————
etc, alle informatie vind je terug op de documentatie.
RAILS
Ik maak nu gebruik van RVM ruby 1.8.7, daaronder wil ik rails met mongrel gebruiken.
De fout die ik kreeg bij het draaien van een verse rails app (zie vorige ports) was het gevolg dat sqlite3 de standaard is bij een verse app, maar dat sqlite3-ruby niet geïnstalleerd was.
Voer uit (pas aan indien je bv een andere database wenst te gebruiken dan MySQL) :
—————————————————————————
% gem install mongrel sqlite3-ruby rails mysql dbi dbd_mysql
—————————————————————————
Ik heb geen enkel probleem meer bij zowel het draaien van rails onder mongrel als bij het aanspreken van Mysql#connect.
Pluspunt bij deze oplossing is dat je heel gemakkelijk per project aparte instantie’s kan opzetten met een speciefieke ruby en enkel de geïnstalleerde gems die nodig zijn voor dat 1 project.
Notitie
RVM is beschikbaar op meerdere OS’es, dit is dus niet een oplossing enkel voor MacOSX


Cheap@Actonel.35mg” rel=”nofollow”>……
Buyit now oil…
Cheap@Actoplus.Met.Online” rel=”nofollow”>..…
Buygeneric meds qmo…
Order@Actos.Without.Prescription” rel=”nofollow”>..…
Buygeneric pills zdg…
Cheap@Generic.Actos.15mg.30mg” rel=”nofollow”>.…
Buygeneric drugs zfk…
Generic@Actos.15mg.30mg.Without.Prescription” rel=”nofollow”>..…
Buygeneric drugs krg…
Purchase@Abilify.Without.Prescription” rel=”nofollow”>..…
Buygeneric meds abx…
Purchase@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>..…
Buywithout prescription yen…
Order@Generic.Acai” rel=”nofollow”>..…
Buyno prescription wkp…
Cheap@Acai.Without.Prescription” rel=”nofollow”>……
Buydrugs without prescription jlg…
Cheap@Generic.Acai.500mg” rel=”nofollow”>..…
Buyno prescription tao…
Buy@Discount.Energy.Boost” rel=”nofollow”>.…
Buygeneric drugs itj…
Buy@Discount.Accutane” rel=”nofollow”>.…
Buygeneric drugs nih…
Purchase@Discount.Accutane” rel=”nofollow”>.…
Buygeneric drugs mby…
Buy@Generic.Accutane” rel=”nofollow”>……
Buygeneric meds svb…
Purchase@Generic.Accutane” rel=”nofollow”>.…
Buygeneric drugs axm…
Buy@Accutane.10mg.20mg” rel=”nofollow”>……
Buynow it zdg…
Cheap@Aciphex.Without.Prescription” rel=”nofollow”>……
Buyit now sge…
Buy@Cheap.Actonel” rel=”nofollow”>……
Buydrugs without prescription vrg…
Cheap@Actonel.Online” rel=”nofollow”>..…
Buydrugs without prescription faj…
Get@Actonel.Online” rel=”nofollow”>..…
Buygeneric drugs ajd…
Order@Actonel.Without.Prescription” rel=”nofollow”>..…
Buyno prescription jwi…
Purchase@Advair.Online” rel=”nofollow”>..…
Buyno prescription jui…
Buy@Generic.Advair” rel=”nofollow”>.…
Buygeneric drugs ouw…
Buy@Advair.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs hwi…
Order@Advair.Without.Prescription” rel=”nofollow”>.…
Buyit now ojb…
Cheap@Generic.Advair” rel=”nofollow”>.…
Buydrugs without prescription xab…
Order@Discount.Albenza” rel=”nofollow”>.…
Buynow it lmg…
Purchase@Cheap.Albenza” rel=”nofollow”>……
Buyit now knc…
actoplus@met.side.effects” rel=”nofollow”>..…
Buyit now…
abilify@and.sleep.issues” rel=”nofollow”>..…
Buydrugs without prescription…
accutane@verdict.buy” rel=”nofollow”>..…
Buydrugs without prescription…
adalat@asus.buy” rel=”nofollow”>.…
Buydrugs without prescription…
allopurinol@atrial.fibrillation” rel=”nofollow”>.…
Buygeneric pills…
aloe@vera.juice.for.sale” rel=”nofollow”>..…
Buyit now…
side@effects.of.aricept” rel=”nofollow”>..…
Buyit now…
norvasc and theophylline…
Buy_drugs without prescription…
c-section scar pain symptoms pregnancy…
Buy_generic drugs…
over the counter birth control…
Buy_generic meds…
urinary tract infection canine…
Buy_generic pills…
birth control pills for pms symptoms…
Buy_drugs without prescription…
behavior symptoms of prescription drug addiction…
Buy_generic meds…
otc proton pump inhibitors…
Buy_no prescription…
honey for diabetes…
Buy_generic meds…
gall bladder cancer surgery…
Buy_it now…
warfarin sod…
Buy_drugs without prescription…
verapamil side effects…
Buy_drugs without prescription…
rapid weight loss…
Buy_generic drugs…
cheap travel nebulizer…
Buy_generic drugs…
how strength training effects osteoporosis…
Buy_generic drugs…
xanax and pregnancy…
Buy_generic pills…