Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-02-2015, 07:14 PM   #1
LQ Newbie
Registered: Apr 2015
Posts: 11

Rep: Reputation: Disabled
Question Problem with (instalation of?) mysql.h on c

Hi, I've just recently installed MySQL connector/c from source code on my Slackware 14.1 x64

I read the official instructions of the connector but I felt a bit disorientated when I read:
1 -Change location to the top-level directory of the source distribution.
I interpreted that I have to go to the "highest" directory
So I wrote:
        #                            cd /

root@- /#                            tar xzvf /home/normal/Downloads/mysql-connector-c-6.1.6-src.tar.gz 

root@- /#                            cd /mysql-connector-c-6.1.6-src/

root@- /mysql-connector-c-6.1.6-src# cmake -G "Unix Makefiles"

root@- /mysql-connector-c-6.1.6-src# make 

root@- /mysql-connector-c-6.1.6-src# make install
Then I did:
ln -s /usr/local/mysql-5.6.25/include /usr/include
But when I try to compile a program in c with #include <mysql.h> i get this error:
# gcc ctemp.c 
In file included from ctemp.c:2:0:
/usr/include/mysql.h:57:27: fatal error: mysql_version.h: No such file or directory
 #include "mysql_version.h"
What can I do? Thanks a lot and sorry for poor english

PD: If you need the official instructions I paste here the link:
Old 06-02-2015, 07:43 PM   #2
Registered: Aug 2012
Posts: 74

Rep: Reputation: 12
According to the instructions, mysql is installed to '/usr/local/mysql', not 'usr/local/mysql-5.6.25'.
Old 06-02-2015, 08:04 PM   #3
LQ Newbie
Registered: Apr 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Originally Posted by c0d3d View Post
According to the instructions, mysql is installed to '/usr/local/mysql', not 'usr/local/mysql-5.6.25'.
Yes but I made a Symbolic Link from /usr/local/mysql-5.6.25 to /usr/local/mysql when I installed MySQL

Last edited by b4str1; 06-02-2015 at 08:18 PM.


c programming, mysql, mysql 5.6, slackware, slackware 14.1

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem with instalation fmora Debian 2 07-31-2006 04:43 PM
problem about instalation sarajevo Debian 2 08-01-2005 06:38 AM
Newbie Linux/Apache/SSL/MySQL/PHP Instalation Dilema rojow Linux - Software 12 10-24-2003 04:48 AM
mysql instalation matwau Linux - Networking 1 09-15-2003 06:12 AM
RH 9.0 instalation problem gPawel Linux - General 4 08-18-2003 01:51 AM > Forums > Linux Forums > Linux - Newbie

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

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