忍者ブログ

素人翻訳

適当に翻訳する。

id3v2にはid3libが必要

 id3v2-0.1.11のmakeで以下のエラーが出た。

[M_@localhost id3v2-0.1.11]$ make
g++ -I/usr/local/include/ -DVERSION="\"0.1.11\"" -c -o convert.o convert.cpp
convert.cpp:3:21: error: id3/tag.h: そのようなファイルやディレクトリはありません
convert.cpp: In function ‘void DeleteTag(int, char**, int, int)’:
convert.cpp:22: error: ‘ID3_Tag’ was not declared in this scope
convert.cpp:22: error: expected ‘;’ before ‘myTag’
convert.cpp:27: error: ‘myTag’ was not declared in this scope
convert.cpp:28: error: ‘ID3TT_ALL’ was not declared in this scope
convert.cpp:30: error: ‘luint’ was not declared in this scope
convert.cpp:30: error: expected ‘;’ before ‘nTags’
convert.cpp:34: error: ‘nTags’ was not declared in this scope
convert.cpp:34: error: ‘ID3TT_ID3V1’ was not declared in this scope
convert.cpp:38: error: ‘ID3TT_ID3V2’ was not declared in this scope
convert.cpp:43: error: ‘ID3TT_ID3’ was not declared in this scope
convert.cpp: In function ‘void ConvertTag(int, char**, int)’:
convert.cpp:58: error: ‘ID3_Tag’ was not declared in this scope
convert.cpp:58: error: expected ‘;’ before ‘myTag’
convert.cpp:63: error: ‘myTag’ was not declared in this scope
convert.cpp:64: error: ‘ID3TT_ALL’ was not declared in this scope
convert.cpp:66: error: ‘luint’ was not declared in this scope
convert.cpp:66: error: expected ‘;’ before ‘nTags’
convert.cpp:68: error: ‘nTags’ was not declared in this scope
convert.cpp:68: error: ‘ID3TT_ID3V2’ was not declared in this scope
make: *** [convert.o] エラー 1
[M_@localhost id3v2-0.1.11]$

 id3lib-3.8.3をインストールして解決。

 インストール後、

[M_@localhost id3v2-0.1.11]$ id3v2 --help
id3v2: error while loading shared libraries: libid3-3.8.so.3: cannot open shared object file: No such file or directory
[M_@localhost id3v2-0.1.11]$

 ソースコードから入れたlibid3が/usr/local/libにあるのに

export LD_LIBRARY_PATH="/usr/local/lib"

を忘れていた。id3v2を作り直し、入れ直して解決

PR

mp3info の mandir

 mp3info-0.8.5a を付属のMakefileで構築しようとしたら下記のエラーが出た。

[M_@localhost]$ make mp3info
gcc -g -O2 -Wall -c -o mp3info.o mp3info.c
gcc -g -O2 -Wall -c -o textfunc.o textfunc.c
gcc -g -O2 -Wall -c -o mp3curs.o mp3curs.c
gcc -g -O2 -Wall -c -o mp3tech.o mp3tech.c
gcc -g -O2 -Wall -o mp3info mp3info.o textfunc.o mp3curs.o mp3tech.o -lncurses
[M_@localhost mp3info-0.8.5a]$ sudo make install
[sudo] password for M_:
strip mp3info
/usr/bin/install -c mp3info /usr/local/bin/mp3info
/usr/bin/install -c mp3info.1 /usr/local/man/man1/mp3info.1
/usr/bin/install: 通常ファイル `/usr/local/man/man1/mp3info.1' を作成できません: そのようなファイルやディレクトリはありません
make: *** [install-mp3info] エラー 1
[M_@localhost mp3info-0.8.5a]$

 Makefileを見ると、

...
...
prefix=/usr/local
bindir=${prefix}/bin
mandir = $(prefix)/man/man1
...
...

 /usr/local に必要なディレクトリを作って解決。

[M_@localhost mp3info-0.8.5a]$ sudo mkdir -p /usr/local/man/man1
[M_@localhost mp3info-0.8.5a]$ sudo make install-mp3info

カレンダー

03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

最新コメント

[08/18 NONAME]
[05/18 NONAME]
[04/09 NONAME]
[03/21 NONAME]
[03/20 NONAME]

最新記事

ブログ内検索

広告

バーコード

広告