HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   3rd try to install centos and get the same error everytime: (http://www.howtoforge.com/forums/showthread.php?t=36688)

happz 18th June 2009 05:37

3rd try to install centos and get the same error everytime:
 
here is where the problem happens: 12.2 Installing mod_ruby
For CentOS 5.2, there's no mod_ruby package available, so we must compile it ourselves. First we install some prerequisites:

yum install httpd-devel ruby ruby-devel

Next we download and install mod_ruby as follows:

cd /tmp
wget http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz
tar zxvf mod_ruby-1.2.6.tar.gz
cd mod_ruby-1.2.6/
./configure.rb --with-apr-includes=/usr/include/apr-1
make
make install
__________________________________________________ _____________-


The make give 1 error and make install gives 1 one.

There is no way that I am doing the same thing wrong 3 times in a row. any help would be great. thanks!!

btw, upon installing 5.2 it updates to 5.3 ....just so i tell that part. it is 5.3 :)


__________________________________________________ _______________________________________________

Here is the error::::::

[root@srv0 mod_ruby-1.2.6]# make
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c apachelib.c
apachelib.c: In function ‚ap_chdir_file‚:
apachelib.c:149: warning: ignoring return value of ‚chdir‚, declared with attribute warn_unused_result
apachelib.c:154: warning: ignoring return value of ‚chdir‚, declared with attribute warn_unused_result
apachelib.c: In function ‚rb_init_apache‚:
apachelib.c:374: error: ‚OPT_INCNOEXEC‚ undeclared (first use in this function)
apachelib.c:374: error: (Each undeclared identifier is reported only once
apachelib.c:374: error: for each function it appears in.)
make: *** [apachelib.o] Error 1


Happz

till 18th June 2009 09:59

Please try to use the latest mod_ruby release:

http://www.modruby.net/archive/mod_ruby-1.3.0.tar.gz

happz 18th June 2009 16:22

same problem
 
[root@srv0 mod_ruby-1.3.0]# make
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c mod_ruby.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c ruby_config.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c apachelib.c
apachelib.c: In function ‚ap_chdir_file‚:
apachelib.c:149: warning: ignoring return value of ‚chdir‚, declared with attribute warn_unused_result
apachelib.c:154: warning: ignoring return value of ‚chdir‚, declared with attribute warn_unused_result
apachelib.c: In function ‚rb_init_apache‚:
apachelib.c:374: error: ‚OPT_INCNOEXEC‚ undeclared (first use in this function)
apachelib.c:374: error: (Each undeclared identifier is reported only once
apachelib.c:374: error: for each function it appears in.)
make: *** [apachelib.o] Error 1
__________________________________________________ ________________
[root@srv0 mod_ruby-1.3.0]# make install
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c apachelib.c
apachelib.c: In function ‚ap_chdir_file‚:
apachelib.c:149: warning: ignoring return value of ‚chdir‚, declared with attribute warn_unused_result
apachelib.c:154: warning: ignoring return value of ‚chdir‚, declared with attribute warn_unused_result
apachelib.c: In function ‚rb_init_apache‚:
apachelib.c:374: error: ‚OPT_INCNOEXEC‚ undeclared (first use in this function)
apachelib.c:374: error: (Each undeclared identifier is reported only once
apachelib.c:374: error: for each function it appears in.)
make: *** [apachelib.o] Error 1


Any ideas?

Regards,
happz

NOTE::::::::::::::::::: I see i asked this question in the wrong section so MODS if you want to move it to the server config section please do. I normally go to ispconfig section by habbit. :)

till 18th June 2009 17:07

Have not seen this problem yet. Maybe Falko has an idae what might cause this.

I recommend that you leave ot the mod_ruby installation and continue with the next setp in the installation. You can install mod_ruby later even after ispconfig is installed.

happz 18th June 2009 19:23

Okay Till
 
That sounds like a plan. I will tell you that I've installed centos many times and successfully. It seems to have happened since some recent updates were applied buy I cannot confirm that. I will wait to see where this goes.

I do need to know if I should continue until I have ispconfig installed?

Regards,
happz

happz 18th June 2009 23:06

Resolved....
 
I googled the answer and found it on the best site I've ever known:

Here is the link: http://www.howtoforge.org/forums/sho...7&postcount=12


Thanks,
Happz


All times are GMT +2. The time now is 10:16.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.