Gå til innhold

Får ikkje til script/console


Anbefalte innlegg

Skrevet

Mens eg satt og skreiv denne feilmeldinga så dukka det opp ein lausning. Sidan andre og garantert vil bryne seg med dette seianre så deler eg lausningsforslaget :)

 

Feilmelding:

olav@olav-laptop:~/railapps/empurium$ script/console development

Loading development environment.

/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)

        from /usr/local/lib/ruby/1.8/irb/completion.rb:10

        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'

        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'

        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'

        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'

        from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'

        from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'

        from /usr/local/bin/irb:13

 

Fiks... Kjelde: http://ruphus.com/blog/2007/01/27/installi...-on-ubuntu-lts/

 

ror-fan wrote:

 

I had the same problem with script/console in kubuntu. I thought that your solution was a bit lengthy. So, after further search I found a couple of links that solved the problem in a simpler manner. Check them out:

http://ubuntuforums.org/showthread.php?t=169891

http://blog.nanorails.com/articles/2006/03...line-on-kubuntu

 

Steps that worked for me:

1.) Download ruby source.

Download Here

2.) Extract the tar file.

tar -xvf ruby-1.8.5-p12.tar.gz

3.) Change to that directory

cd ruby-1.8.5-p12.tar.gz

4.) Type these commands.

./configure

make

sudo make install

5.) Install readline and ncurses.

apt-get install libncurses5-dev libreadline5-dev

6.) go back to the folder ruby source folder.

ruby-1.8.5-p12.tar.gz

7.) Type these commands

cd ext

cd readline

ruby extconf.rb

make

sudo make install

 

Thats it. The console bug no longer appears.

  • 2 uker senere...
Videoannonse
Annonse
Skrevet

Hva var problemstillinga?

Skulle du innstallere ruby/starte?

 

Jeg tror jeg så noe liknede da jeg startet min..

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...