linux编译安装出现问题

shadylplplp 2017-06-03 11:37:41
是在linux中安装一个叫spro的东西
http://www.irisa.fr/metiss/guig/spro/install.html
按照官网的教程 下载4.0的安装之后安装出现的问题

先是./configure
root@ubuntu:~/Desktop/spro-4.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/root/Desktop/spro-4.0/auxdir/missing: Unknown `--run' option
Try `/root/Desktop/spro-4.0/auxdir/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for library containing strerror... none required
checking for function prototypes... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for size_t... yes
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 8
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for string.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for _doprnt... no
./configure: line 6057: CF_GCC_WARNINGS: command not found
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating auxdir/Makefile
config.status: creating test/Makefile
config.status: creating test/ref/Makefile
config.status: creating test/dat/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


然后在make
root@ubuntu:~/Desktop/spro-4.0# make
make all-recursive
make[1]: Entering directory '/root/Desktop/spro-4.0'
Making all in doc
Making all in auxdir
make[2]: Entering directory '/root/Desktop/spro-4.0/auxdir'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Desktop/spro-4.0/auxdir'
Making all in test
make[2]: Entering directory '/root/Desktop/spro-4.0/test'
Making all in ref
make[3]: Entering directory '/root/Desktop/spro-4.0/test/ref'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test/ref'
Making all in dat
make[3]: Entering directory '/root/Desktop/spro-4.0/test/dat'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test/dat'
make[3]: Entering directory '/root/Desktop/spro-4.0/test'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test'
make[2]: Leaving directory '/root/Desktop/spro-4.0/test'
make[2]: Entering directory '/root/Desktop/spro-4.0'
gcc -g -O2 -o scopy scopy.o getopt.o getopt1.o -lm -L. -lspro
./libspro.a(misc.o): In function `spf_buf_normalize':
/root/Desktop/spro-4.0/misc.c:276: undefined reference to `sqrt'
/root/Desktop/spro-4.0/misc.c:185: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_lifter':
/root/Desktop/spro-4.0/misc.c:402: undefined reference to `sin'
./libspro.a(misc.o): In function `sig_normalize':
/root/Desktop/spro-4.0/misc.c:425: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_sig_win':
/root/Desktop/spro-4.0/misc.c:458: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:473: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:473: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:465: undefined reference to `cos'
collect2: error: ld returned 1 exit status
Makefile:307: recipe for target 'scopy' failed
make[2]: *** [scopy] Error 1
make[2]: Leaving directory '/root/Desktop/spro-4.0'
Makefile:386: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/Desktop/spro-4.0'
Makefile:202: recipe for target 'all' failed
make: *** [all] Error 2


make已经报错了。。好像configure就错了。。。
继续make install是下面这样了

root@ubuntu:~/Desktop/spro-4.0# make install
Making install in doc
make[1]: Entering directory '/root/Desktop/spro-4.0/doc'
make[2]: Entering directory '/root/Desktop/spro-4.0/doc'
make[2]: Nothing to be done for 'install-exec-am'.
/bin/bash ../auxdir/mkinstalldirs /usr/local/info
/usr/bin/install -c -m 644 ./spro.info /usr/local/info/spro.info
install-info --info-dir=/usr/local/info /usr/local/info/spro.info
install-info: warning: no info dir entry in `/usr/local/info/spro.info'
make[2]: Leaving directory '/root/Desktop/spro-4.0/doc'
make[1]: Leaving directory '/root/Desktop/spro-4.0/doc'
Making install in auxdir
make[1]: Entering directory '/root/Desktop/spro-4.0/auxdir'
make[2]: Entering directory '/root/Desktop/spro-4.0/auxdir'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Desktop/spro-4.0/auxdir'
make[1]: Leaving directory '/root/Desktop/spro-4.0/auxdir'
Making install in test
make[1]: Entering directory '/root/Desktop/spro-4.0/test'
Making install in ref
make[2]: Entering directory '/root/Desktop/spro-4.0/test/ref'
make[3]: Entering directory '/root/Desktop/spro-4.0/test/ref'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test/ref'
make[2]: Leaving directory '/root/Desktop/spro-4.0/test/ref'
Making install in dat
make[2]: Entering directory '/root/Desktop/spro-4.0/test/dat'
make[3]: Entering directory '/root/Desktop/spro-4.0/test/dat'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test/dat'
make[2]: Leaving directory '/root/Desktop/spro-4.0/test/dat'
make[2]: Entering directory '/root/Desktop/spro-4.0/test'
make[3]: Entering directory '/root/Desktop/spro-4.0/test'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test'
make[2]: Leaving directory '/root/Desktop/spro-4.0/test'
make[1]: Leaving directory '/root/Desktop/spro-4.0/test'
make[1]: Entering directory '/root/Desktop/spro-4.0'
gcc -g -O2 -o scopy scopy.o getopt.o getopt1.o -lm -L. -lspro
./libspro.a(misc.o): In function `spf_buf_normalize':
/root/Desktop/spro-4.0/misc.c:276: undefined reference to `sqrt'
/root/Desktop/spro-4.0/misc.c:185: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_lifter':
/root/Desktop/spro-4.0/misc.c:402: undefined reference to `sin'
./libspro.a(misc.o): In function `sig_normalize':
/root/Desktop/spro-4.0/misc.c:425: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_sig_win':
/root/Desktop/spro-4.0/misc.c:458: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:473: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:473: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:465: undefined reference to `cos'
collect2: error: ld returned 1 exit status
Makefile:307: recipe for target 'scopy' failed
make[1]: *** [scopy] Error 1
make[1]: Leaving directory '/root/Desktop/spro-4.0'
Makefile:386: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1


请大佬们帮帮忙 我百度了半天还是不知道是怎么回事
谢谢!

...全文
667 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
y4ung 2017-06-04
  • 打赏
  • 举报
回复
我不是很熟悉linux..谢邀。。 我看到 Makefile:202: recipe for target 'all' failed 你试试先make clean试试?。。。我之前也遇到过这样的问题
楼兰公子 2017-06-04
  • 打赏
  • 举报
回复
你这明显是缺少库支持,查一下那个recursive的相关库文件
ckc 2017-06-04
  • 打赏
  • 举报
回复
/root/Desktop/spro-4.0/auxdir/missing: Unknown `--run' option Try `/root/Desktop/spro-4.0/auxdir/missing --help' for more information configure: WARNING: `missing' script is too old or missing 这里的问题就需要解决,运行 /root/Desktop/spro-4.0/auxdir/missing --help 看看有没有什么帮助 考虑重新下载最新版本的源代码, 或者看看这个东西在哪个版本的linux下可以成功编译
shadylplplp 2017-06-03
  • 打赏
  • 举报
回复
对了 文件权限已经777了 所以应该不是文件权限问题

19,613

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧