2011-01-20 195 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文件