Sqlite-3 error while running ROR application

后端 未结 4 1428
礼貌的吻别
礼貌的吻别 2020-12-18 08:51

When i try to run Ruby on Rails application.... i facing the following error

symbol lookup error: /home/user/.rvm/gems/ruby-1.9.2-preview3/gems/sqlite3-ruby-1.3.0/l

4条回答
  •  没有蜡笔的小新
    2020-12-18 09:09

    I'm had the same issue on my Dreamhost server:

    > bundle exec rails c 
    ruby: symbol lookup error: /home/user/settings/installs/rubygems/gems/gems/sqlite3-ruby-1.3.0/lib/sqlite3/sqlite3_native.so: undefined symbol: sqlite3_initialize
    

    I downloaded and installed SQLite3 manually in my home directory, and added LD_LIBRARY_PATH to my .bashrc. This fixed the Rails console issue.

    However, I still haven't gotten the app to launch in passenger yet, I'm still working on it.

提交回复
热议问题