Readline not working in rvm - Ubuntu 11.10

后端 未结 6 1836
终归单人心
终归单人心 2021-01-04 09:43

I am using rvm on my ubyntu 11.10. My readline is not working, I tried ruby extconf.rb but it is not passed. Output is bellow:

$ ruby extconf.rb         


        
6条回答
  •  难免孤独
    2021-01-04 10:28

    Same issue as here Readline errors prevent me running rails console

    Under ubuntu you can use the system readline installation.

    rvm uninstall ${YOURUBYVERSION}
    sudo apt-get install libreadline-dev
    rvm install ${YOURUBYVERSION} --with-readline-dir=/usr/include/readline
    

    Substitute ${YOURUBYVERSION} with your desired ruby version.

提交回复
热议问题