LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2015, 01:36 AM   #1
maburycn
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Rep: Reputation: Disabled
Wink Can't install mysql on rhel6


Hi,as I mentioned,i've located the issue, but I can't install it as the info it gave:

[root@station2 mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql/
Installing MySQL system tables...
./bin/mysqld: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Installation of system tables failed! Examine the logs in
/data/mysql/ for more information.

You can try to start the mysqld daemon with:

shell> ./bin/mysqld --skip-grant &

and use the command line tool ./bin/mysql
to connect to the mysql database and look at the grant tables:

shell> ./bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /data/mysql/ that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com/. Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the ./bin/mysqlbug script!


I've tried to install it several times, it can't go further more.


any idea will be appreciated.

Thanks
 
Old 04-23-2015, 12:26 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
mysql is installed by default on RHEL6

so
how did you try to install it

if for some reason you opted to NOT install the default software at time of install ,then
Code:
su -
yum install mysql
problem solved
 
Old 04-23-2015, 12:46 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Looks like mysql is installed to me...

Post the output of
yum whatprovides libstdc++.so.6
 
Old 04-23-2015, 08:35 PM   #4
maburycn
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by John VV View Post
mysql is installed by default on RHEL6

so
how did you try to install it

if for some reason you opted to NOT install the default software at time of install ,then
Code:
su -
yum install mysql
problem solved
thanks for your suggestion, actually i just want to install the mysql manually, i've downloaded it, named "mysql-5.1.40-linux-i686-icc-glibc23.tar.gz".
also, i've tried to follow the instructions for installing the LAMP environment from official website. it says, if you faced this situation, you can download the epel repo and install it from internet directly.
For me, I can't, since my test servers can't connect to the Internet. that's the reason i'd like to do it that way.
 
Old 04-23-2015, 08:36 PM   #5
maburycn
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Looks like mysql is installed to me...

Post the output of
yum whatprovides libstdc++.so.6
[root@station2 ~]# yum provides libstdc++.so.6
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
LOCAL | 3.9 kB 00:00 ...
libstdc++-4.4.7-4.el6.i686 : GNU Standard C++ Library
Repo : LOCAL
Matched from:
Other : libstdc++.so.6

i've already installed it from default repo, it can't find it either.
 
Old 04-23-2015, 08:43 PM   #6
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
well here is your problem
Quote:
This system is not registered to Red Hat Subscription Management.
BUY the required support contract !!!!

and then REGISTER IT with redhat !!!

redhat is NOT FREE
you HAVE to buy the required support contract
or you DO NOT!!! install anything !!!

or



if you are NOT going to buy the support contract
install CentOS 6.6 or 7.1
 
Old 04-23-2015, 09:07 PM   #7
maburycn
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
well here is your problem

BUY the required support contract !!!!

and then REGISTER IT with redhat !!!

redhat is NOT FREE
you HAVE to buy the required support contract
or you DO NOT!!! install anything !!!

or



if you are NOT going to buy the support contract
install CentOS 6.6 or 7.1
that's true,this is also the reason why installed it on the test server.
Without connecting to Internet, how to build the LAMP environment on the test server.
Here are the details of the instructions:
1.wget http://syslab.comsenz.com/downloads/...glibc23.tar.gz
2. ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
3. if you were facing "./bin/mysqld: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory"
then
yum -y install epel-release
yum -y install *libstdc++*

as you can see, it can be done only for the internet.
 
  


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
unable to start mysql on RHEL6.2 pix9 Linux - Server 2 06-18-2014 06:53 PM
Unable to install RHEL6.1 on my pc krishnakishorerhce Linux - Laptop and Netbook 1 07-02-2013 09:04 PM
install slony 2.0 on RHEL6 delevel Red Hat 3 06-28-2011 02:45 AM
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 10:32 AM
MySQL 5.0.67: Unable to install & run. Error /var/lib/mysql/mysql.sock' (2) peteyperson Linux - Server 2 03-04-2009 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 PM.

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