查看完整版本 : -bash: /usr/bin/aria2c: No such file or directory

alvin19 2012-12-6 09:32 PM

-bash: /usr/bin/aria2c: No such file or directory

小弟用緊Ubuntu 12.10, 用apt-get install aria2, 但發覺版本較舊, 所以download 左新版嘅tar.bz 安裝, 但安裝後執行aria2c, 會出現標題的error message

小弟用locate 搵aria2c, 發覺去左 /usr/local/bin 內, google一下發現原來經apt-get 會裝落/usr/bin內, 但make install 會去左/usr/local/bin內

小弟喺 ~/.bashrc 內加左句 alias aria2c="/usr/local/bin/aria2c", 但唔成功, 又試過nano ~/.bash_aliases 內加句 alias aria2c="/usr/local/bin/aria2c" 都係唔得(

請問有咩方法可以修正個shortcut? 唔該晒!:loveliness:

[[i] 本帖最後由 alvin19 於 2012-12-6 09:46 PM 編輯 [/i]]

alvin19 2012-12-6 09:59 PM

打左句 ln -s /usr/local/bin/aria2c  /usr/bin/aria2c 解決左, 但請問有冇其他方法呢? 唔該! :loveliness:

生日會旁邊鴨 2012-12-13 09:59 PM

*** 作者被禁止或刪除 內容自動屏蔽 ***

yongtin 2012-12-26 04:49 PM

> export PATH=/usr/local/bin:${PATH}
> which aria2c

alvin19 2013-1-2 09:17 PM

[quote]原帖由 [i]yongtin[/i] 於 2012-12-26 04:49 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=350376224&ptid=21220704][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]
> export PATH=/usr/local/bin:${PATH}
> which aria2c [/quote]
唔該晒 youngtin兄, 我試試先 :loveliness:
頁: [1]
查看完整版本: -bash: /usr/bin/aria2c: No such file or directory