LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 北南南北

用源码包安装php-4.34+mysql-4.0.16+apache-2.0.48+vbb-2.32实践总结

[复制链接]
发表于 2004-2-3 19:58:51 | 显示全部楼层

Re:i659

解压后,会在目录里看见[INSTALL]文本文件,这就是安装指导!(其实所有的源码安装包解压后都可以找到README,INSTALL等文本文件,用K文字处理打开就看。)里面详细说了5个步骤,完成这些步骤后,就可以在/usr/local/bin目录里看见ipupdate.文件了,好像还不需要手工再拷贝的。我在红旗4.0下面就是这样安装好的。但是,奇怪的是,现在我在Mandrake9.2下面却在“make”的时候报错:[sky@localhost ez-ipupdate-3.0.10]$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
[sky@localhost ez-ipupdate-3.0.10]$ su
Password:
[root@localhost ez-ipupdate-3.0.10]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... /usr/bin/install -c
checking return type of signal handlers... (cached) void
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for socket... (cached) yes
checking for strdup... (cached) yes
checking for getopt_long... (cached) yes
checking for gethostbyaddr... (cached) yes
checking for getservbyname... (cached) yes
checking for inet_addr... (cached) yes
checking for inet_ntoa... (cached) yes
checking for snprintf... (cached) yes
checking for vfprintf... (cached) yes
checking for stat... (cached) yes
checking for vsprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for strerror... (cached) yes
checking for strftime... (cached) yes
checking for wait... (cached) yes
checking for waitpid... (cached) yes
checking for getpid... (cached) yes
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for inet_aton... (cached) yes
checking for herror... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for signal.h... (cached) yes
checking for syslog.h... (cached) yes
checking for pwd.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for grp.h... (cached) yes
checking for errno.h... (cached) yes
checking for sys/sockio.h... (cached) no
checking for sys/wait.h... (cached) yes
checking for getopt.h... (cached) yes
checking for unistd.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for netdb.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys_errlist in -lc... (cached) yes
checking for getopt... (cached) yes
checking for getpass... (cached) yes
checking host system type... i686-pc-linux-gnu
checking for user supplied default service... no
configure: warning: not setting default service
checking whether user wants debugging support... no
checking whether user wants to dissable MD5 support... no
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
[root@localhost ez-ipupdate-3.0.10]# make
gcc  -g -O2  -o ez-ipupdate  ez-ipupdate.o conf_file.o md5.o cache_file.o pid_file.o
conf_file.o(.text+0x270): In function `parse_conf_file':
/home/other/www/ez-ipupdate-3.0.10/conf_file.c:88: undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [ez-ipupdate] 错误 1
[root@localhost ez-ipupdate-3.0.10]#
=====另:========================================
我在Mandrake9.2和红旗4.0下面都用源码安装好apache2.0.48后,提示如下:
-----------------------------------------
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.48 (Unix) Server at 127.0.0.1 Port 80
────────────────请问怎么解决阿?────
发表于 2004-2-6 20:38:45 | 显示全部楼层
RE:
httpd包为rpm安装,mysqld和php为编译安装,在httpd.conf中加入这句话后AddType application/x-httpd-php .php
一浏览自己设定的php网页目录,老是出来一个下载对话框,提示下载上面在httpd.conf添加的文件,请问这是怎么回事呢,难道httpd包也必须为编译安装吗?还是我那个地方设定错了?

请高手指教?

AddType application/x-httpd-php .php中最后的 .php 前面要有空格,否则就会出现你说的问题

当然是有空格的了,可是还是有这个问题的,编译过程中一点错误也没有,编译两次都还是这个现象,真是气愤!!!
发表于 2004-2-11 16:15:56 | 显示全部楼层
[root@localhost apache]# /opt/apache/bin/apachectl start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

该怎么改??
发表于 2004-2-13 12:06:03 | 显示全部楼层
mysql无法启动;
提示如南北兄文,但
chmod -R 1777 /home/tony/mysql/var
不管用.
/home/tony/mysql为安装目录
发表于 2004-2-13 14:19:47 | 显示全部楼层
已经设置了权限1777,还是不能启动mysql。
031203 14:49:10 mysqld started
031203 14:49:10 Can't start server : Bind on unix socket: Permission denied
031203 14:49:10 Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
031203 14:49:10 Aborting

031203 14:49:10 /opt/mysql/libexec/mysqld: Shutdown Complete

031203 14:49:10 mysqld ended

这是什么原因呢?谢谢
发表于 2004-2-17 22:26:08 | 显示全部楼层
按照版主的安装方法,一切均OK, 要注意的是安装时选择工作站安装,中间还要选择定制安装,将所有的什么development包都选上安装,这样就应该不会出现很多问题的。不过我也出现了有人说出的问题,就是访问index.php文件时,总是提示要下载这个文件。我查到的说法是除了加入AddType那行外,httpd.conf里还要加 LoadModule php4_module modules/libphp4.so
LoadModule php4_module modules/libphp4.so
<Files *.php*>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

但是这样做了,还是不行。
发表于 2004-2-20 03:56:39 | 显示全部楼层
好呀,按照版主的方法都成功了,以后就慢慢自己摸索了
发表于 2004-2-25 12:53:33 | 显示全部楼层

好文章啊

我一直在找一个这样的文章!
今天终于得见!再此特别感谢南北兄的倾情指导!
发表于 2004-2-26 23:09:18 | 显示全部楼层

apache 安装成后无法运行?

望高手指点
[root@qinlin httpd-2.0.47]# /opt/apache/bin/apachectl start
httpd: Could not determine the server's fully qualified domain name, using 219.245.174.162 for ServerName
httpd (pid 27197) already running
发表于 2004-2-28 12:25:49 | 显示全部楼层
我在编译完mysql
启动mysql服务器时,提示
chown:'beinan':无效的用户
starting mysqld daemon with databases form /opt/mysql/var
040228 12:14:35 mysqld ended

是权限问题吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表