Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Ubuntu & MySql
Ubuntu & MySql [message #39986] Wed, 22 May 2013 17:01 Go to next message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Hi all,

I'm working on Ubuntu and i already installed mysql by terminal using
sudo apt-get install mysql-server.

Can you explain me how to correctly set "build methods" in TheIde for let me use the ".MYSQLDLL" flag?

Regards,
Matteo
Re: Ubuntu & MySql [message #40002 is a reply to message #39986] Sat, 25 May 2013 10:17 Go to previous messageGo to next message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
When I try to compile ProtectServerDemo package I receive the following error:

In file included from /home/ubuntu/upp/bazaar/Protect/ProtectDB.h:7:0,
                 from /home/ubuntu/upp/bazaar/Protect/ProtectServer.h:9,
                 from /home/ubuntu/upp/bazaar/Protect/ProtectServer.cpp:1:
/home/ubuntu/upp/uppsrc/MySql/MySql.h:16:25: fatal error: mysql/mysql.h: No such file or directory
compilation terminated.
In file included from /home/ubuntu/upp/bazaar/Protect/ProtectDB.h:7:0,
                 from /home/ubuntu/upp/bazaar/Protect/ProtectDB.cpp:1:
/home/ubuntu/upp/uppsrc/MySql/MySql.h:16:25: fatal error: mysql/mysql.h: No such file or directory
compilation terminated.
Protect: 2 file(s) built in (0:00.44), 221 msecs / file, duration = 2509 msecs, parallelization 100%

There were errors. (0:02.54)
Re: Ubuntu & MySql [message #40003 is a reply to message #40002] Sat, 25 May 2013 13:21 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

Try to install following packages:
sudo apt-get install libmysqlclient18
sudo apt-get install libmysqlclient-dev


Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Sat, 25 May 2013 13:21]

Report message to a moderator

Re: Ubuntu & MySql [message #40007 is a reply to message #39986] Sat, 25 May 2013 16:08 Go to previous messageGo to next message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Hi Klugier and thank you for your reply!

Something happen but now this is my new error:

Linking...
/usr/bin/ld: cannot find -lssl
collect2: error: ld returned 1 exit status


Sad

Regards,
Matteo
Re: Ubuntu & MySql [message #40008 is a reply to message #40007] Sat, 25 May 2013 16:23 Go to previous message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Matteo

It seems that you need to install OpenSSL development package. Type in your terminal following command:

sudo apt-get install libssl-dev


Sincerely,
Klugier


U++ - one framework to rule them all.
Previous Topic: SQL + vector related question
Next Topic: SOLVED dlg.lay problems
Goto Forum:
  


Current Time: Thu Mar 28 23:09:34 CET 2024

Total time taken to generate the page: 0.01551 seconds