![]() |
|
|
#1 |
|
"Dave"
Sep 2005
UK
23·347 Posts |
I have been using prpnet on Ubuntu 10.04 for about 2 years now, lately with v5.0.8. I recently upgraded my hosted VM to Ubuntu 12.04, but the only way I could get prpnet to work was to copy various binaries (including some shared libraries) across from the 10.04 VM. The issues were mostly due to Ubuntu 12.04 deciding that the unixodbc and libiodbc packages could not be installed at the same time, but also I had compiling and linking problems with gcc 4.6.
Due to these issues with Ubuntu 12.04 I decided to explore switching to either Debian 6 or CentOS 6 - my hosted VM provider only offers limited number of Linux distributions. As I was having issues with getting ODBC to work on these distributions, I re-created the Ubuntu 10.04 setup in Virtualbox so that I has a working configuration to compare with. These are the configurations files from my Ubuntu 10.04 setup. prpnet database.ini Code:
driver=MySQL server=localhost port=3306 database=prpnet user=xxxx password=xxxx Code:
[MySQL] Description = MySQL driver for Linux Driver = /usr/lib/odbc/libmyodbc.so Server = localhost Option = 3 Code:
[MySQL] Description = MySQL driver Driver = /usr/lib/odbc/libmyodbc.so Setup = /usr/lib/odbc/libodbcmyS.so Server = localhost Database = prpnet With exactly the same configuration files I get the following error message on Debian 6 when running prpserver. Code:
[2013-08-10 13:03:07 BST] Connect to database failed: [iODBC][Driver Manager]{MySL}: cannot open shared object file: No such file or directory, native code=0
With CentOS 6 and the same configuration files I get a slightly different error message when running prpserver. Code:
[2013-08-10 13:06:29 BST] Connect to database failed: ð*ì§, native code=0 Can anyone who has got this to work please post their ODBC configurations or suggest what I may be doing wrong. If you have a working configuration on Debian or CentOS even better, but any distribution might give me some things to try. BTW I successfully connected to the prpnet database on Debian with isql and the DataManager application from the unixodbc package which would suggest that the libmyodbc setup does work. Last fiddled with by amphoria on 2013-08-10 at 19:01 Reason: Added testing ODBC configuration on Debian |
|
|
|
|
|
#2 |
|
"Dave"
Sep 2005
UK
23×347 Posts |
After a bit more investigation I may be zeroing in on the issue. Firstly I discovered that changing the entry in database.ini from driver= to dsn= made it use odbc.ini rather than odbcinst.ini. This kind of makes sense. But more importantly it got slighter further on in the prpnet code and I can now get a database connection error with both Debian and CentOS 6. The error on Debian is
Code:
[2013-08-11 18:59:18 BST] 2: ODBC Connection via a DSN. DSN=MySQL, User=xxxx, Password=xxxx [2013-08-11 18:59:18 BST] Connect to database failed: ˆ™ôoI, native code=2002 The suggested solution is to recompile mysql-connector-odbc against iodbc rather than unixodbc, although I haven't has a chance to try this yet. |
|
|
|
|
|
#3 |
|
"Dave"
Sep 2005
UK
23×347 Posts |
I realised soon after my last post that there might be an even easier solution if it was possible to build prpnet with unixodbc rather than iodbc. I had never thought of this previously because I was unsure if there were any dependencies between the two.
Yes you can and it solves the problem I was getting. I now get a successful connection to the database with the myodbc driver that comes with Debian 6. To record what I did for any others that might be interested, you just need to install the unixodbc and unixodbc-dev packages rather than libiodbc2 and libiodbc2-dev packages. Then in the prpnet makefile you need to change -liodbc to -lodbc. |
|
|
|
|
|
#4 |
|
"Carlos Pinho"
Oct 2011
Milton Keynes, UK
143216 Posts |
Can you make me a guide step by step on how to setup a prpserver and a prpclient under linux ubuntu? What files do I need, how do I add work, in which type of format is the work added in, etc.
Last fiddled with by pinhodecarlos on 2013-09-04 at 11:33 |
|
|
|
|
|
#5 |
|
"Mark"
Apr 2003
Between here and the
3·2,447 Posts |
There are readme.txt files in the server and client directories of my distribution. Start there.
|
|
|
|
|
|
#6 |
|
Sep 2002
Database er0rr
5×937 Posts |
Why is llr64 not in the current 64 bit linux 7z file?
Last fiddled with by paulunderwood on 2013-09-04 at 13:41 |
|
|
|
|
|
#7 |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
|
|
|
|
|
|
#8 |
|
Sep 2002
Database er0rr
5·937 Posts |
You, rogue.
|
|
|
|
|
|
#9 |
|
"Mark"
Apr 2003
Between here and the
162558 Posts |
|
|
|
|
|
|
#10 |
|
Sep 2002
Database er0rr
468510 Posts |
Yes, it's PrimeGrid's. Thanks.
|
|
|
|
|
|
#11 |
|
May 2009
Moscow, Russia
2,963 Posts |
I've recently installed a newest version of prpserver and spent several hours figuring out why it could not connect to the database. Then I decided to search the forum and found this thread
![]() Thanks to amphoria, his advice solved my problem. Also, the applications did not compile with the error Code:
/usr/bin/ld: LengthCalculator.o: undefined reference to symbol 'floor@@GLIBC_2.2.5' //usr/lib64/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [prpserver] Error 1 One more suggestion is to add prpadmin to the target all. Does it worth adding these changes to the makefile? |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Configuring p-1 test | lukerichards | Software | 1 | 2018-01-24 19:13 |
| Information about PRPNet Build Errors on Linux | hangxanh | Software | 2 | 2014-10-24 16:22 |
| PRPNet Build Errors on Linux | Happy5214 | Software | 8 | 2012-05-18 12:42 |
| Any ODBC experts here? | xilman | Programming | 30 | 2011-08-16 06:47 |
| Question on configuring/compiling... | WraithX | GMP-ECM | 5 | 2007-12-05 15:24 |