我的理解是应该安装curl。我曾尝试curl
从Unix命令行使用,但得到了找不到该消息的消息。我想知道我为清除bash PATH所做的努力是否分离了卷曲(显然是sed)的访问权限?我遇到的另一个理论是,优胜美地的安全性“增强”功能破坏了早期的curl安装。
machine-name:~ myusername$ curl -h
/usr/local/bin/curl: line 61: X/usr/local/bin/curl: No such file or directory
/usr/local/bin/curl: line 61: /usr/local/bin/sed: No such file or directory
/usr/local/bin/curl: line 65: /usr/local/bin/sed: No such file or directory
/usr/local/bin/curl: line 125: /usr/local/bin/curl: error: `/Users/myusername/.libs/curl' does not exist: No such file or directory
/usr/local/bin/curl: line 126: This script is just a wrapper for curl.: command not found
See the libtool documentation for more information.
$ echo $PATH
/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/local/share/Scala/bin/:/Library/TeX/texbin:/Library/Frameworks/GDAL.framework/Programs/:/Library/Frameworks/GEOS.framework/Programs/:/Users/davidwinsemius/anaconda/bin/
我曾试着移至usr/local/bin
bash路径上的“行前线”,以为这是系统软件的首选位置。如果我执行locate curl
输出,将继续输出页面,并且我还将得到:
machine:~ myusername$ which curl
/usr/local/bin/curl
尽管我获得了$curl -h
尝试获取版本的手册页,但失败了:
$usr/bin/curl -V
-bash: usr/bin/curl: No such file or directory
这可能反映了我的Unix noob关于如何检查和管理与可执行程序的链接的知识上的空白。当我在该文件上使用Finder / GetInfo工具时,会看到它称为Unix可执行文件。出现错误的行:“`/Users/myusername/.libs/curl'不存在:没有这样的文件或目录”令我特别困惑。我希望有人可以向我提供一些有关将命令行功能恢复为curl的适当命令行工具的提示。
这是在运行OSX 10.11.4(15E65)的2008早期MacPro上发生的。
Curl不是shell脚本(请参见错误输出中的第126行),并且在不知道如何/usr/local/bin/curl
安装的情况下,建议您移动(重命名)脚本,直到可以弄清安装方式为止。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句