Parsley:构建后无法执行命令行工具。“加载共享库时出错:libparsley.so.0”

发布于 2024-08-05 09:24:56 字数 623 浏览 2 评论 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 新手,所以我陷入了困境..这就是我所做的:

  1. 我正在使用 Ubuntu 9.04 64 位
  2. 我下载了我运行的源代码
  3. “sudo ./configure”并根据需要安装了依赖项(使用 apt-get)
  4. 我运行了“make install”
  5. 我尝试通过输入“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:

  1. I'm using Ubuntu 9.04 64bit
  2. I downloaded the source
  3. I ran "sudo ./configure" and installed dependencies (using apt-get) as necessary
  4. I ran "make install"
  5. I attempted to run parsley by typing "parsley"

Any ideas? thanks.

  • Alex

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

烟─花易冷 2024-08-12 09:24:56

问题似乎已经消失了,或者至少我不能说我做了任何事情来解决它,但它不再发生。我唯一的猜测(抓住救命稻草)是,当我昨天安装 Ubuntu 的建议更新时,某些内容发生了变化或得到了修复,从而影响了这一点。

更新:事实证明,我需要运行:

sudo ldconfig

一定发生了更新我的系统为我运行的情况。

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:

sudo ldconfig

What must have happened is updating my system ran that for me.

硪扪都還晓 2024-08-12 09:24:56

看来该文件必须从您拥有的源代码编译
您应该在“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

骑趴 2024-08-12 09:24:56

“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 are ldd doesn't find libparsley.so.0 either.

If so, the problem is that "make install" didn't install libparsley.so.0 into the right place. Find that right place, and move libparsley.so.0 (as well as libparsley.so.0.0.0) there (I believe on 64-bit Ubuntu /usr/lib32 is the right place if libparsley.so.0.0.0 is a 32-bit library, and /usr/lib (or /usr/lib64) if it is a 64-bit library).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文