[英]Linux: Curl installed but -bash: :curl: command not found
Running Debian Stretch on an r710.在 r710 上运行 Debian Stretch。 Using the non-free/contrib build for driver support.使用 non-free/contrib 构建来支持驱动程序。
When I try to use packages that I've installed (curl, zpool, etc), I have to include the path to the package... Which is a pain when I don't always know where packages install to.当我尝试使用已安装的包(curl、zpool 等)时,我必须包含包的路径......当我并不总是知道包安装到哪里时,这很痛苦。
Two questions:两个问题:
which <command>
/usr/bin/curl
cd /usr/local/bin; ln -s $(which curl) curl
echo "alias curl='$(which curl)'" >> ~/.bashrc; . ~/.bashrc
printf "%s\n" $PATH
Use the export command to add new paths and see if that works you can then update your ~/.bashrc or ~/.bash_profile, but first you can try in shell without adding it permanent to $PATH使用 export 命令添加新路径,看看是否可行,然后您可以更新 ~/.bashrc 或 ~/.bash_profile,但首先您可以在 shell 中尝试,而不将其永久添加到 $PATH
export PATH=$PATH:/missed/bin/folder
function path(){
old=$IFS
IFS=:
printf "%s\n" $PATH
IFS=$old
}
Just install it by:只需通过以下方式安装它:
apt install curl安装卷曲
or sudo apt install curl或 sudo apt install curl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.