HTTPD编译之路,请大家帮助支持,我们一起做。

由 dreamrise 在 01-11-2003 11:45 发表:

HTTPD编译之路,请大家帮助支持,我们一起做。

FiRst : MySQL (OFFICIAL DOCUMENT)

shell> groupadd mysql

shell> useradd -g mysql mysql

shell> gunzip < mysql-3.23.54a.tar.gz | tar -xvf -

shell> cd mysql-3.23.54a

shell> ./configure --prefix=/usr/local/mysql

第一次用这个失败了。

第二次改用这个:

CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions \

-fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler \

--with-mysqld-ldflags=-all-static

也是一样的错误:

checking for tgetent in -lncurses... no

checking for tgetent in -lcurses... no

checking for tgetent in -ltermcap... no

checking for termcap functions library... configure: error: No curses/termcap library found

请大家告诉我现在该怎么作?

shell> make

shell> make install

shell> scripts/mysql_install_db

shell> chown -R root /usr/local/mysql

shell> chown -R mysql /usr/local/mysql/var

shell> chgrp -R mysql /usr/local/mysql

shell> cp support-files/my-medium.cnf /etc/my.cnf

shell> /usr/local/mysql/bin/safe_mysqld --user=mysql &

or

shell> /usr/local/mysql/bin/mysqld_safe --user=mysql &

if you are running MySQL 4.x.


由 dreamrise 在 01-11-2003 12:14 发表:


没人帮忙就自己解决

在MDK9-CDROM2上找到了这几个包,安装好:

rpm -ivh libncurses5-devel-5.2-27mdk.i586.rpm

rpm -ivh libtermcap2-devel-2.0.8-32mdk.i586.rpm

再做configure.就没有出错了。

顺利通过configure

再继续余下步骤。


由 dreamrise 在 01-11-2003 13:53 发表:


MYSQL 编译后续步骤都没有问题了。安装成功。

可以通过WEBMIN访问(需要修改模块配置文件)

另外最后还有一步:

cp support-files/mysql.server /etc/rc.d/init.d/mysql


由 dreamrise 在 01-11-2003 14:26 发表:


(编译mysql用了我一个半小时左右:P2 350 笔记本)

Second: openssl 编译OPENSSL

shell>sh config

shell>make

shell>make test

shell>make install

很简单。用了我30分钟左右,这个模块要用在APACHE中间。


由 tram 在 01-11-2003 14:29 发表:


没错,大家在解决了问题以后,发帖出来,是对后来者最大的帮助。


LFS全套中文文档:http://lfs.linuxsir.org(主力)

LFS 英文站点镜像:http://lfs.cosoft.org.cn

二笔输入法 for Linux: http://ebf.cosoft.org.cn


由 dreamrise 在 01-11-2003 14:39 发表:


Third:MOD_SSL

SHELL> ./configure --with-apache=../apache_1.3.27

输出信息:

Configuring mod_ssl/2.8.12 for Apache/1.3.27

+ Apache location: ../apache_1.3.27 (Version 1.3.27)

+ Auxiliary patch tool: ./etc/patch/patch (local) [[D

+ Applying packages to Apache source tree:

o Extended API (EAPI)

o Distribution Documents

o SSL Module Source

o SSL Support

o SSL Configuration Additions

o SSL Module Documentation

o Addons

Done: source extension and patches successfully applied.

Now proceed with the following commands (Bourne-Shell syntax):

$ cd ../apache_1.3.27

$ SSL_BASE=/path/to/openssl ./configure ... --enable-module=ssl

$ make

$ make certificate

$ make install


由 dreamrise 在 01-11-2003 14:51 发表:


Fourth:Apache

SHELL>SSL_BASE=../openssl-0.9.7 ./configure --prefix=/usr/local/apache --enable-module=ssl --enable-module=so

这一步骤是配置APACHE,但是先不编译,要等到PHP编译完后再去编译。

SSL_BASE=是说明OPENSSL的BIN程序在哪里。

--enable-module=ssl:表示加入ssl模块。

--enable-module=so;共享模块版本

正常输出信息:

Configuring for Apache, Version 1.3.27

+ using installation path layout: Apache (config.layout)

Creating Makefile

Creating Configuration.apaci in src

Creating Makefile in src

+ configured for Linux platform

+ setting C compiler to gcc

+ setting C pre-processor to gcc -E

+ checking for system header files

+ adding selected modules

o ssl_module uses ConfigStart/End

+ SSL interface: mod_ssl/2.8.12

+ SSL interface build type: OBJ

+ SSL interface compatibility: enabled

+ SSL interface experimental code: disabled

+ SSL interface conservative code: disabled

+ SSL interface vendor extensions: disabled

+ SSL interface plugin: Built-in SDBM

+ SSL library path: /usr/local/src/openssl-0.9.7

+ SSL library version: OpenSSL 0.9.7 31 Dec 2002

+ SSL library type: source tree only (stand-alone)

+ enabling Extended API (EAPI)

+ using builtin Expat

+ using -ldl for vendor DSO support

+ checking sizeof various data types

+ doing sanity check on compiler and options

Creating Makefile in src/support

Creating Makefile in src/regex

Creating Makefile in src/os/unix

Creating Makefile in src/ap

Creating Makefile in src/main

Creating Makefile in src/lib/expat-lite

Creating Makefile in src/modules/standard

Creating Makefile in src/modules/ssl


由 dreamrise 在 01-11-2003 17:00 发表:


MAKE 用了40分钟左右

然后还要make certificate (SSL 验证吧)

中间要回答一堆问题,按着填就是

最后make install(5分钟)

完了显示这个:

make[1]: Leaving directory `/usr/local/src/apache_1.3.27'

+--------------------------------------------------------+

| You now have successfully built and installed the

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus