免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1316 | 回复: 0
打印 上一主题 下一主题

LDCONFIG应用问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-24 09:09 |只看该作者 |倒序浏览
我在FreeBSD下,搞PHP的Java扩展遇到了一些问题,来跟大家讨论一下。

老是提示这样的错误。Unable to load Java Library 。

我找了一下相关文章说,是我LDCONFIG配置的问题。我运行ldconfig -m $JAVA_HOME/jre/lib/i386 我运行之后,用ldconfig -r并没有看到什么结果。当然$java我是改为了我Java的安装目录。我不知道怎样才可以让ldconfig加载Java那些库文件。谁可以教一下我?

文章原文:
Apache
--------
Apache needs pthreads, you can do it before the configure command, ie:
LDFLAGS=-lpthread ./configure --prefix=/www/web1 \ etc etc

After it is installed, edit apachectl and add at the top somewhere:
export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386JAVA_HOME/jre/lib/i386/server

I tried to add those paths to /etc/ld.so.conf (and running ldconfig -v)
but a test php page with:
echo "<RE>;";
system("ldd /usr/java/j2sdk1.4.2/jre/lib/i386/*"
showed many "not founds"
therefore I stuck with the LD_LIBRARY_PATH
ran it again and all was ok - all the libraries resolved ok.
Setting the LD_LIBRARY_PATH correctly should dissolve all errors such as:
Cannot instantiate non-existent class:
cannot open shared object file:
Unable to load Java Library
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP