sshutdownow / mod-myvhost

Automatically exported from code.google.com/p/mod-myvhost
Apache License 2.0
5 stars 5 forks source link

How to install on Debian? #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I am going to run "make" I am getting the following error:

apxs -c -Wc,-W -Wc,-Wall `mysql_config --include` -DWITH_PHP -DDEBUG 
-W,l`mysql_config --libs` mod_myvhost.c mod_myvhost_cache.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static 
i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl 
-I/usr/include/postgresql -I/usr/include/xmltok -pthread     
-I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 
-I/usr/include/postgresql -I/usr/include/mysql -W -Wall -I/usr/include/mysql 
-DWITH_PHP -DDEBUG  -c -o mod_myvhost.lo mod_myvhost.c && touch mod_myvhost.slo
mod_myvhost.c:33:2: error: #error "At least version 1.3.x of APR-Utils 
libraries is required"
mod_myvhost.c: In function 'myvhost_translate_name':
mod_myvhost.c:305: warning: implicit declaration of function 'apr_hash_clear'
mod_myvhost.c:308: warning: implicit declaration of function 'apr_dbd_get_name'
mod_myvhost.c:308: warning: initialization makes pointer from integer without a 
cast
mod_myvhost.c:457: warning: assignment discards qualifiers from pointer target 
type
mod_myvhost.c:465: warning: passing argument 1 of 'php_ini_set' discards 
qualifiers from pointer target type
mod_myvhost.c:465: warning: passing argument 2 of 'php_ini_set' discards 
qualifiers from pointer target type
mod_myvhost.c:472: warning: passing argument 2 of 'php_ini_set' discards 
qualifiers from pointer target type
mod_myvhost.c: At top level:
mod_myvhost.c:580: warning: missing initializer
mod_myvhost.c:580: warning: (near initialization for 'cmds[1].func')
apxs:Error: Command failed with rc=65536
.
make: *** [mod_myvhost.so] Fehler 1

Thanks in advance.

Original issue reported on code.google.com by maximil...@maxivb.de on 13 Aug 2010 at 8:14

GoogleCodeExporter commented 9 years ago
mod_myvhost.c:33:2: error: #error "At least version 1.3.x of APR-Utils 
libraries is required" - this is the answer.

Original comment by iPop...@gmail.com on 13 Aug 2010 at 8:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks for the answer... I had installed apr by using apt-get:
apt-get install libapr1
but it does not running

Original comment by maximil...@maxivb.de on 13 Aug 2010 at 8:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had installed APR, APR-Util and MyVHost:
wget http://apache.mirror.iphh.net/apr/apr-1.3.12.tar.gz
tar xvfz ./apr-1.3.12.tar.gz
cd ./apr-1.3.12
./configure
make
make install

wget http://apache.mirror.iphh.net/apr/apr-util-1.3.9.tar.gz
tar xvfz ./apr-util-1.3.9.tar.gz
cd ./apr-util-1.3.9
./configure --with-apr=/usr/local/apr/
make
make install

wget http://mod-myvhost.googlecode.com/files/mod_myvhost-0.16.tar.gz
tar xvfz ./mod_myvhost-0.16.tar.gz
cd ./mod_myvhost-0.16
make
make install

Restarting Apache2:

/etc/init.d/apache2 restart

Returns:

Restarting web server: apache2/usr/sbin/apache2ctl: line 83: 29358 Segmentation 
fault      $HTTPD ${APACHE_ARGUMENTS} -k $ARGV
 failed!

Original comment by maximil...@maxivb.de on 14 Aug 2010 at 11:18

GoogleCodeExporter commented 9 years ago
Apache uses its own apr libs and module has been build with another version of 
apr libs. So. you should rebuild both apache and module with the same version 
of apr libs.

Original comment by iPop...@gmail.com on 5 Nov 2010 at 8:17

GoogleCodeExporter commented 9 years ago
I have built package for Ubuntu 10.10 that is based on Debian. So you can try 
it. 

Original comment by iPop...@gmail.com on 5 Nov 2010 at 11:15

GoogleCodeExporter commented 9 years ago

Original comment by iPop...@gmail.com on 5 Nov 2010 at 10:02