Parsley:构建后无法执行命令行工具。“加载共享库时出错:libparsley.so.0”
我正在开始使用 Parsley (parslets.com),这是一个从网页解析数据的有趣工具。
http://parselets.com/dev/command_line
我已经下载了源代码,构建了它,并且现在我无法运行它:
parsley: error while loading shared libraries: libparsley.so.0: cannot open shared object file: No such file or directory
我是一个 *nix 新手,所以我陷入了困境..这就是我所做的:
- 我正在使用 Ubuntu 9.04 64 位
- 我下载了我运行的源代码
- “sudo ./configure”并根据需要安装了依赖项(使用 apt-get)
- 我运行了“make install”
- 我尝试通过输入“parsley”来运行欧芹
有什么想法吗?谢谢。
- 亚历克斯
I'm getting started with Parsley (parslets.com), an interesting tool to parse data out of webpages.
http://parselets.com/dev/command_line
I've downloaded the source, built it, and now I'm unable to run it:
parsley: error while loading shared libraries: libparsley.so.0: cannot open shared object file: No such file or directory
I'm a bit of a *nix newbie, so I'm stuck on this.. here is what I did:
- I'm using Ubuntu 9.04 64bit
- I downloaded the source
- I ran "sudo ./configure" and installed dependencies (using apt-get) as necessary
- I ran "make install"
- I attempted to run parsley by typing "parsley"
Any ideas? thanks.
- Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
问题似乎已经消失了,或者至少我不能说我做了任何事情来解决它,但它不再发生。我唯一的猜测(抓住救命稻草)是,当我昨天安装 Ubuntu 的建议更新时,某些内容发生了变化或得到了修复,从而影响了这一点。
更新:事实证明,我需要运行:
一定发生了更新我的系统为我运行的情况。
The problem seems to have gone away, or at least I can't say I did anything to fix it but it no longer happens. My only guess (grasping at straws) is that when I installed the suggested updates for Ubuntu yesterday something changed or got fixed that affected this.
Update: It turns out, I needed to run:
What must have happened is updating my system ran that for me.
看来该文件必须从您拥有的源代码编译
您应该在“sudo make install”之前先输入“make”
它将把 parsley.c 文件编译为 parsley.so.0
It appear that this file must be compiled from the source that you have
You should type 'make' first before 'sudo make install'
It will compile the parsley.c file to parsley.so.0
“ldd parsley”
说什么?很可能ldd
也找不到libparsley.so.0
。如果是这样,问题是
"make install"
没有将libparsley.so.0
安装到正确的位置。找到正确的位置,然后将 libparsley.so.0 (以及libparsley.so.0.0.0
)移到那里(我相信在 64 位 Ubuntu 上/usr/lib32
如果libparsley.so.0.0.0
是 32 位库,并且/usr/lib
(或/usr/lib64
code>) 如果它是 64 位库)。What does
"ldd parsley"
say? Chances areldd
doesn't findlibparsley.so.0
either.If so, the problem is that
"make install"
didn't installlibparsley.so.0
into the right place. Find that right place, and move libparsley.so.0 (as well aslibparsley.so.0.0.0
) there (I believe on 64-bit Ubuntu/usr/lib32
is the right place iflibparsley.so.0.0.0
is a 32-bit library, and/usr/lib
(or/usr/lib64
) if it is a 64-bit library).