Pages:
Author

Topic: Linux noob trying to run bitcoin via SSH - page 3. (Read 8953 times)

legendary
Activity: 1400
Merit: 1005
Got XAMPP working on the server, so that makes me happy.  Smiley

Ok, so I'm still up against this error trying to run bitcoind:
Code:
./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
I've uninstalled the libgthread2.0-0 package using "sudo apt-get remove libglib2.0-0" and reinstalled it using "sudo apt-get install libgthread2.0-0".  Still getting the same error.

Now, I've read a few people suggesting symlinks.  From what I understand, a symlink is basically an alias or pointer for another file?  Is there a possibility that the library file is misnamed, and I can point libgthread-2.0.so.0 to the proper file via a symlink?
sr. member
Activity: 308
Merit: 251
Tasty - more problems.  Tongue

I tried the first command, but got an error.
Code:
vserver-mrme94e38:~# add-apt-repository ppa:stretch/bitcoin
-bash: add-apt-repository: command not found
Googled it, and apparently that command is part of the python-software-properties package, so I followed the instructions to install said package.

Still getting the same error.  Undecided

Any ideas?

At least all of this googling and package installing is getting me more familiar with linux commands.

Like I said get in touch and I'll get it setup for you. I'm available for the next 30 mins and I charge 3BTC per hour. Your problem will take me about 15 mins max Wink
legendary
Activity: 1400
Merit: 1005
Tasty - more problems.  Tongue

I tried the first command, but got an error.
Code:
vserver-mrme94e38:~# add-apt-repository ppa:stretch/bitcoin
-bash: add-apt-repository: command not found
Googled it, and apparently that command is part of the python-software-properties package, so I followed the instructions to install said package.

Still getting the same error.  Undecided

Any ideas?

At least all of this googling and package installing is getting me more familiar with linux commands.
sr. member
Activity: 308
Merit: 251
Sgtspike send me a detailed description on what you are trying to achieve and I'll screenshare and talk you through it.
member
Activity: 84
Merit: 10
I don't completely understand why this isn't working for you, but look at this:
http://forum.bitcoin.org/index.php?topic=29035.0
Later on today try updating and installing it.

here is how you do it.

copy/paste this:
Code:
add-apt-repository ppa:stretch/bitcoin

the output will look similar to this:
Code:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv CD1034FCBFA4E05DCFAD0C2A8741DDC3A4FF3776
gpg: requesting key A4FF3776 from hkp server keyserver.ubuntu.com
gpg: key A4FF3776: "Launchpad PPA for David Armstrong" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
then
Code:

sudo apt-get update
then
Code:

sudo apt-get install bitcoin
member
Activity: 84
Merit: 10
Tasty - what would be the benefit from doing so?

Thanks for the links too!  Smiley

I hope I'm not defeating the purpose of you building it on the target system, but the main benefit is having something you can mess up and replace very easily. You can even create an extra layer of security by having someone help you build it inside your VM, package it, then you could transfer the build over to the remote server yourself.
That is quite a few extra set of steps. Though after having read more of the thread in detail I noticed you are in this with a partner, so it could make things a bit easier on trust letting someone on the outside help you.

The main/biggest downfall is not building directly on your remote system. As you will surely want to update often, you may want the remote server to have all the libs unless you keep building them in the VM.

What drGr33n wrote here could most certainly help you:
http://forum.bitcoin.org/index.php?topic=28718.msg366587#msg366587

It's very good info, I've wondered if that was possible.
After some research I found it relatively easy to do too:
http://www.math.umn.edu/systems_guide/putty_xwin32.html

Interesting thread Bro.
legendary
Activity: 1400
Merit: 1005
Tasty - what would be the benefit from doing so?

Thanks for the links too!  Smiley
member
Activity: 84
Merit: 10
I'm leaning towards this, though it would be nice if I could find my way around linux a bit more, just in case something needs to be adjusted in the future.  I just wish it wasn't so dang hard to figure all these libraries and dependencies out.  Just makes me thankful that I have Windows so I don't have to deal with this sort of thing on a daily basis.  Sorry for making all you linux gurus cringe.  Tongue

I don't want to derail your thread but, if you end up doing this yourself. I suggest setting up a VM (virtual machine) with virtualbox to build it, using the same distro or a similar debian core distro your remote server is using. Then transfer the binary over to your remote server. If you want to do that start another thread, and I will find material for you on how to do it.


this will help for accelerating your learning linux:
linux commands reference & tutorials:
http://www.pixelbeat.org/cmdline.html
^that one you can c/p with
http://fosswire.com/post/2007/08/unixlinux-command-cheat-sheet/
^pdf
http://www.cyberciti.biz/tips/linux-unix-commands-cheat-sheets.html
^ a bunch of different getting started links, some of the sites linked do have broken links, I'm mainly just talking about the linux command reference The Ultimate collection. that one is full of broken links.
legendary
Activity: 1400
Merit: 1005
This is just after deleting all the bitcoin files and folders, redownloading, unzipping, and going at it again.  Interesting that the 64-bit bitcoind gives a different error than the 32-bit bitcoind.  Perhaps I should have specified which version I was trying to run?  I don't really care if it runs 64-bit or 32-bit, either one working would be fine.

Code:
vserver-mrme94e38:~# cd bitcoin-0.3.24
vserver-mrme94e38:~/bitcoin-0.3.24# cd bin
vserver-mrme94e38:~/bitcoin-0.3.24/bin# cd 64
vserver-mrme94e38:~/bitcoin-0.3.24/bin/64# ./bitcoind -daemon
./bitcoind: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./bitcoind)
./bitcoind: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./bitcoind)
vserver-mrme94e38:~/bitcoin-0.3.24/bin/64# cd ..
vserver-mrme94e38:~/bitcoin-0.3.24/bin# cd 32
vserver-mrme94e38:~/bitcoin-0.3.24/bin/32# ./bitcoind -daemon
./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
vserver-mrme94e38:~/bitcoin-0.3.24/bin/32#

Got your PM I'll reply in the after I get some sleep Wink Thats why your getting the version number mismatch. Your 32bit version will work after you type in terminal.

Code:
sudo apt-getr update
sudo apt-get install libglib2.0-0

Then run the 32bit version.
Code:
sudo apt-getr update
didn't work, but
Code:
sudo apt-get update
did... did you mean it without the r?

Regardless, I went through those two steps.  The install step said:
Code:
libglib2.0-0 is already the newest version
and didn't update any files.

Then, when I went to launch bitcoind, it came up with the same error:
Code:
./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

i still firmly agree with davidonpda

step one.
SgtSpike installs team viewer on his computer, sets record sessions.
then sends session invite to computerized guy.

step two.
SgtSpike logs into his remote server.

step three.
computerized guy accepts session.

step four.
profit.

no password dataz to computerized guy, unless computerized guy is some how able to manage changing passwd right in front of sgt spike. however, nice computerized guy wouldn't do that.
I'm leaning towards this, though it would be nice if I could find my way around linux a bit more, just in case something needs to be adjusted in the future.  I just wish it wasn't so dang hard to figure all these libraries and dependencies out.  Just makes me thankful that I have Windows so I don't have to deal with this sort of thing on a daily basis.  Sorry for making all you linux gurus cringe.  Tongue
member
Activity: 84
Merit: 10
i still firmly agree with davidonpda

step one.
SgtSpike installs team viewer on his computer, sets record sessions.
then sends session invite to computerized guy.

step two.
SgtSpike logs into his remote server.

step three.
computerized guy accepts session.

step four.
profit.

no password dataz to computerized guy, unless computerized guy is some how able to manage changing passwd right in front of sgt spike. however, nice computerized guy wouldn't do that.
sr. member
Activity: 308
Merit: 251
This is just after deleting all the bitcoin files and folders, redownloading, unzipping, and going at it again.  Interesting that the 64-bit bitcoind gives a different error than the 32-bit bitcoind.  Perhaps I should have specified which version I was trying to run?  I don't really care if it runs 64-bit or 32-bit, either one working would be fine.

Code:
vserver-mrme94e38:~# cd bitcoin-0.3.24
vserver-mrme94e38:~/bitcoin-0.3.24# cd bin
vserver-mrme94e38:~/bitcoin-0.3.24/bin# cd 64
vserver-mrme94e38:~/bitcoin-0.3.24/bin/64# ./bitcoind -daemon
./bitcoind: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./bitcoind)
./bitcoind: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./bitcoind)
vserver-mrme94e38:~/bitcoin-0.3.24/bin/64# cd ..
vserver-mrme94e38:~/bitcoin-0.3.24/bin# cd 32
vserver-mrme94e38:~/bitcoin-0.3.24/bin/32# ./bitcoind -daemon
./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
vserver-mrme94e38:~/bitcoin-0.3.24/bin/32#

Got your PM I'll reply in the after I get some sleep Wink Thats why your getting the version number mismatch. Your 32bit version will work after you type in terminal.

Code:
sudo apt-getr update
sudo apt-get install libglib2.0-0

Then run the 32bit version.
legendary
Activity: 1400
Merit: 1005
This is just after deleting all the bitcoin files and folders, redownloading, unzipping, and going at it again.  Interesting that the 64-bit bitcoind gives a different error than the 32-bit bitcoind.  Perhaps I should have specified which version I was trying to run?  I don't really care if it runs 64-bit or 32-bit, either one working would be fine.

Code:
vserver-mrme94e38:~# cd bitcoin-0.3.24
vserver-mrme94e38:~/bitcoin-0.3.24# cd bin
vserver-mrme94e38:~/bitcoin-0.3.24/bin# cd 64
vserver-mrme94e38:~/bitcoin-0.3.24/bin/64# ./bitcoind -daemon
./bitcoind: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./bitcoind)
./bitcoind: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./bitcoind)
vserver-mrme94e38:~/bitcoin-0.3.24/bin/64# cd ..
vserver-mrme94e38:~/bitcoin-0.3.24/bin# cd 32
vserver-mrme94e38:~/bitcoin-0.3.24/bin/32# ./bitcoind -daemon
./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
vserver-mrme94e38:~/bitcoin-0.3.24/bin/32#
legendary
Activity: 1400
Merit: 1005
Thanks, that install seemed to go through!  Unfortunately, still having errors trying to run bitcoind...

Code:
./bitcoind: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./bitcoind)
./bitcoind: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./bitcoind)

I googled around for a bit, couldn't find a solid answer.  Seems like some software called ccam uses the library, and lots of people had trouble with it related to ccam, but very few threads actually had solutions, and the ones that did were specific to that software.  Gave up on the search, since I'm still unfamiliar with what I'm looking for...

Use the precompiled binaries. Your modded bitcoin binaries have been compiled on a different machine and those are version mismatch errors to do with the migration.
I'll redownload it and try again, but I deleted the whole bitcoin subforum, and untarred it again from scratch just before that error.  I'll delete the tar this time and redownload, just to be certain.
sr. member
Activity: 308
Merit: 251
Thanks, that install seemed to go through!  Unfortunately, still having errors trying to run bitcoind...

Code:
./bitcoind: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./bitcoind)
./bitcoind: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./bitcoind)

I googled around for a bit, couldn't find a solid answer.  Seems like some software called ccam uses the library, and lots of people had trouble with it related to ccam, but very few threads actually had solutions, and the ones that did were specific to that software.  Gave up on the search, since I'm still unfamiliar with what I'm looking for...

Use the precompiled binaries. Your modded bitcoin binaries have been compiled on a different machine and those are version mismatch errors to do with the migration.
legendary
Activity: 1400
Merit: 1005
Thanks, that install seemed to go through!  Unfortunately, still having errors trying to run bitcoind...

Code:
./bitcoind: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./bitcoind)
./bitcoind: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./bitcoind)

I googled around for a bit, couldn't find a solid answer.  Seems like some software called ccam uses the library, and lots of people had trouble with it related to ccam, but very few threads actually had solutions, and the ones that did were specific to that software.  Gave up on the search, since I'm still unfamiliar with what I'm looking for...
sr. member
Activity: 308
Merit: 251
The error's your getting seems to suggest you've built bitcoin on another machine ? It's looking for libs it cannot find and failing. If you run that version locally you will get the same result. Why don't you just use the pre compiled binaries ?

The ampersand at the end is so bitcoind starts and runs in the background so you can still use the shell,
I tried the precompiled binary the first go around, and got an error about a missing lib (see posts near beginning of this thread).  Then, Joel posted a version for me to try, and it has different missing libs.

Does & = -daemon then?

EDIT:  This is the error I got from the precompiled binary:
Code:
"./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot o$"

Your missing libgthread then Cheesy What version on linux ? If your ubuntu / debian

Code:


Sorry my mistake :D You need [b]libglib2.0-0[/b]

[code]
apt-get install libglib2.0-0

apt-get update;apt-get install libgthread
[/code]
Tried it.. seems like it got the update (?) ok, but then comes back with this on the second command:
Code:
E: Couldn't find package libgthread
legendary
Activity: 1400
Merit: 1005
The error's your getting seems to suggest you've built bitcoin on another machine ? It's looking for libs it cannot find and failing. If you run that version locally you will get the same result. Why don't you just use the pre compiled binaries ?

The ampersand at the end is so bitcoind starts and runs in the background so you can still use the shell,
I tried the precompiled binary the first go around, and got an error about a missing lib (see posts near beginning of this thread).  Then, Joel posted a version for me to try, and it has different missing libs.

Does & = -daemon then?

EDIT:  This is the error I got from the precompiled binary:
Code:
"./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot o$"

Your missing libgthread then Cheesy What version on linux ? If your ubuntu / debian

Code:
apt-get update;apt-get install libgthread
Tried it.. seems like it got the update (?) ok, but then comes back with this on the second command:
Code:
E: Couldn't find package libgthread
legendary
Activity: 1400
Merit: 1005
Debian.  Thanks, I'll give that a try when I get home.
sr. member
Activity: 308
Merit: 251
The error's your getting seems to suggest you've built bitcoin on another machine ? It's looking for libs it cannot find and failing. If you run that version locally you will get the same result. Why don't you just use the pre compiled binaries ?

The ampersand at the end is so bitcoind starts and runs in the background so you can still use the shell,
I tried the precompiled binary the first go around, and got an error about a missing lib (see posts near beginning of this thread).  Then, Joel posted a version for me to try, and it has different missing libs.

Does & = -daemon then?

EDIT:  This is the error I got from the precompiled binary:
Code:
"./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot o$"

Your missing libgthread then Cheesy What version on linux ? If your ubuntu / debian

Code:
apt-get update;apt-get install libgthread
legendary
Activity: 1400
Merit: 1005
The error's your getting seems to suggest you've built bitcoin on another machine ? It's looking for libs it cannot find and failing. If you run that version locally you will get the same result. Why don't you just use the pre compiled binaries ?

The ampersand at the end is so bitcoind starts and runs in the background so you can still use the shell,
I tried the precompiled binary the first go around, and got an error about a missing lib (see posts near beginning of this thread).  Then, Joel posted a version for me to try, and it has different missing libs.

Does & = -daemon then?

EDIT:  This is the error I got from the precompiled binary:
Code:
"./bitcoind: error while loading shared libraries: libgthread-2.0.so.0: cannot o$"
Pages:
Jump to: