Note that there are some explanatory texts on larger screens.

plurals
  1. POReadline errors prevent me running rails console
    primarykey
    data
    text
    <p>My environment is rails 3.1, ruby 1.9.2, rvm, Xubuntu 11.10.</p> <p>When I try to run the rails console within an app, I am getting require errors pointing at readline.</p> <p>So I am trying to install readline as a package within RVM, but this is the error I am getting:</p> <pre><code>Applying patch '/home/rob/.rvm/patches/readline-6.2/patch-shobj-conf.diff'... ERROR: Error running 'patch -p0 -f &lt; /home/rob/.rvm/patches/readline-6.2/patch-shobj- conf.diff', please read /home/rob/.rvm/log/readline/patch.log ERROR: Patch /home/rob/.rvm/patches/readline-6.2/patch-shobj-conf.diff did not apply cleanly... back to the patching board :( </code></pre> <p>The log contains</p> <pre><code>[2011-10-26 10:16:30] patch -p0 -f &lt; /home/rob/.rvm/patches/readline-6.2/patch-shobj-conf.diff patching file support/shobj-conf Hunk #1 FAILED at 157. 1 out of 2 hunks FAILED -- saving rejects to file support/shobj-conf.rej </code></pre> <p>I've tried </p> <pre><code>$ rvm pkg install readline $ rvm remove 1.9.2 $ rvm install 1.9.2 --with-readline-dir=$rvm_path/usr </code></pre> <p>And</p> <pre><code>$ cd $HOME/.rvm/src/ruby-1.9.2-p0/ext/readline $ ruby extconf.rb $ make install </code></pre> <p>The latter gives me</p> <pre><code>checking for tgetnum() in -lncurses... yes checking for readline/readline.h... yes checking for readline/history.h... yes checking for readline() in -lreadline... no checking for readline() in -ledit... no checking for editline/readline.h... no </code></pre> <p>Running 'rails server' works, so I think the problem is just with readline.</p> <p>Can anyone point me in the right direction.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload