如何让 httrack 在 mac os x 上使用 SSL?(未找到 libssl.so)

如何让 httrack 在 mac os x 上使用 SSL?(未找到 libssl.so)

我正在尝试使用 httrack 网站复制器,但该程序正在运行并报告“no-ssl”(即:它没有复制安全网站的能力)。

从看此主题,问题似乎出在我制作和配置程序时,或者在我运行程序时,它没有找到我安装的 lib-ssl / open-ssl。我认为它正在寻找/var/root/lib/libssl.so.1.0

该论坛上的用户表示,他创建了一个符号链接,允许 httrack 在非默认位置找到 ssl 库。也许这就是我需要做的 - 但我在哪里创建链接?我没有看到我libssl.so的系统上安装了任何文件。我需要开发包吗?如果需要,我该如何安装?我使用 macports 安装了我拥有的当前版本的 openssl。我正在运行 OS X 10.6。

研究

我已运行此命令来尝试调试:

dtruss httrack 2>&1 | grep ssl

输出如下内容:

stat64("libssl.so.1.0\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.1.0\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.1.0\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.1.0\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.1\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.1\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.1\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.1\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.1.0.0\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.1.0.0\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.1.0.0\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.1.0.0\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8p\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8p\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8p\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8p\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8o\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8o\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8o\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8o\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8n\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8n\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8n\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8n\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8m\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8m\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8m\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8m\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8l\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8l\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8l\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8l\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8k\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8k\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8k\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8k\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8j\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8j\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8j\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8j\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8g\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8g\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8g\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8g\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8b\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8b\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8b\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8b\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.8\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.8\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.8\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.8\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.7\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.7\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.7\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.7\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so.0.9.6\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so.0.9.6\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so.0.9.6\0", 0x7FFF5FBFF210, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so.0.9.6\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("libssl.so\0", 0x7FFF5FBFEE30, 0x7FFF5FBFF470) = -1 错误#2
stat64("/var/root/lib/libssl.so\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/local/lib/libssl.so\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2
stat64("/usr/lib/libssl.so\0", 0x7FFF5FBFF220, 0x7FFF5FBFF470) = -1 错误#2

我已经使用 mac 端口安装了 open-ssl:

>> 端口已安装

当前已安装以下端口:
  beecrypt @4.2.1_2 (活跃)
  cpio @2.10_0(活跃)
  expat @2.0.1_1 (活跃)
  flex@2.5.35_0(活跃)
  gettext @0.18.1.1_2 (活跃)
  gperf @3.0.4_0(活跃)
  icu @4.6_0(活跃)
  libiconv @1.13.1_0(活跃)
  mysql5 @5.1.53_0(活跃)
  ncurses @5.9_0(活跃)
  ncursesw @5.8_0(活跃)
  霓虹灯@0.29.5_0(活跃)
 openssl @1.0.0c_0(活跃)
  perl5.8 @5.8.9_3(活跃)
  popt @1.16_0(活跃)
  python24 @2.4.6_7(活跃)
  readline @6.1.002_0 (活跃)
  rpm @4.4.9_10(活跃)
  sqlite3 @3.7.3_0(活跃)
  zlib @1.2.5_0(活跃)

以下是安装位置:

>> 找到 libssl

/opt/local/lib/libssl.1.0.0.dylib
/opt/local/lib/libssl.a
/opt/local/lib/libssl.dylib
/opt/local/lib/pkgconfig/libssl.pc
/opt/local/var/macports/软件/openssl/1.0.0c_0/opt/local/lib/libssl.1.0.0.dylib
/opt/local/var/macports/软件/openssl/1.0.0c_0/opt/local/lib/libssl.a
/opt/local/var/macports/软件/openssl/1.0.0c_0/opt/local/lib/libssl.dylib
/opt/local/var/macports/软件/openssl/1.0.0c_0/opt/local/lib/pkgconfig/libssl.pc
/usr/lib/libssl.0.9.7.dylib
/usr/lib/libssl.0.9.8.dylib
/usr/lib/libssl.0.9.dylib
/usr/lib/libssl.dylib
/usr/lib/pkgconfig/libssl.pc

下一步我应该做什么?

更多信息

我尝试了以下解决方案:

$ DYLD_INSERT_LIBRARIES="/opt/local/lib/libssl.1.0.0.dylib" httrack

欢迎使用 HTTrack 网站复制器(离线浏览器)3.44-1-nossl
版权所有 (C) Xavier Roche 和其他贡献者
要查看选项列表,请输入一个空白行或尝试 httrack --help

仍然无法加载 ssl 库:3.44-1-nossl

答案1

您可以尝试以下操作:

DYLD_LIBRARY_PATH="/opt/local/lib" httrack

也许:

DYLD_INSERT_LIBRARIES="/opt/local/lib/libssl.1.0.0.dylib" httrack

如果不起作用,请提供 httrack 的错误输出。您是从源代码构建的,还是下载了二进制文件?

答案2

当 httrack 加载时,它会查找 openssl 库。由于它是为 linux/unix 设计的,因此它假定 open ssl 库将被称为 libssl.so,而当它在 mac 上被命名为其他名称时,它就找不到它。

运行此命令来创建一个名为 libssl.so 的符号链接,该符号链接指向正确的文件:

sudo ln -s /usr/lib/libssl.dylib /usr/lib/libssl.so

通过

相关内容