cannot load such file — readline (LoadError) when running heroku create --stack cedar

后端 未结 8 1076
猫巷女王i
猫巷女王i 2020-12-13 19:02

I\'m trying to deploy my Rails application to Heroku to test it out by following these instructions:

http://devcenter.heroku.com/articles/rails3#prerequisites

<
相关标签:
8条回答
  • 2020-12-13 19:21

    The easiest way to install dependencies for ruby is to run:

    rvm remove 1.9.3
    

    And then

    rvm install 1.9.3
    

    Before the last command actually installs ruby, it will ask you to install dependencies. In my case I got this tip:

    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
    

    This should be run in another terminal before continuing the install.

    0 讨论(0)
  • 2020-12-13 19:23

    Such an error usually occurs when your rvm ruby was compiled without readline extension (which happens when there weren't readline headers installed before ruby compilation). So, try the following: install libreadline-dev, then reinstall ruby:

    rvm remove 1.9.3 
    rvm install 1.9.3
    
    0 讨论(0)
提交回复
热议问题