LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2013, 02:45 PM   #1
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Rep: Reputation: 7
'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)
 
Old 04-13-2013, 02:57 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 .
 
Old 04-13-2013, 03:00 PM   #3
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by John VV View Post
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.
 
Old 04-13-2013, 03:31 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.)

-
 
Old 04-13-2013, 03:44 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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();

?>
 
Old 04-13-2013, 03:53 PM   #6
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by John VV View Post
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
 
Old 04-13-2013, 03:57 PM   #7
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Oops, forgot the screen shot of the panel. http://puu.sh/2ztnF
 
Old 04-13-2013, 05:22 PM   #8
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by John VV View Post
Blah
You going to still help?
 
Old 04-13-2013, 06:36 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 04-13-2013 at 06:40 PM.
 
Old 04-13-2013, 07:08 PM   #10
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by John VV View Post
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

Last edited by TRUNoise; 04-13-2013 at 07:09 PM.
 
Old 04-13-2013, 10:24 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 04-13-2013, 10:26 PM   #12
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by John VV View Post
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
 
Old 04-13-2013, 10:39 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what dose the the output say ?

if mysql was not built with pdo support
then you need to rebuild in with pdo support
 
Old 04-14-2013, 10:32 AM   #14
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by John VV View Post
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?
 
Old 04-16-2013, 07:46 PM   #15
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Hello?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
64 bit odbc driver problem beetween RHEL and AS400 iseries - huge memory php/pdo sk9990_1 Red Hat 1 01-27-2014 04:03 AM
LXer: Install HVM FreeBSD 7.0 DomU (32-bit) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) LXer Syndicated Linux News 0 05-01-2008 08:00 PM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM
is my centOS install 64 bit or not? sneakyimp Linux - Software 2 10-04-2007 01:17 AM
LXer: Install Xen 3.1 Solaris domU (64 bit) under CentOS 5 dom0 (64 bit) LXer Syndicated Linux News 0 09-21-2007 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration