- 论坛徽章:
- 0
|
编译安装一个软件的一般步骤是什么?
还是不太明白,说的具体一些把。我想先装一个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被安装了的样子啊。
怎么办呢? |
|