August 23, 2017, 07:51:26 am

Author Topic: Library issue with goldcoin binaries on Ubuntu 16.10  (Read 510 times)

0 Members and 1 Guest are viewing this topic.

Offline dashed-slug

  • Newbie
  • *
  • Posts: 4
  • Karma: +5/-0
  • Wordpress tools, for people who like slugs!
    • View Profile
    • dashed-slug
Library issue with goldcoin binaries on Ubuntu 16.10
« on: April 09, 2017, 12:28:50 pm »
Hi, I'm trying to run the wallet on my linux machine:

Code: [Select]
$ lsb_release -r
Release: 16.10

It complains that the libboost-system library 1.58.0 is not there

Code: [Select]
$ ./goldcoind
./goldcoind: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory

However the repositories don't have this version.

Code: [Select]
$ apt search libboost-system
Sorting... Done
Full Text Search... Done
libboost-system-dev/yakkety,now 1.61.0.2 amd64 [installed]
  Operating system (e.g. diagnostics support) library (default version)

libboost-system1.54.0/now 1.54.0-4ubuntu3.1 amd64 [installed,local]
  Operating system (e.g. diagnostics support) library

libboost-system1.60-dev/yakkety 1.60.0+dfsg-6 amd64
  Operating system (e.g. diagnostics support) library

libboost-system1.60.0/yakkety 1.60.0+dfsg-6 amd64
  Operating system (e.g. diagnostics support) library

libboost-system1.61-dev/yakkety,now 1.61.0+dfsg-2.1 amd64 [installed,automatic]
  Operating system (e.g. diagnostics support) library

libboost-system1.61.0/yakkety,now 1.61.0+dfsg-2.1 amd64 [installed,automatic]
  Operating system (e.g. diagnostics support) library

I'm still trying to figure out how to install the right library version but in the meantime I thought I'd post this here because I'm guessing Ubuntu 16.10 is something a lot of folks use?

http://dashed-slug.net
WordPress tools, for people who like slugs!
E5d9KWA71jc15cRDR7neBQG9uTFroCNi5k

Offline MicroGuy

  • @realMicroGuy
  • Administrator
  • *****
  • Posts: 3263
  • Karma: +46/-0
  • "Shoot for the Stars!"
    • View Profile
    • MicroGuy.com
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #1 on: April 09, 2017, 12:45:25 pm »
Hi and welcome!  :)

Here are the complete build notes for Linux: https://www.gldtalk.org/index.php?topic=3764.0

Please let me know if there's anything else you need. Thank you!
"The heart of any cryptocurrency can be found in the spirit of its community."

Offline akumaburn

  • Lead Developer
  • DevTeam
  • *****
  • Posts: 319
  • Karma: +44/-0
    • View Profile
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #2 on: April 09, 2017, 01:16:07 pm »
Hi, I'm trying to run the wallet on my linux machine:

Code: [Select]
$ lsb_release -r
Release: 16.10

It complains that the libboost-system library 1.58.0 is not there

Code: [Select]
$ ./goldcoind
./goldcoind: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory

However the repositories don't have this version.

Code: [Select]
$ apt search libboost-system
Sorting... Done
Full Text Search... Done
libboost-system-dev/yakkety,now 1.61.0.2 amd64 [installed]
  Operating system (e.g. diagnostics support) library (default version)

libboost-system1.54.0/now 1.54.0-4ubuntu3.1 amd64 [installed,local]
  Operating system (e.g. diagnostics support) library

libboost-system1.60-dev/yakkety 1.60.0+dfsg-6 amd64
  Operating system (e.g. diagnostics support) library

libboost-system1.60.0/yakkety 1.60.0+dfsg-6 amd64
  Operating system (e.g. diagnostics support) library

libboost-system1.61-dev/yakkety,now 1.61.0+dfsg-2.1 amd64 [installed,automatic]
  Operating system (e.g. diagnostics support) library

libboost-system1.61.0/yakkety,now 1.61.0+dfsg-2.1 amd64 [installed,automatic]
  Operating system (e.g. diagnostics support) library

I'm still trying to figure out how to install the right library version but in the meantime I thought I'd post this here because I'm guessing Ubuntu 16.10 is something a lot of folks use?

Since you are also developing you will want the packages from here:

http://packages.ubuntu.com/xenial/libboost-all-dev

You'll want to comment existing lines in your sources.list file and add the ones from here:

https://help.ubuntu.com/lts/serverguide/configuration.html


Then you'll want to do

Code: [Select]
sudo apt-get remove libboost-all-dev -y

And then

Code: [Select]
sudo apt-get install libboost-all-dev -y

Then install any remaining libraries and it should work.

Good Luck!



Want to donate to the Development Team?

GLD:
DztaVPtUd2M5TwfifBUaq5bLrAscYeMbyd

Offline dashed-slug

  • Newbie
  • *
  • Posts: 4
  • Karma: +5/-0
  • Wordpress tools, for people who like slugs!
    • View Profile
    • dashed-slug
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #3 on: April 09, 2017, 03:08:02 pm »
Thanks to both of you for the help.

I've managed to install the correct boost library version with:

Code: [Select]
sudo add-apt-repository "deb http://cz.archive.ubuntu.com/ubuntu xenial main universe"
sudo apt update

Code: [Select]
And now the library is available:
apt-cache madison libboost-all-dev
libboost-all-dev |   1.61.0.2 | http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
libboost-all-dev | 1.58.0.1ubuntu1 | http://cz.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
boost-defaults |   1.61.0.2 | http://archive.ubuntu.com/ubuntu yakkety/main Sources

so I installed the correct version with:

Code: [Select]
sudo apt install libboost-all-dev=1.58.0.1ubuntu1
however building still fails. This is what I did:

Code: [Select]
git clone https://github.com/goldcoin/goldcoin
cd goldcoin/src
mkdir obj
make -f makefile.unix  USE_IPV6=1 USE_UPNP=1 USE_QRCODE=1 64BIT=1 RELEASE=1

Compilation fails with:

Code: [Select]
net.cpp:61:1: error: reference to ‘array’ is ambiguous
 array<int, THREAD_MAX> vnThreadsRunning;
 ^~~~~
In file included from net.h:11:0,
                 from main.h:11,
                 from db.h:10,
                 from net.cpp:9:
/usr/include/boost/array.hpp:60:11: note: candidates are: template<class T, long unsigned int N> class boost::array
     class array {
           ^~~~~
In file included from /usr/include/c++/6/tuple:39:0,
                 from /usr/include/c++/6/bits/stl_map.h:63,
                 from /usr/include/c++/6/map:61,
                 from util.h:19,
                 from bignum.h:14,
                 from main.h:10,
                 from db.h:10,
                 from net.cpp:9:
/usr/include/c++/6/array:90:12: note:                 template<class _Tp, long unsigned int _Nm> struct std::array
     struct array
            ^~~~~
makefile.unix:153: recipe for target 'obj/net.o' failed
make: *** [obj/net.o] Error 1

The master branch was on the 54a47e7 commit at the time.

what's more, the wallet binaries still don't find the libboost_system.so.1.58.0 library. Maybe an LD_LIBRARY_PATH issue?

Any ideas?
« Last Edit: April 09, 2017, 03:11:19 pm by dashed-slug »
http://dashed-slug.net
WordPress tools, for people who like slugs!
E5d9KWA71jc15cRDR7neBQG9uTFroCNi5k

Offline Stouse49

  • Gold Engineer
  • DevTeam
  • *****
  • Posts: 664
  • Karma: +66/-0
    • View Profile
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #4 on: April 10, 2017, 12:26:40 am »
I saw this several times when building the client on a Mac and I didn't use boost 1.58, but rather a more recent version.

before "array" in  net.h:11 add "boost::"

The error is this:  "net.cpp:61:1: error: reference to ‘array’ is ambiguous", which means that the compiler doesn't know which array class to use.  Be specific by specifying the boost namespace.
GLD: E1A6WogjpqU3KjjoRUD63f7kofrFozmyfg

Offline dashed-slug

  • Newbie
  • *
  • Posts: 4
  • Karma: +5/-0
  • Wordpress tools, for people who like slugs!
    • View Profile
    • dashed-slug
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #5 on: April 11, 2017, 05:59:05 am »
I saw this several times when building the client on a Mac and I didn't use boost 1.58, but rather a more recent version.

before "array" in  net.h:11 add "boost::"

The error is this:  "net.cpp:61:1: error: reference to ‘array’ is ambiguous", which means that the compiler doesn't know which array class to use.  Be specific by specifying the boost namespace.

Thanks. This describes the specific programming error that the compiler chokes on.

Unfortunately I do not know C well enough (I know, embarrassing). If there are bugs in the code that cause the build to fail then I believe the development team can fix them better than I can.

I would just like to know how to run a known working build so I can communicate with the wallet from some PHP/WordPress code I'm writing.

This is not high priority. To give you some background, I am the developer of the Bitcoin and Altcoin Wallets WordPress plugin and after the last Goldcoin Sunday talk we decided that I would provide connectivity to Goldcoin from the Wallets plugin. This will give Goldcoin users access to all my other plugins that provide other payment gateways (WooCommerce e-shops, Events Manager bookings, and more to come) For most merchants and shop owners, connectivity will go through a cloud wallet service that we have agreed on, but eventually I would still like to be able to let larger shops connect to the daemon through the RPC API. To do this I will need a running instance of the daemon that I can use for testing.

I used the head of the master branch. Is there perhaps a more stable tag you could recommend?

Thanks and regards
Alex
http://dashed-slug.net
WordPress tools, for people who like slugs!
E5d9KWA71jc15cRDR7neBQG9uTFroCNi5k

Offline Stouse49

  • Gold Engineer
  • DevTeam
  • *****
  • Posts: 664
  • Karma: +66/-0
    • View Profile
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #6 on: April 11, 2017, 10:42:38 am »
I saw this several times when building the client on a Mac and I didn't use boost 1.58, but rather a more recent version.

before "array" in  net.h:11 add "boost::"

The error is this:  "net.cpp:61:1: error: reference to ‘array’ is ambiguous", which means that the compiler doesn't know which array class to use.  Be specific by specifying the boost namespace.

Thanks. This describes the specific programming error that the compiler chokes on.

Unfortunately I do not know C well enough (I know, embarrassing). If there are bugs in the code that cause the build to fail then I believe the development team can fix them better than I can.

I would just like to know how to run a known working build so I can communicate with the wallet from some PHP/WordPress code I'm writing.

This is not high priority. To give you some background, I am the developer of the Bitcoin and Altcoin Wallets WordPress plugin and after the last Goldcoin Sunday talk we decided that I would provide connectivity to Goldcoin from the Wallets plugin. This will give Goldcoin users access to all my other plugins that provide other payment gateways (WooCommerce e-shops, Events Manager bookings, and more to come) For most merchants and shop owners, connectivity will go through a cloud wallet service that we have agreed on, but eventually I would still like to be able to let larger shops connect to the daemon through the RPC API. To do this I will need a running instance of the daemon that I can use for testing.

I used the head of the master branch. Is there perhaps a more stable tag you could recommend?

Thanks and regards
Alex

I will get back to you.  I am trying to build goldcoin on linux (ubuntu 16) to see what might need to be changed.
GLD: E1A6WogjpqU3KjjoRUD63f7kofrFozmyfg

Offline akumaburn

  • Lead Developer
  • DevTeam
  • *****
  • Posts: 319
  • Karma: +44/-0
    • View Profile
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #7 on: April 13, 2017, 04:27:16 pm »
In the mean time you can try building in Ubuntu Xenial, Ubuntu 16.04.2 LTS
Which I have had success in building in.
Want to donate to the Development Team?

GLD:
DztaVPtUd2M5TwfifBUaq5bLrAscYeMbyd

Offline Stouse49

  • Gold Engineer
  • DevTeam
  • *****
  • Posts: 664
  • Karma: +66/-0
    • View Profile
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #8 on: April 15, 2017, 03:55:51 pm »
In the mean time you can try building in Ubuntu Xenial, Ubuntu 16.04.2 LTS
Which I have had success in building in.

I was able to compile, but linking fails with QtWebKit.  It cannot be found.  I have qt4 installed on Ubuntu 16.04 LTS.
GLD: E1A6WogjpqU3KjjoRUD63f7kofrFozmyfg

Offline dashed-slug

  • Newbie
  • *
  • Posts: 4
  • Karma: +5/-0
  • Wordpress tools, for people who like slugs!
    • View Profile
    • dashed-slug
Re: Library issue with goldcoin binaries on Ubuntu 16.10
« Reply #9 on: June 12, 2017, 01:00:32 pm »
Hi again,

Apologies for reviving an old thread, but this post is directly related to this issue that I was facing a while ago, where I couldn't build the wallet on Ubuntu 16.10.

You were absolutely right akumaburn, the code builds perfectly on Ubuntu 16.04.

I got to try it again today because I want to finish up and test that RPC adapter for the Bitcoin and Altcoin Wallets WordPress plugin.

I decided to publish the Dockerfile in case anyone's interested: https://github.com/alex-georgiou/goldcoin-chest

Be careful not to use it in production before editing the .conf file, for security reasons!

regards,
Alex
http://dashed-slug.net
WordPress tools, for people who like slugs!
E5d9KWA71jc15cRDR7neBQG9uTFroCNi5k

 

;