LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   'make' command failing when install pdo on CentOS 6.4 (64 bit) (https://www.linuxquestions.org/questions/linux-newbie-8/make-command-failing-when-install-pdo-on-centos-6-4-64-bit-4175458032/)

TRUNoise 04-13-2013 02:45 PM

'make' command failing when install pdo on CentOS 6.4 (64 bit)
 
Alright, so basically, a dedicated server I own is having trouble installing pdo aswell as pdo_mysql, both have the same errors. Link to log of the install

System Information:
Linux x86_64 GNU/Linux (64 Bit)
CentOS release 6.4 (Final)

John VV 04-13-2013 02:57 PM

the error says that "re2c" is not installed
if you need it then
Code:

su -
yum install re2c

from
Quote:

I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
this is a non std location

the *.c files can not find the headers

export the location of the headers ,from where ever you put them .

TRUNoise 04-13-2013 03:00 PM

Quote:

Originally Posted by John VV (Post 4931002)
the error says that "re2c" is not installed
if you need it then
Code:

su -
yum install re2c

from

this is a non std location

the *.c files can not find the headers

export the location of the headers ,from where ever you put them .

I installed re2c, same errors still. As for the 'non std location' thing, I just installed php, perl, MySQL, and the other things I can't remember. I didn't modify anything at all incept MySQL root passwords/databases. I honestly have no clue what the error you're describing is about, I just have a clean install.

knudfl 04-13-2013 03:31 PM

PDO-1.0.3.tgz is old : 2005.

The package php-pdo is available for CentOS 6 :

# yum install php-pdo

( http://mirror.centos.org/centos/6.4/os/x86_64/Packages/
> http://mirror.centos.org/centos/6.4/...el6.x86_64.rpm
> php-pdo-5.3.3-22.el6.x86_64.rpm : 23-Feb-2013.)

-

John VV 04-13-2013 03:44 PM

how did you install mysql,php,and perl
PDO is in the repos
it is called php-pdo

everything is in the cent repos
Code:

su -
yum install php php-devel mysql mysql-devel perl perl-devel php-pdo

was mysql compiled with pdo support ?
http://php.net/manual/en/ref.pdo-mysql.php

if the centos 6.4 mysql in the repos was not then you need to build mysql from source

from the pecl page
did you grab the svn code ?
http://pecl.php.net/package/PDO_MYSQL
see the warning at the top of the page
Quote:

This package is not maintained anymore and has been superseded. Package has moved to channel http://svn.php.net/viewvc/php/php-sr...ext/pdo_mysql/, package ext/pdo_mysql.
part of the error you posted talked about this


also this has moved into php and is part of it

what very old programs are you trying to use that need this

also when you run the <phpinfo> script
is it listed as being built into it
phpinfo.php
Code:


<?php

phpinfo();

?>


TRUNoise 04-13-2013 03:53 PM

Quote:

Originally Posted by John VV (Post 4931032)
how did you install mysql,php,and perl
PDO is in the repos
it is called php-pdo

everything is in the cent repos
Code:

su -
yum install php php-devel mysql mysql-devel perl perl-devel php-pdo

was mysql compiled with pdo support ?
http://php.net/manual/en/ref.pdo-mysql.php

if the centos 6.4 mysql in the repos was not then you need to build mysql from source

from the pecl page
did you grab the svn code ?
http://pecl.php.net/package/PDO_MYSQL
see the warning at the top of the page


part of the error you posted talked about this


also this has moved into php and is part of it

what very old programs are you trying to use that need this

also when you run the <phpinfo> script
is it listed as being built into it
phpinfo.php
Code:


<?php

phpinfo();

?>


I'm confused by all of this. =S I'm trying to install a control panel that requires a database; I'm trying to use MySQL and it is saying I need to have the "pdo_mysql" extension loaded into the ini.php file located at /etc/ini.php . I'm forced to use MySQL since sqlite doesn't feel like working on the machine I'm trying to run the panel on. The control panel is called Space Bukkit for Minecraft servers; I'm thinking about hosting them. http://spacebukkit.xereo.net/

I did the yum command you specified, this is the transaction receipt.
Code:

=====================================================================================================================================================================================================
 Package                                                Arch                                  Version                                                Repository                              Size
=====================================================================================================================================================================================================
Installing:
 mysql-devel                                            x86_64                                5.5.30-15.el6.art                                      atomic                                  154 k
 perl-devel                                              x86_64                                4:5.10.1-130.el6_4                                    updates                                421 k
 php-pdo                                                x86_64                                5.3.23-16.el6.art                                      atomic                                  108 k
Updating:
 mysql                                                  x86_64                                5.5.30-15.el6.art                                      atomic                                  5.7 M
 php                                                    x86_64                                5.3.23-16.el6.art                                      atomic                                  2.4 M
 php-devel                                              x86_64                                5.3.23-16.el6.art                                      atomic                                  1.1 M
Installing for dependencies:
 keyutils-libs-devel                                    x86_64                                1.4-4.el6                                              base                                    28 k
 krb5-devel                                              x86_64                                1.10.3-10.el6_4.1                                      updates                                494 k
 libcom_err-devel                                        x86_64                                1.41.12-14.el6                                        base                                    31 k
 libselinux-devel                                        x86_64                                2.0.94-5.3.el6                                        base                                    136 k
 libsepol-devel                                          x86_64                                2.0.41-4.el6                                          base                                    64 k
 mysqlclient16                                          x86_64                                5.1.59-2.el6.art                                      atomic                                  1.4 M
 openssl-devel                                          x86_64                                1.0.0-27.el6_4.2                                      updates                                1.1 M
 perl-ExtUtils-MakeMaker                                x86_64                                6.55-130.el6_4                                        updates                                292 k
 perl-ExtUtils-ParseXS                                  x86_64                                1:2.2003.0-130.el6_4                                  updates                                  44 k
 perl-Test-Harness                                      x86_64                                3.17-130.el6_4                                        updates                                230 k
Updating for dependencies:
 mysql-libs                                              x86_64                                5.5.30-15.el6.art                                      atomic                                  766 k
 mysql-server                                            x86_64                                5.5.30-15.el6.art                                      atomic                                  10 M
 php-cli                                                x86_64                                5.3.23-16.el6.art                                      atomic                                  2.3 M
 php-common                                              x86_64                                5.3.23-16.el6.art                                      atomic                                  900 k

Transaction Summary
=====================================================================================================================================================================================================
Install      13 Package(s)
Upgrade      7 Package(s)

Total download size: 28 M


TRUNoise 04-13-2013 03:57 PM

Oops, forgot the screen shot of the panel. http://puu.sh/2ztnF

TRUNoise 04-13-2013 05:22 PM

Quote:

Originally Posted by John VV (Post 4931032)
Blah

You going to still help? :(

John VV 04-13-2013 06:36 PM

Blah ??????
what ????? , we are all volunteers
and it has only been now 2 hours

from
http://xereo.net/documentation/cat1/requirements
it says nothing about that old pdo mod

so you are trying to run this set up
Quote:

On the WebServer

WebServer with PHP 5.2.8 or greater
Rewriting engine (like mod_rewrite)
allow_url_fopen
CURL
MySQL or SQLite

Apache , php ( with mod rewrite configured ) ,and mysql ( standard web server install on rhel/cent )
you do need to configure it though
-- the normal install ( if not installed from source -- I do recommend ,installing from source , for the first few Apache stack installs -- so that you learn how to configure it )
Code:

su -
yum groupinstall "web server"

configure "mod_rewrite" in the apache httpd.conf
http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html

curl ( libcurl should be installed , if not search yum )

--------------------------------------------

it looks like that "Space Bukkit" first needs a up and running Apache server

installing is easy
Learning to configure it , that can take a lifetime ( or at lease a few weeks for anything more than the basics )
--- the current Apache documentation
http://httpd.apache.org/docs/2.4/

prepare Apache for it
http://xereo.net/documentation/cat1/...-bukkit-server
then you install the control panel
http://xereo.net/documentation/cat1/...ling-the-panel

TRUNoise 04-13-2013 07:08 PM

Quote:

Originally Posted by John VV (Post 4931088)
Blah ??????
what ????? , we are all volunteers
and it has only been now 2 hours

from
http://xereo.net/documentation/cat1/requirements
it says nothing about that old pdo mod

so you are trying to run this set up


Apache , php ( with mod rewrite configured ) ,and mysql ( standard web server install on rhel/cent )
you do need to configure it though
-- the normal install ( if not installed from source -- I do recommend ,installing from source , for the first few Apache stack installs -- so that you learn how to configure it )
Code:

su -
yum groupinstall "web server"

configure "mod_rewrite" in the apache httpd.conf
http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html

curl ( libcurl should be installed , if not search yum )

--------------------------------------------

it looks like that "Space Bukkit" first needs a up and running Apache server

installing is easy
Learning to configure it , that can take a lifetime ( or at lease a few weeks for anything more than the basics )
--- the current Apache documentation
http://httpd.apache.org/docs/2.4/

prepare Apache for it
http://xereo.net/documentation/cat1/...-bukkit-server
then you install the control panel
http://xereo.net/documentation/cat1/...ling-the-panel

I don't think you're understanding my MAIN problem; everything about Space Bukkit, server and webserver, are set up. All of that is just fine. I can't complete the web-based configuration because the 'pdo' and 'pdo_mysql' extensions aren't loaded into the 'php.ini' file. I need to get those extensions for this to work, otherwise it can't write data to the database, in my case, not being able to save the super admin account credentials to the database since the 'pdo' extension isn't helping it.

Go to this link; it shows the panel working functionally. http://d1.shimencraft.com/sb/index.php/install

John VV 04-13-2013 10:24 PM

did you run the phpinfo.php script ?
( you place it in the <Documentroot> that is set in httpd.conf )

and did it say that mysql was built with "--disable-pdo"
or
--with-pdo ?

if it is disabled
then rebuild mysql with it

TRUNoise 04-13-2013 10:26 PM

Quote:

Originally Posted by John VV (Post 4931147)
did you run the phpinfo.php script ?
( you place it in the <Documentroot> that is set in httpd.conf )

and did it say that mysql was built with "--disable-pdo"
or
--with-pdo ?

if it is disabled
then rebuild mysql with it

I didn't build MySQL, I just got it from yum :o

John VV 04-13-2013 10:39 PM

what dose the the output say ?

if mysql was not built with pdo support
then you need to rebuild in with pdo support

TRUNoise 04-14-2013 10:32 AM

Quote:

Originally Posted by John VV (Post 4931151)
what dose the the output say ?

if mysql was not built with pdo support
then you need to rebuild in with pdo support

How would I go about uninstalling the MySQL I have currently and building it with PDO support?

TRUNoise 04-16-2013 07:46 PM

Hello? :(


All times are GMT -5. The time now is 08:07 PM.