似乎无法在linux上安装id3v2,似乎没有任何错误

发布于 2024-10-14 02:18:59 字数 1234 浏览 1 评论 0原文

我正在尝试按照说明安装 id3v2。我安装了 id3lib 并没有收到任何错误。我现在尝试按照他们的建议执行“make”,然后“make install”。

当我完成这个过程时,我得到以下答复。

我假设我可以通过输入“id3v2 .....”来使用该程序

,但是,系统似乎找不到该命令。这是否意味着该程序没有安装?如果是这样,我将如何尝试找到解决方案?

[root@ip-xxx-xxx-xxx-xxx 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
[root@ip-xxx-xxx-xxx-xxx 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
[root@ip-xxx-xxx-xxx-xxx 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是否正常?我是不是找错树了?

I'm tryin to follow the direction to install id3v2. I installed id3lib and did not receive any errors. I now try to do "make" and then "make install" as they suggest that I do.

I get the following responses when I go through the process.

I was under the assumption that I would be able to use the program by typing "id3v2 ....."

However, it seems that the system doesn't find the command. Does that mean the program was not installed? If so, how would I try to find a solution?

[root@ip-xxx-xxx-xxx-xxx 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
[root@ip-xxx-xxx-xxx-xxx 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
[root@ip-xxx-xxx-xxx-xxx id3v2-0.1.12]# id3v2
-bash: id3v2: command not found

I've looked at the make file itself and it says:

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

The Prefix hard coded into the make file is:

/opt/local

Now I think it must be true that it is installing it in the wrong directory. Is it normal to adjust the Makefile? am I barking up the wrong tree?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海不蓝 2024-10-21 02:18:59

您安装的路径很可能不在 $PATH 中。您可以使用完整路径来调用它:

/opt/local/bin/id3v2

或将此路径添加到您的 $PATH:

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

要使其永久,请将此行附加到 $HOME/.profile

Most likely path where you installed is not in $PATH. You can either call it with the full path:

/opt/local/bin/id3v2

or add this path to your $PATH:

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

To make it permanent append this line to $HOME/.profile

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文