edozwd 写了:1、cd到解压出来的文件夹
2、./confingure,看提示少了什么依赖,少什么装什么,用apt-get install
有时提示东西可能直接找找不到,可以试试在install 后的软件名加上*号,一般会出来很多个软件,可以不用全都装,取消后再重新install带dev的软件,然后再./configure
3、make,如果你的CPU是双核,可以在后面加参数 -j2,编译起来会快点
4、sudo make install
5、sudo make clean,这是清除编译遗留下来的一些东西,也可以不用这一步
6、完成,自己到菜单里找找看软件在哪里吧
这些天摸索的有点头绪了,但是我在装checkinstall-1.6.2.tar.gz时,make时出错了,不知道怎么回事。解压出来的文件夹里没有configure文件,里面已经有makefile文件,所以我直接make的。make的结果如下,帮我看看吧:
ycshope@ycshope-laptop:~/软件/checkinstall-1.6.2$ make
for file in locale/checkinstall-*.po ; do \
case ${file} in \
locale/checkinstall-template.po) ;; \
*) \
out=`echo $file | sed -s 's/po/mo/'` ; \
msgfmt -o ${out} ${file} ; \
if [ $? != 0 ] ; then \
exit 1 ; \
fi ; \
;; \
esac ; \
done
make -C installwatch
make[1]: 正在进入目录 `/home/ycshope/软件/checkinstall-1.6.2/installwatch'
./create-localdecls
Checking truncate argument type... off_t
Checking readlinkat result type... ssize_t
Checking libc version... libc.so.6
Checking glibc subversion... Treated as glibc >= 2.1 (finger crossed)
gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"0.7.0beta7\" installwatch.c
installwatch.c:3080: error: conflicting types for ‘scandir’
/usr/include/dirent.h:252: note: previous declaration of ‘scandir’ was here
installwatch.c:3692: error: conflicting types for ‘scandir64’
/usr/include/dirent.h:275: note: previous declaration of ‘scandir64’ was here
make[1]: *** [installwatch.o] 错误 1
make[1]:正在离开目录 `/home/ycshope/软件/checkinstall-1.6.2/installwatch'
make: *** [all] 错误 2