afrog icon indicating copy to clipboard operation
afrog copied to clipboard

Error when installing on Ubuntu 14.04 (script/build)

Open a9entropy opened this issue 12 years ago • 11 comments

I am following the steps given here: https://github.com/atom/atom#linux-requirements

The versions I have installed are: screenshot from 2014-05-07 13 30 56

When I execute script/build # Creates application at /tmp/atom-build/Atom

I get an error

home/aju/atom/apm/node_modules/atom-package-manager/bin/apm: line 40: /home/aju/atom/apm/node_modules/atom-package-manager/bin/node: No such file or directory

screenshot from 2014-05-07 13 33 38

a9entropy avatar May 07 '14 08:05 a9entropy

It looks like something has gone wrong with your build the apm directory is only populated after running the script/build executable. Can you run script/clean an try rebuilding?

I would advise checking this issue also https://github.com/atom/atom/issues/1981

g0xA52A2A avatar May 07 '14 08:05 g0xA52A2A

I've just noticed your building using sudo, this should be done as your normal user.

g0xA52A2A avatar May 07 '14 08:05 g0xA52A2A

I ran script/build without sudo after script/clean and it just hangs.

After a lifetime it shows an error npm WARN package.json [email protected] No repository field. and hangs.

I manually closed the terminal after 15 minutes. Should it take so much time ?

a9entropy avatar May 07 '14 14:05 a9entropy

All I had to do was follow the items in the issue in my first comment. You don't have any root owned files left over from your previous build do you?

g0xA52A2A avatar May 07 '14 14:05 g0xA52A2A

No, I ran sudo script/clean before

a9entropy avatar May 07 '14 16:05 a9entropy

Bizarre, it's mentioned that the error you mentioned above is normal by one of the github devs https://github.com/atom/atom/issues/2029#issuecomment-42441187

You could run node --log_all script/build this will write out a log file named v8.log (you can change this with --logfile) so you can get a better idea of what's happening. Other than that I'm not sure, my node.js fu is weak I'm afraid.

g0xA52A2A avatar May 07 '14 16:05 g0xA52A2A

Here's the logfile

https://gist.github.com/a9entropy/183e594f6d637e419070

Day 3 and I still have no idea.

a9entropy avatar May 08 '14 17:05 a9entropy

Yup I have no idea about the output :confused: I miss good old make

Step by step I did the following on my system which included building node rather than using the node from the Ubuntu repos or someone's PPA.

# Build node from source
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
tar xzvf node-v0.10.28.tar.gz
cd node-v0.10.28
./configure && make
sudo make install

# Atom pre-requisits
sudo apt-get install libgnome-keyring-dev
sudo apt-get remove gyp
sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

# Install atom
git clone https://github.com/atom/atom
cd atom
script/build
sudo script/grunt install

I cleaned up my system and re-did the above which produced a working build. I was on a really crummy wifi connection so installing npm packages was slow and was taking most of the time. None the less I always had output in my terminal.

Edit: Just wanted to add I am using the standard Ubuntu build tools provided by the build-essential package.

g0xA52A2A avatar May 08 '14 19:05 g0xA52A2A

https://github.com/webwurst/docker_base_files/blob/master/atom/README.md

sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

worked for me ;)

vitornogueira avatar May 08 '14 19:05 vitornogueira

Hi @a9entropy, if you can still reproduce this, feel free to comment here. I'm going to close this in the meantime however.

winstliu avatar Apr 13 '15 21:04 winstliu

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

lock[bot] avatar Jan 22 '19 22:01 lock[bot]