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 06-02-2015, 07:14 PM   #1
b4str1
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:
Code:
1 -Change location to the top-level directory of the source distribution.
I interpreted that I have to go to the "highest" directory
Code:
/
So I wrote:
Code:
 
        #                            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:
Code:
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:
Code:
# 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: https://dev.mysql.com/doc/connector-...on-source.html
 
Old 06-02-2015, 07:43 PM   #2
c0d3d
Member
 
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
b4str1
LQ Newbie
 
Registered: Apr 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
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.
 
  


Reply

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



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

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

All times are GMT -5. The time now is 08:10 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