Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

line 1: syntax error: unexpected word (expecting ")") #14029

Closed
alienx2 opened this issue Feb 21, 2016 · 5 comments
Closed

line 1: syntax error: unexpected word (expecting ")") #14029

alienx2 opened this issue Feb 21, 2016 · 5 comments

Comments

@alienx2
Copy link

alienx2 commented Feb 21, 2016

After extracted from phantomjs-2.1.1-linux-i686.tar.bz2, then tried type "phantomjs --help" then got error like this: /opt/bin/phantomjs: line 1: syntax error: unexpected word (expecting ")")

@ariya
Copy link
Owner

ariya commented Feb 21, 2016

Are you sure /opt/bin/phantomjs is coming from your extracted tarball?

In addition, what's your machine configuration? Please provide the output of:

uname -a
cat /proc/meminfo | head -n3
lscpu

@alienx2
Copy link
Author

alienx2 commented Feb 21, 2016

2.6.22.19 #1 Thu Dec 24 13:56:06 EST 2015 mips GNU/Linux
MemTotal: 239532 kB
MemFree: 70996 kB
Buffers: 4244 kB

lscpu doesnt exist...but its Router Asuswrt Merlin.

@ariya
Copy link
Owner

ariya commented Feb 21, 2016

Just to confirm: this is MIPS? If that is the case, the binary you downloaded won't work (it is designed for 64-bit x86). Due to lack of manpower, PhantomJS doesn't support MIPS (and probably won't support it for the foreseeable future).

@alienx2
Copy link
Author

alienx2 commented Feb 21, 2016

correct is MIPS cpu architect. aww i see.. i was looking for execute php code with redirect. that's why i found this phantomJS like i dont need browser =/

@ariya
Copy link
Owner

ariya commented Feb 21, 2016

Closing this as Not supported. Perhaps in the future there will be a MIPS version of PhantomJS.

@ariya ariya closed this as completed Feb 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants