免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3314 | 回复: 8
打印 上一主题 下一主题

编译安装一个软件的一般步骤是什么? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-05-10 18:31 |只看该作者 |倒序浏览
如题。
用惯了package和ports安装软件。这回想装一个清华BBS,下了一大堆tar.gz软件,可是不会装了,谁能说说一般的安装方法?
第一步,用./configure?大体怎样用,看哪些说明文件?
第二步,make?
第三步,make install?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2003-05-10 19:16 |只看该作者

编译安装一个软件的一般步骤是什么?

首先,看看软件的帮助文档,一般是
readme或者todo或者install或者在doc目录里面

然后可以使用./configure -help看看配置帮助,结合前面的帮助决定怎么配置
然后安装,然后进行设置,然后启动。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2003-05-10 23:43 |只看该作者

编译安装一个软件的一般步骤是什么?

甚至可以把源里每一个文件都打开看看,

C写的多,好看得很...

论坛徽章:
0
4 [报告]
发表于 2003-05-11 07:51 |只看该作者

编译安装一个软件的一般步骤是什么?

还是不太明白,说的具体一些把。我想先装一个M4-1.4。
首先用tar zxvf把下载的文件释放到目录中,然后,进入该目录,用命令:
./configure
loading cache ./config.cache
checking for mawk... (cached) nawk
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets $MAKE... (cached) yes
checking for ranlib... (cached) ranlib
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... (cached) no
checking for gcc option to accept ANSI C... (cached)
checking for function prototypes... yes
checking for working const... (cached) yes
checking for limits.h... (cached) yes
checking for memory.h... (cached) yes
checking for siginfo.h... (cached) no
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether cross-compiling... (cached) no
checking for ANSI C header files... (cached) yes
checking return type of signal handlers... (cached) void
checking for size_t... (cached) yes
checking for mkstemp... (cached) yes
checking for sigaction... (cached) yes
checking for sigaltstack... (cached) yes
checking for sigstack... (cached) no
checking for sigvec... (cached) yes
checking for strerror... (cached) yes
checking for tmpfile... (cached) yes
checking for working alloca.h... (cached) no
checking for alloca... (cached) yes
checking for vprintf... (cached) yes
checking for strtol... (cached) yes
checking ecvt declaration... no
checking for ecvt... (cached) no
checking if stack overflow is detectable... yes
checking if changeword is wanted... no
checking if malloc debugging is wanted... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating lib/Makefile
creating src/Makefile
creating checks/Makefile
creating examples/Makefile
creating config.h
config.h is unchanged

然后,用命令make:
for subdir in doc lib src checks examples; do  echo making all in $subdir;  (cd $subdir && make CC='gcc' CFLAGS='-g -O' LDFLAGS='' LIBS=''  prefix='/usr/local' exec_prefix='/usr/local'  bindir='/usr/local/bin' infodir='/usr/local/info' all) || exit 1;  done
making all in doc
making all in lib
making all in src
making all in checks
making all in examples

然后,用命令make install:
for subdir in doc lib src checks examples; do  echo making install in $subdir;  (cd $subdir && make CC='gcc' CFLAGS='-g -O' LDFLAGS='' LIBS=''  prefix='/usr/local' exec_prefix='/usr/local'  bindir='/usr/local/bin' infodir='/usr/local/info' install) || exit 1;  done
making install in doc
./../mkinstalldirs /usr/local/info
cd . && for file in m4.info*; do  /usr/bin/install -c -m 644 $file /usr/local/info/$file;  done
making install in lib
making install in src
./../mkinstalldirs /usr/local/bin
/usr/bin/install -c m4 /usr/local/bin/`echo m4 | sed 's,x,x,'`
making install in checks
making install in examples

看起来好像是完成了,但是,用pkg_info看一下:
e3-2.31             A full featured text editor written in assembler
expat-1.95.5        XML 1.0 parser written in C
gettext-0.11.5_1    GNU gettext package
gmake-3.79.1_3      GNU version of 'make' utility
libiconv-1.8_1      A character set conversion library
libtool-1.3.4_4     Generic shared library support script
lynx-2.8.4.1c       A non-graphical, text-based World-Wide Web client
mysql-client-3.23.52 Multithreaded SQL database (client)
mysql-server-3.23.52_1 Multithreaded SQL database (server)
nasm-0.98.33,1      General-purpose multi-platform x86 assembler
p5-DBI-1.28         The perl5 Database Interface.  Required for DBD::* modules
p5-Data-ShowTable-3.3 Perl5 module to pretty-print arrays of data
p5-Mysql-modules-1.2216 Perl5 modules for accessing MySQL databases
proftpd-1.2.6       Highly configurable ftp daemon
ssh-1.2.33          Secure shell client and server (remote login program)
zh-zhcon-0.2_4      A fast Console Chinese System which supports framebuffer de

根本看不到M4-1.4被安装了的样子啊。
怎么办呢?

论坛徽章:
0
5 [报告]
发表于 2003-05-11 10:49 |只看该作者

编译安装一个软件的一般步骤是什么?

pkg_info只能看到用pkg_add安装的packages

'pkg_info - a utility for displaying information on software packages'

论坛徽章:
0
6 [报告]
发表于 2003-05-11 12:37 |只看该作者

编译安装一个软件的一般步骤是什么?

那,怎么知道一个软件已经安装在freebsd上了呢?

论坛徽章:
0
7 [报告]
发表于 2003-05-11 12:41 |只看该作者

编译安装一个软件的一般步骤是什么?

[quote]原帖由 "提问或回答"]那,怎么知道一个软件已经安装在freebsd上了呢?[/quote 发表:

use find to find it
man find

论坛徽章:
0
8 [报告]
发表于 2003-05-11 12:45 |只看该作者

编译安装一个软件的一般步骤是什么?

[quote]原帖由 "提问或回答"]那,怎么知道一个软件已经安装在freebsd上了呢?[/quote 发表:


pkg_info

  OR

#ls /var/db/pkg

论坛徽章:
0
9 [报告]
发表于 2003-05-11 12:47 |只看该作者

编译安装一个软件的一般步骤是什么?

原帖由 "kinux" 发表:


pkg_info

  OR

#ls /var/db/pkg

老兄,他是用source装的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP