当我更新了命令行curl OSX后,如何将libcurl更新到7.21.7?
我已经构建了curl 并将二进制文件和/.libs 复制到/usr/bin。该命令现在给出:
curl 7.21.7 (x86_64-apple-darwin10.8.0) libcurl/7.21.7 OpenSSL/0.9.8k zlib/1.2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM SSL libz
然而,curl_version() 给出:
libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3
如何在 OSX 10.6.8 上更新 libcurl?
谢谢。
我在 /usr/bin 下也有这些文件:
/usr/lib/libcurl.2.dylib
/usr/lib/libcurl.3.dylib
/usr/lib/libcurl.4.dylib
/usr/lib/libcurl.dylib
我是否必须编译其中另一个文件?我不知道如何、用什么、在哪里。我也有这些:
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.2.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.3.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.4.0.0.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.4.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcurl.2.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcurl.3.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcurl.4.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcurl.dylib
I've built curl and copied the binary and /.libs over to /usr/bin. The command now gives:
curl 7.21.7 (x86_64-apple-darwin10.8.0) libcurl/7.21.7 OpenSSL/0.9.8k zlib/1.2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM SSL libz
Yet curl_version() gives:
libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3
How do I update libcurl as well on OSX 10.6.8?
Thank you.
I also have these files under /usr/bin:
/usr/lib/libcurl.2.dylib
/usr/lib/libcurl.3.dylib
/usr/lib/libcurl.4.dylib
/usr/lib/libcurl.dylib
Do I have to compile another one of these? I don't know how, with what, where. I also have these:
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.2.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.3.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.4.0.0.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.4.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcurl.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcurl.2.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcurl.3.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcurl.4.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcurl.dylib
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,我使用了我最终在互联网上的安装手册中找到的命令:
./configure
制作
sudo make install
然后我将 dylib 移动到我的程序链接到的 dylib 位置。遗憾的是,编译的 dylib 是在 i386 中而不是 x86-64 中,但它可以工作。
To do it I used the commands I finally found in an installation manual on the internet:
./configure
make
sudo make install
THen I moved the dylib to the dylib location linked to by my program. Shame the dylib compiled is in i386 and not x86-64 but it works.