![Ubuntu 16.04 程序安装程序问题](https://linux22.com/image/1138149/Ubuntu%2016.04%20%E7%A8%8B%E5%BA%8F%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F%E9%97%AE%E9%A2%98.png)
当我输入 make 时得到的完整错误是
Making install in libraries/utils
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
make install-am
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -std=c++0x -g -Wall -O0 -fno-omit-frame-pointer -g -O2 -c -o libutils_la-patAbsTime.lo `test -f 'patAbsTime.cc' || echo './'`patAbsTime.cc
rm: cannot remove '.libs/libutils_la-patAbsTime.o': Permission denied
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -std=c++0x -g -Wall -O0 -fno-omit-frame-pointer -g -O2 -c patAbsTime.cc -fPIC -DPIC -o .libs/libutils_la-patAbsTime.o
Assembler messages:
Fatal error: can't create .libs/libutils_la-patAbsTime.o: Permission denied
Makefile:873: recipe for target 'libutils_la-patAbsTime.lo' failed
make[2]: *** [libutils_la-patAbsTime.lo] Error 1
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
Makefile:1080: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
Makefile:445: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5'
Makefile:377: recipe for target 'all' failed
make: *** [all] Error 2
我正在尝试在 Ububtu 16.04 中安装一个软件,该软件配置良好,但是当我输入 make 时出现以下错误
c:19: undefined reference to `patHybridMatrix::cholesky(double, patError*&)'
collect2: error: ld returned 1 exit status
Makefile:460: recipe for target 'biogeme' failed
make[2]: *** [biogeme] Error 1
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/biogeme'
Makefile:445: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5'
Makefile:377: recipe for target 'all' failed
make: *** [all] Error 2
我也尝试了 sudo make install 和 checkinstal,但都不起作用。当我使用 checkinstall 时,出现以下错误
aking install in libraries/utils
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
make install-am
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
make[3]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/utils'
Making install in libraries/linearAlgebra
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/linearAlgebra'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/linearAlgebra'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/linearAlgebra'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/linearAlgebra'
Making install in libraries/trustRegion
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/trustRegion'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/trustRegion'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/trustRegion'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/trustRegion'
Making install in libraries/cfsqp
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/cfsqp'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/cfsqp'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/cfsqp'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/cfsqp'
Making install in libraries/solvopt
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/solvopt'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/solvopt'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/solvopt'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/solvopt'
Making install in libraries/randomNumbers
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/randomNumbers'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/randomNumbers'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/randomNumbers'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/randomNumbers'
Making install in libraries/gaussHermite
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/gaussHermite'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/gaussHermite'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/gaussHermite'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/gaussHermite'
Making install in libraries/parameters
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/parameters'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/parameters'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/parameters'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/parameters'
Making install in libraries/bisonbiogeme
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/bisonbiogeme'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/bisonbiogeme'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/bisonbiogeme'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/bisonbiogeme'
Making install in libraries/pythonbiogeme
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/pythonbiogeme'
make install-am
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/pythonbiogeme'
make[3]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/pythonbiogeme'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/pythonbiogeme'
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/pythonbiogeme'
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/libraries/pythonbiogeme'
Making install in tools/histograms
make[1]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/tools/histograms'
make[2]: Entering directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/tools/histograms'
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c weightedhistogram histogram '/usr/local/bin'
/usr/bin/install: cannot remove '/usr/local/bin/weightedhistogram': Permission denied
/usr/bin/install: cannot remove '/usr/local/bin/histogram': Permission denied
Makefile:348: recipe for target 'install-binSCRIPTS' failed
make[2]: *** [install-binSCRIPTS] Error 1
make[2]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/tools/histograms'
Makefile:459: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/ioanna/Desktop/Biogeme/biogeme-2.5/tools/histograms'
Makefile:445: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
**** Installation failed. Aborting package creation.
Restoring overwritten files from backup... FAILED!
Cleaning up...OK
谢谢 Ioanna