2011-01-20 194 views
0

我試着按照指示安裝id3v2。我安裝了id3lib,並沒有收到任何錯誤。我現在嘗試做「make」,然後「make install」,因爲他們建議我這樣做。似乎無法在Linux上安裝id3v2,似乎沒有任何錯誤

當我經歷過程時,我會得到以下回復。

我的假設,我將能夠通過鍵入使用該程序下的「ID3V2 .....」

然而,似乎該系統沒有找到該命令。這是否意味着程序沒有安裝?如果是這樣,我將如何嘗試找到解決方案?

[[email protected] id3v2-0.1.12]# make 
g++ -Wall -I/opt/local/include/ -DVERSION="\"0.1.12\"" -c -o convert.o convert.cpp 
g++ -Wall -I/opt/local/include/ -DVERSION="\"0.1.12\"" -c -o list.o list.cpp 
g++ -Wall -I/opt/local/include/ -DVERSION="\"0.1.12\"" -c -o id3v2.o id3v2.cpp 
g++ -Wall -I/opt/local/include/ -DVERSION="\"0.1.12\"" -c -o genre.o genre.cpp 
g++ -L/opt/local/lib/ -pedantic -Wall -g -o id3v2 convert.o list.o id3v2.o genre.o -lz -lid3 
[[email protected] id3v2-0.1.12]# make install 
install -c -s id3v2 /opt/local/bin/id3v2 
nroff -man id3v2.1 > /opt/local/share/man/man1/id3v2.1 
[[email protected] id3v2-0.1.12]# id3v2 
-bash: id3v2: command not found 

我看了make文件本身和它說:

install: all 
     install -c -s id3v2 ${PREFIX}/bin/id3v2 
     nroff -man id3v2.1 > ${PREFIX}/share/man/man1/id3v2.1 

前綴硬編碼到make文件是:

/選擇/本地

現在我認爲它一定是真的,它將它安裝在錯誤的目錄中。調整Makefile是否正常?我吠叫錯了樹嗎?

+0

屬於在http://superuser.com – 2011-01-21 09:30:23

+0

我聽到有關「關閉我的網站」的各種建議。爲什麼不建議我把它移到unix/linux組?我已經在所有這些不同的帳戶上設立了帳戶,並盡我所能將其放在最合適的地方。不是每個人都同意某個問題屬於哪裏。 – Scott 2011-01-22 17:52:17

回答

1

您安裝的最有可能的路徑不在$ PATH中。您可以使用完整路徑調用它:

/opt/local/bin/id3v2 

或將此路徑添加到您的$ PATH:

export $PATH=$PATH:/opt/local/bin 

要使其永久追加這一行$ HOME/.profile文件