Page 1 of 1

gcc errors in XAMPP install

PostPosted: 12. February 2014 16:43
by SAJM
What is this all about?

I have a laptop running Slackware 12-1 and tried to install XAMPP. Here are the errors:

Warning: Problem running post install step. Installatiom may not complete correctly
Error running /opt/lammp/ctlscript.sh restart apache : httpd: Syntax error on line 522 of
/opt/lampp/etc/httpd.conf: Syntax error on line 10 of /opt/lampp/etc/extra/httpd-xsmpp.conf:
Cannot load modules/libphp5.so into server: /usr/lib/libgcc_s.so.1: version 'GCC_4.2.0'
not found (required by /opt/lampp/lib/libstdc++.so.6)
httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 10
of /opt/lampp/etc/extra/httpd-xsmpp.conf: Cannot load modules/libphp5.so into server:
/usr/lib/libgcc_s.so.1: version 'GCC_4.2.0' not found (required by /opt/lampp/lib/libstdc++.so.6)
Press [Enter] to continue :
#

--------------------------------------------------
Setup has finished installing XAMPP on your computer.

# /opt/lampp/lampp start
Starting XAMPP for linux 1.8.3-2...
XAMPP: Starting Apache...fail
httpd: httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 10
of /opt/lampp/etc/extra/httpd-xsmpp.conf: Cannot load modules/libphp5.so into server:
/usr/lib/libgcc_s.so.1: version 'GCC_4.2.0' not found (required by /opt/lampp/lib/libstdc++.so.6)
XAMMP: Starting MySQL...ok
XAMPP: Starting ProFTPD...Fail
XAMPP: Another FTP Daemon is already running.
root@steve:\# /opt/lampp/bin/my_print_defaults: /usr/lib/libgcc_s.co.1: version 'GCC_4.2.0' not found
(required by /opt/lampp/lib/libstdc++.so.6)

Im not sure where to start?

Thanks

Re: gcc errors in XAMPP install

PostPosted: 12. February 2014 17:00
by Nobbie
It seems you have no C-Compiler installed (gcc is a C-Compiler). Install the gcc package from Slackware and then try again.

Re: gcc errors in XAMPP install

PostPosted: 12. February 2014 17:33
by SAJM
gcc was installed and running, I just compiled a Hello World program to make sure :-)

Re: gcc errors in XAMPP install

PostPosted: 12. February 2014 17:56
by SAJM
Here is what I have re: gcc

root@steve:/home/steve# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.1.2/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.1.2/configure --prefix=/usr --enable-shared --enable-l
anguages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexi
t --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slac
kware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.1.2
root@steve:/home/steve#

Re: gcc errors in XAMPP install

PostPosted: 12. February 2014 19:11
by SAJM
AH!!! I've just seen it. XAMPP calls for gcc 4.2. My version is 4.1. I wonder if that's the problem?!!!

Re: gcc errors in XAMPP install

PostPosted: 18. February 2014 11:59
by Nobbie
SAJM wrote:AH!!! I've just seen it. XAMPP calls for gcc 4.2. My version is 4.1. I wonder if that's the problem?!!!


Of course it is - you have to go for the newer release (if there is no for your system, you cannot run Xampp).