Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-01-2014, 09:36   #1
Registered User

Join Date: Mar 2011
Posts: 16
OpenCPN on CentOS 6.4 and 6.5

Hello,

I am trying to install OpenCPN on CentOS 6.5 and it fails with the following error:

error: Failed dependencies:
libc.so.6(GLIBC_2.14)(64bit) is needed by opencpn-3.2.2-1.x86_64
libstdc++.so.6(GLIBCXX_3.4.15)(64bit) is needed by opencpn-3.2.2-1.x86_64
libtinyxml.so.0()(64bit) is needed by opencpn-3.2.2-1.x86_64
libz.so.1(ZLIB_1.2.3.3)(64bit) is needed by opencpn-3.2.2-1.x86_64

The libraries indicated do not exist for CentOS 6.5. Is it possible to find a build working with it?

I tried as well to recompile from scratch and then create the rpm package. Compilation is OK, but then "make package" fails to create the rpm.

And no, I will not install just with "make install" I do not use this method on my systems because it then makes it impossible to clean up old packages.

Thank you in advance for your help.
__________________

__________________
haydude is offline   Reply With Quote
Old 21-01-2014, 14:19   #2
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,248
Re: OpenCPN on CentOS 6.4 and 6.5

I'm not into RedHat anymore. I stopped at about Fedora 3.....
I think that SetDart is da mon.
Meanwhile, just searching around a bit should make it possible to get "make package" to produce an rpm.
Some help is available through
Quote:
$cmake --help-module CPackRPM
Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 27-01-2014, 09:35   #3
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
Re: OpenCPN on CentOS 6.4 and 6.5

Our RPMs are built for Fedora and doen't seems to be compatible as-is with CentOS.

I just built one on CentOS 6.5 x86_64

Here's the receipe:

1/ You must install EPEL repo for cmake 2.8.12 (cmake 2.6.x from centos is way outdated. I guess that's the reason for your problem)

# yum install http://mir01.syntis.net/epel/6/i386/...6-8.noarch.rpm
# yum install cmake28 portaudio-devel tinyxml-devel

2/ Then you can follow with normal installation procedure as described (note the use of cmake28 instead of cmake below)

$ cmake28 -DPREFIX=/usr ../
$ make
$ make package

I just uploaded latest beta built with a CentOS 6.5 x86_64 VM
http://je.onfray.fr/dl/opencpn_3.3.1...el6.x86_64.rpm

I'll try to create a repo for CentOS if you're interested.
__________________
SethDart is offline   Reply With Quote
Old 27-01-2014, 10:37   #4
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
Re: OpenCPN on CentOS 6.4 and 6.5

The EPEL repo is ready.

You can install it with:
yum install http://je.onfray.fr/repo/epel/6/x86_...el6.noarch.rpm

To install opencpn, run:
yum install opencpn

If you want to test latest beta:
yum --enablerepo=jeo-testing install opencpn

To stay updated with latest beta, you should set enabled=1 in section [jeo-testing] in /etc/yum.repo.d/jeo-epel.repo

Enjoy!
__________________
SethDart is offline   Reply With Quote
Old 27-01-2014, 12:14   #5
Registered User

Join Date: Mar 2011
Posts: 16
Re: OpenCPN on CentOS 6.4 and 6.5

Quote:
Originally Posted by SethDart View Post
Our RPMs are built for Fedora and doen't seems to be compatible as-is with CentOS.

I just built one on CentOS 6.5 x86_64

Here's the receipe:

1/ You must install EPEL repo for cmake 2.8.12 (cmake 2.6.x from centos is way outdated. I guess that's the reason for your problem)

# yum install http://mir01.syntis.net/epel/6/i386/...6-8.noarch.rpm
# yum install cmake28 portaudio-devel tinyxml-devel

2/ Then you can follow with normal installation procedure as described (note the use of cmake28 instead of cmake below)

$ cmake28 -DPREFIX=/usr ../
$ make
$ make package

I just uploaded latest beta built with a CentOS 6.5 x86_64 VM
http://je.onfray.fr/dl/opencpn_3.3.1...el6.x86_64.rpm

I'll try to create a repo for CentOS if you're interested.
I have stopped using Fedora a while ago because just a few months after the next release they stop providing patches for the previous release you are on and thus the only way to upgrade is to do a fresh re-install. CentOS is slightly behind, but at least I never have to re-install because there is always an upgrade path.

Thank you for your help and for providing the package, very much appreciated.
__________________
haydude is offline   Reply With Quote
Old 28-01-2014, 18:07   #6
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
Re: OpenCPN on CentOS 6.4 and 6.5

Quote:
Originally Posted by haydude View Post
I have stopped using Fedora a while ago because just a few months after the next release they stop providing patches for the previous release you are on and thus the only way to upgrade is to do a fresh re-install. CentOS is slightly behind, but at least I never have to re-install because there is always an upgrade path.
Just for the sake of accuracy, Fedora releases are updated for 13 month or so.
Fedora 20 was released a few weeks ago and Fedora 18 will be updated until the end of january (or is it early february, I don't remember)

And, by the way, they now have a great tool to update releases, it's named fedup (as in FEDora UPgrade) and it works like a charm, really. Around Fedora 15, there was another tool, named preupgrade, but that one was not a success, quickly replaced by this fedup that does the job just right. Upgrading from Fedora 19 to Fedora 20 is as simple as running "fedup --network 20", reboot and you're done!

I don't know if you tried using my repo to install opencpn but I've just updated the -testing repo to the just released opencpn 3.3.1328 beta. You can try it now.
__________________

__________________
SethDart is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 22:14.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.