libdb2.so.1: cannot open shared object file: No such file or directory

Got this error while deploying a Rails app on Nginx:

libdb2.so.1: cannot open shared object file: No such file or directory - ... ibm_db.so

This means that the ibm_db adapter is installed, but it can’t find the DB2 libraries. The issue is that IBM_DB_HOME and some other environment variables are not set.

The best solution is to make sure all users have db2profile loaded. Edit /etc/profile and add:

. /opt/dsdriver/db2profile

You should now reload your profile (. /etc/profile) and restart Nginx.

This assumes that you already have IBM Data Server Driver installed under /opt/dsdriver.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 10,129评论 0 23
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,568评论 5 6
  • 【禅语】 灯,为夜幕带来丝丝光明,为黑暗带来点点希望。人的心中该有一盏明灯,指引自己前行的道路,这样,路遇荆棘也...
    武汉如心阅读 699评论 0 1
  • 阴雨天,桌前办公电脑亮闪闪,我却看着一阵发蒙。写不下去啊,恰在此时,天天妈邀我看电影。欣然应邀,目标:美国队长3,...
    海豚的微笑阅读 228评论 0 0
  • 看朋友玩简书,知道了"打赏"这个词。今我也打赏一下,因为心中的感动。 我的前一个手机是猪猪托朋友从厂家买的, 比市...
    放飞放飞阅读 361评论 7 4