BitShares Forum

Main => Technical Support => Topic started by: VoR0220 on January 28, 2015, 11:02:12 am

Title: Trouble getting the Ubuntu GUI up
Post by: VoR0220 on January 28, 2015, 11:02:12 am
I've been scouring throughout the forums to figure out how to get it to work. Did everything in the BUILD_UBUNTU Readme. Looked at old posts from arhag. Tried the make command and got this error:

Code: [Select]
[ 91%] Built target pack_web
[ 92%] Automoc for target web_update_utility
[ 92%] Built target web_update_utility_automoc
[ 93%] Built target web_update_utility
[ 93%] Automoc for target BitShares
[ 93%] Built target BitShares_automoc
-- Spawning lineman build...
CMake Error at GenerateHtDocs.cmake:16 (message):
  lineman build spawn failed: 'No such file or directory'


make[2]: *** [programs/qt_wallet/CMakeFiles/buildweb] Error 1
make[1]: *** [programs/qt_wallet/CMakeFiles/buildweb.dir/all] Error 2
make: *** [all] Error 2

Any suggestions on how to best go about getting the GUI up and running?
Title: Re: Trouble getting the Ubuntu GUI up
Post by: xeroc on January 28, 2015, 11:55:06 am
you are missing lineman
Do as described here:
http://wiki.bitshares.org/index.php/Developer/Build#Configuration_and_Compilation_.28GUI.29
Title: Re: Trouble getting the Ubuntu GUI up
Post by: VoR0220 on January 28, 2015, 11:32:20 pm
you are missing lineman
Do as described here:
http://wiki.bitshares.org/index.php/Developer/Build#Configuration_and_Compilation_.28GUI.29

Everything appears to go smoothly until I try the second npm command.

Then I get this:

Code: [Select]
vor0220@VOR-Qosmio-X875:~/bitshares/programs/web_wallet$ npm install
npm WARN package.json bitshares-gui@0.0.1 No repository field.
npm WARN prefer global lineman@0.34.4 should be installed with -g
npm ERR! Error: EACCES, unlink '/home/vor0220/bitshares/programs/web_wallet/node_modules/.bin/lineman'
npm ERR!  { [Error: EACCES, unlink '/home/vor0220/bitshares/programs/web_wallet/node_modules/.bin/lineman']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/home/vor0220/bitshares/programs/web_wallet/node_modules/.bin/lineman' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.13.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/vor0220/bitshares/programs/web_wallet
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/vor0220/bitshares/programs/web_wallet/node_modules/.bin/lineman
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/home/vor0220/bitshares/programs/web_wallet/node_modules/.bin/lineman'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/vor0220/bitshares/programs/web_wallet/npm-debug.log
npm ERR! not ok code 0

If I just ran it as the root administrator, why would I need to run it again as root administrator? Seems odd and I'm not getting the results I think I should be getting. Any clarifications or advice from here?
Title: Re: Trouble getting the Ubuntu GUI up
Post by: pc on January 29, 2015, 08:53:46 am
Don't run anything as root. This causes all kinds of permission problems, like what you're seeing now. Delete the folder and start from scratch.

The only thing that *needs* root permission is when you finally copy the generated executables to /usr/local/bin. Edit: ...and "npm install -g lineman".
Title: Re: Trouble getting the Ubuntu GUI up
Post by: 38PTSWarrior on January 29, 2015, 09:05:27 am
You can do it up to npm install without sudo but then it is necessary otherwise you will get the error VoR0220 explained. How do you do it without sudo npm install?
Title: Re: Trouble getting the Ubuntu GUI up
Post by: pc on January 29, 2015, 09:13:41 am
OK, if you install lineman globally you have to do that as root too.

What seems to have happened here is that something lineman-related was installed locally as root. That's why certain files/directories in the local tree now belong to root and can't be unlinked/deleted by the normal user. I think it is possible to install lineman locally, but you shouldn't do that as root.
Title: Re: Trouble getting the Ubuntu GUI up
Post by: 38PTSWarrior on January 29, 2015, 09:34:39 am
Hm, someone needs to change the manual and put sudo in front of npm install, thank you
Title: Re: Trouble getting the Ubuntu GUI up
Post by: VoR0220 on January 29, 2015, 10:27:36 am
alright guys. I reinstalled it just the way it says in the documentation. Now how do I actually start the GUI? I seem to have built well. Went to the QT wallet page for some insight. Doesn't seem to be working but then again it hasn't been working for a while. I tried forcebuildweb and that doesn't seem to do anything.
Title: Re: Trouble getting the Ubuntu GUI up
Post by: pc on January 29, 2015, 11:01:09 am
After "make BitShares" went through successfully, you can start the GUI manually from the command line:

Code: [Select]
programs/qt_wallet/bin/BitShares
If you also copied the binary and the .desktop file to /usr/local, the client should now appear in your desktop menu. (Not quite sure how Ubuntu handles that.)
Title: Re: Trouble getting the Ubuntu GUI up
Post by: VoR0220 on January 29, 2015, 11:04:59 am
After "make BitShares" went through successfully, you can start the GUI manually from the command line:

Code: [Select]
programs/qt_wallet/bin/BitShares
If you also copied the binary and the .desktop file to /usr/local, the client should now appear in your desktop menu. (Not quite sure how Ubuntu handles that.)
Yup, that did it. Thanks a ton guys.