dbTalk Databases Forums  

Not able to install the rpm.

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Not able to install the rpm. in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
chandra shekar
 
Posts: n/a

Default Not able to install the rpm. - 04-14-2005 , 11:16 PM






Dear Friends,

I am not able to install the rpm file
(mysql++-1.7.30-1.rh9.i386.rpm).I ran the below
command to install the rpm :

"rpm --install /PATH/mysql++-1.7.30-1.rh9.i386.rpm "

It threw the error :" Failed dependecies :
MySQL - Shared is needed by mysql++-1.7.30-1"

Before running the above command I installed
mysql++-1.7.30.tar.gz as below:
After gunziping and untaring the above file I ran the
below commands:

../configure --includedir=/usr/local/include/mysql

First it gave error: could not find the mysql include
dir in /usr/local/myslq/include/mysql ,
/usr/local/include/mysql, /usr/include/mysql.

Then I manually created " usr/local/include/mysql "
and
copied all the *.h files from
"/usr/local/myslq/include ". Then again stared
configuring as below :

../configure --includedir=/usr/local/include/mysql
make
su
make install

This time I was lucky and SUCCEEDED, but when I tried
to install the rpm file it is giving error as
I mentioned above.

I also tried running a simple program that connects
to Mysql but got the error as " mysql_init"
unidentified". I have included "mysql.h" and while
compiling I used the command
" gcc -I/usr/local/include/mysql prog.c " but for no
use.

Please help me out |

Regards
shekar



__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Ash Christopher
 
Posts: n/a

Default RE: Not able to install the rpm. - 04-15-2005 , 10:36 AM






What OS are you running? In order to get mysql++ to install on CentOS4
(RHEL4) I needed to patch the spec file since the rpm was not built
against the CentOS4 source tree (and thus didn't know that Mysql-shared
is not a package in CentOS4 but is included in mysql-server.rpm).

I suggest looking at modifying the srpm to fit your needs.


-----Original Message-----
From: chandra shekar [mailto:mailtoshekar (AT) yahoo (DOT) com]=20
Sent: Thursday, April 14, 2005 10:16 PM
To: plusplus (AT) lists (DOT) mysql.com
Subject: Not able to install the rpm.

Dear Friends,
=09
I am not able to install the rpm file
(mysql++-1.7.30-1.rh9.i386.rpm).I ran the below command to install the
rpm :

"rpm --install /PATH/mysql++-1.7.30-1.rh9.i386.rpm "

It threw the error :" Failed dependecies :=20
MySQL - Shared is needed by mysql++-1.7.30-1"

Before running the above command I installed
mysql++-1.7.30.tar.gz as below:
After gunziping and untaring the above file I ran the below commands:
=20
../configure --includedir=3D/usr/local/include/mysql

First it gave error: could not find the mysql include dir in
/usr/local/myslq/include/mysql , /usr/local/include/mysql,
/usr/include/mysql.=20

Then I manually created " usr/local/include/mysql "
and
copied all the *.h files from
"/usr/local/myslq/include ". Then again stared configuring as below :

../configure --includedir=3D/usr/local/include/mysql
make
su
make install

This time I was lucky and SUCCEEDED, but when I tried to install the rpm
file it is giving error as I mentioned above.=20

I also tried running a simple program that connects to Mysql but got
the error as " mysql_init"
unidentified". I have included "mysql.h" and while compiling I used the
command " gcc -I/usr/local/include/mysql prog.c " but for no use.

Please help me out |

Regards
shekar


=09
__________________________________
Do you Yahoo!?=20
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

--=20
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...ason (DOT) com


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: Not able to install the rpm. - 04-15-2005 , 04:42 PM



chandra shekar wrote:

Quote:
It threw the error :" Failed dependecies :
MySQL - Shared is needed by mysql++-1.7.30-1"
Yes, on purpose. A MySQL++ binary RPM is necessarily dependent on the
MySQL version it was built against. My RPMs are built against the
official RPMs you get from mysql.com, not against the version of MySQL
that comes with the OS.

So, either get the official RPMs, or build the library from source.

This is explained on the MySQL++ web page. From whence, by the way, you
can get a much more recent version of MySQL++:

http://tangentsoft.net/mysql++/

Quote:
Before running the above command I installed
mysql++-1.7.30.tar.gz as below:
Don't install both from RPM and from source. Pick one.

Quote:
./configure --includedir=/usr/local/include/mysql
That flag tells configure where you want the MySQL++ header files to go,
not where to find the MySQL headers. Try:

$ ./configure --with-mysql=/usr/local/mysql

instead. If that doesn't work, try separate --with-mysql-lib and
--with-mysql-include flags. Notice that you don't necessarily give the
full path: the configure script will take a base directory name and try
to guess which subdirectories underneath contain the files.

Quote:
I also tried running a simple program that connects
to Mysql but got the error as " mysql_init"
unidentified".
See examples/Makefile.simple for the correct way to build a program
using MySQL++.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.