Linux Server - How to run the example server

Platform for Telematic Applications
Post Reply
F.Hessemer
Posts: 13
Joined: Thu 9. Sep 2010, 14:21

Linux Server - How to run the example server

Post by F.Hessemer » Thu 7. Oct 2010, 09:45

The easiest way to run our demo server is to use a ubuntu 10.04.

Install the mysql-Server.

Code: Select all

sudo apt-get install mysql-server
Create the mySQL-Database (Set <USERNAME> to your user name)

Code: Select all

mysql -u <USERNAME> -p
Now type after the prompt mysql>

Code: Select all

CREATE DATABASE fmsdb;
quit
Restore the mysql-Database.

Code: Select all

 mysql -u root -p fmsdb < fmsdb.sql
Extract the server code from the tar archive with:

Code: Select all

tar -xzvf PCAN-GPSRLink_Linux_Server_x86_v1_2.tar.gz
Than install the libs, used with this server:

Code: Select all

sudo apt-get install libxerces-c28 
sudo apt-get install libmysqlcppconn4
Now edit the file service.config. And set all parameter for your server.

Code: Select all

nano service.config
Start the server.

Code: Select all

Debug/pcanGprsd

sberequek
Posts: 3
Joined: Wed 16. Mar 2011, 12:53

Re: Linux Server - How to run the example server

Post by sberequek » Wed 16. Mar 2011, 15:17

Hi,

I followed all the steps described in previous posts, but as I start the server "Debug/pcanGprsd" I get the error "Segmentation Fault". The distribution I'm using is Ubuntu 10.10 . Suggestions?
thanks

sberequek
Posts: 3
Joined: Wed 16. Mar 2011, 12:53

Re: Linux Server - How to run the example server

Post by sberequek » Wed 16. Mar 2011, 16:20

Ok, problem solved, the server is running.
Thanks

jmuller
Posts: 1
Joined: Thu 23. Feb 2012, 13:59

Re: Linux Server - How to run the example server

Post by jmuller » Thu 23. Feb 2012, 14:34

Hi,

I would like to install this demo on Red Hat Enterprise Linux Server release 5.7. I tried to follow instructions in PCAN-GPRS SocketServer Installation Manual.pdf - I succesfully installed mysql-connector-c++-1.0.5, Xerces 2.8, MySQL Server 5 with database schema, but included server service binary (Debug/pcanGprsd) didn't start (error while loading shared libraries: libmysqlcppconn.so.4: cannot open shared object file: No such file or directory). So I tried to install mysql-connector-c++-1.1.0 instead of v1.0.5, but only library libmysqlcppconn.so.5 was installed. Then I tried to make link libmysqlcppconn.so.4 -> libmysqlcppconn.so.5, but then I got another error (error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory). Yes, because there is only libmysqlclient.so.15 installed and I didn't find any suitable package with this library.

Please, could somebody advise me, how to install this demo software on Red Hat Enterprise Linux Server release 5.7 or how to compile it ?

Thanks

S.Michaelsen
Hardware Development
Hardware Development
Posts: 73
Joined: Fri 10. Sep 2010, 13:11

Re: Linux Server - How to run the example server

Post by S.Michaelsen » Thu 23. Feb 2012, 15:47

Hello jmuller,

I'm sorry but I can't provide you any help about a Red Hat distribution. We are developing on Ubuntu 10.04 LTS only at the moment.

Best Regards,

Stephan Michaelsen

Post Reply