SUSE Linux Enterprise Server 11 SP3源码安装R过程(2)

configure:32570: gcc -std=gnu99 -o conftest-g -O2 -fpic  -I/usr/local/include  -I/usr/include/libxml2-I/usr/local/include/pango-1.0 -I/usr/local/include/cairo-I/usr/local/include/harfbuzz -I/usr/local/include/freetype2-I/usr/local/include -I/usr/local/include/glib-2.0-I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/libpng16  -L/usr/local/lib64 conftest.c -lrt -ldl-lm  -L/usr/local/lib -lpangocairo-1.0-lpango-1.0 -lgobject-2.0 -lglib-2.0 -lpng16 -lz -lcairo  >&5

conftest.c:233:24: error: cairo-xlib.h: Nosuch file or directory

configure:32570: $? = 1

解决办法:这是安装了cairo,但是编译cairo时没有加--enable-xlib=yes参数

5.    /libreadline.so: undefined reference to….

configure R时候readline报错,查看config.log:

configure:20905: checking forrl_callback_read_char in -lreadline

configure:20930: gcc -o conftest -g -O2-I/usr/local/include -L/usr/local/lib64 conftest.c -lreadline  >&5

/usr/local/lib/libreadline.so: undefinedreference to `tputs'

/usr/local/lib/libreadline.so: undefinedreference to `tgoto'

/usr/local/lib/libreadline.so: undefinedreference to `tgetflag'

/usr/local/lib/libreadline.so: undefinedreference to `UP'

/usr/local/lib/libreadline.so: undefinedreference to `tgetent'

/usr/local/lib/libreadline.so: undefinedreference to `tgetnum'

/usr/local/lib/libreadline.so: undefinedreference to `PC'

/usr/local/lib/libreadline.so: undefinedreference to `tgetstr'

/usr/local/lib/libreadline.so: undefinedreference to `BC'

collect2: ld returned 1 exit status

configure:20930: $? = 1

解决办法: zypper in ncurses-devel

6.  error: cannot compile a simple Fortranprogram

configure R 时候报错:

checking for Fortran 77 libraries ofgfortran...

checking how to get verbose linking outputfrom gcc -std=gnu99... -v

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/14139.html