首页 » Linux » Transmission » transmission报错`libiconv_open'`libiconv'`libiconv_close'

transmission报错`libiconv_open'`libiconv'`libiconv_close'

 

transmission编译时报错如下:

./libtransmission.a(utils.o): In function to_utf8':
/usr/src/transmission-2.92/libtransmission/utils.c:1047: undefined reference to
libiconv_open'
/usr/src/transmission-2.92/libtransmission/utils.c:1050: undefined reference to libiconv'
/usr/src/transmission-2.92/libtransmission/utils.c:1052: undefined reference to
libiconv_close'
collect2: ld returned 1 exit status
make[1]: *** [bitfield-test] Error 1
make[1]: Leaving directory `/usr/src/transmission-2.92/libtransmission'
make: *** [all-recursive] Error 1

此报错是因为没有libiconv

解决办法:

安装libiconv包

然后进入transmission目录重新编译transmission,注意要使用CFLAGS=-liconv参数

 

PS:还有一种undefined reference to event_free报错,可能是libevent冲突导致,卸载掉rpm包,编译安装试试

原文链接:transmission报错`libiconv_open'`libiconv'`libiconv_close',转载请注明来源!

1