Phantomjs seems to be unable to work on arm architecture

1,057 views
Skip to first unread message

Денис Головкин

unread,
Jan 26, 2015, 11:11:59 PM1/26/15
to phan...@googlegroups.com
Hi all.

I'm trying to build "Brackets editor" under Cubian OS, armv7 architecture, the build process described here and needs nodejs.

On the "npm install" step it downloads phantomjs
root@Cubian:/home/cubie/Downloads/brackets-release-1.1# npm install
|
> phantomjs@1.9.11 install /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs
> node install.js


Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-i686.tar.bz2
Saving to /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/phantomjs/phantomjs-1.9.7-linux-i686.tar.bz2
Receiving...
 
[===================================-----] 88% 0.0s
Received 13201K total.
Extracting tar contents (via spawned process)
Removing /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/lib/phantom
Copying extracted folder /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/phantomjs/phantomjs-1.9.7-linux-i686.tar.bz2-extract-1422336918928/phantomjs-1.9.7-linux-i686 -> /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/lib/phantom
Removing /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/phantomjs/phantomjs-1.9.7-linux-i686.tar.bz2-extract-1422336918928
Writing location.js file
Done. Phantomjs binary available at /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/lib/phantom/bin/phantomjs

You can mention, that linux-i686 was used.

After that, when running "grunt build" command it unexpectedly stops:
root@Cubian:/home/cubie/Downloads/brackets-release-1.1# grunt build
Running "jshint:src" (jshint) task
>> 293 files lint free.


Running "jasmine:src" (jasmine) task
Testing jasmine specs via phantom


Running PhantomJS...ERROR
>> /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/lib/phantom/bin/phantomjs: 1: /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/lib/phantom/bin/phantomjs: Syntax error: word unexpected (expecting ")") 0 [ '/home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/lib/phantom/bin/phantomjs: 1: /home/cubie/Downloads/brackets-release-1.1/node_modules/phantomjs/lib/phantom/bin/phantomjs: Syntax error: word unexpected (expecting ")")' ]
Warning: PhantomJS exited unexpectedly with exit code 2. Use --force to continue.


Aborted due to warnings.

Then i've tried to build phantomjs from source, to match armv7 architecture. I launched that commands:
sudo apt-get update
sudo apt
-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev libxft-dev
git clone git
://github.com/ariya/phantomjs.git
cd phantomjs
git checkout
1.9
./build.sh

But after running "./build.sh" nothing happens.

I've checked if $MAKEFLAGS environment variable contains comething, but it seems to be empty.

So, i stuck here.

By the way, sorry if my english dissappoints, it's not my native language.

Денис Головкин

unread,
Jan 27, 2015, 5:58:57 AM1/27/15
to phan...@googlegroups.com
Now i trying to follow build process described here.

Compilation lasts about 6 hours on single core 1 Ghz machine.

I'll keep you informed.
Reply all
Reply to author
Forward
0 new messages