linux - Phantomjs - No such file or directory (what have I missed) -


may ask little setting phantomjs on shared hosting server, please?

let me run through have done , ask question.

steps taken...

used ‘putty’ check architecture of server, …

uname –m        // x86_64 cat /etc/issue  // debian gnu/linux 6.0 \n \l 

i downloaded 64bit version of ‘phantomjs-1.9.8-linux-x86_64.tar.bz2’ page https://bitbucket.org/ariya/phantomjs/downloads

placed file in folder on server , ran next command in putty …

tar -jxvf phantomjs-1.9.8-linux-x86_64.tar.bz2 

the files extracted , created directory structure, seemingly without errors. changed that directory , ran ls. phantomjs file file listed.

i inspected file putty …

file phantomjs  

which returned

elf 64-bit lsb executable, x86-64, version 1 (sysv), dynamically linked (uses shared libs), gnu/linux 2.6.9, stripped 

entering

echo "$pwd/phantomjs" 

gives me

/homepages/24/somenumber/htdocs/cabs/mysite/phantom/bin/phantomjs 

next tried

/homepages/24/somenumber/htdocs/cabs/mysite/phantom/bin/phantomjs -–version 

the result of 'no such file or directory' error ...

-bash: /homepages/24/somenumber/htdocs/cabs/mysite/phantom/bin/: no such file or directory 

however, if enter

/homepages/24/somenumber/htdocs/cabs/mysite/phantom/bin/ 

then

/homepages/24/somenumber/htdocs/cabs/mysite/phantom/bin/: directory 

may linux novice ask pointers on have gone wrong. readme file mentions being , running in 5 minutes. so, have dreadful feeling have missed rather basic.

thank you.

edit

permissions in phantom directory

-rwxrwxrwx 1 u387xx ftpusers 38346752 oct 24  2014 phantomjs 

permissions in

/homepages/24/somenumber/htdocs/cabs/mysite directory (specifically phantom folder)  drwxr-xr-x  7 u387xx ftpusers   4096 jul 13 11:35 phantom 

edit

in putty, whilst in phantom/bin directory, if run ~/phantomjs

**/ahigherupfolder**/homepages/24/somenumber/htdocs/phantomjs: no such file or directory 

interesting there directory further path now. however, trying ...

/ahigherupfolder/homepages/24/somenumber/htdocs/cabs/mysite/phantom/bin/phantomjs --version 

still leads me 'no such file ...' message.

i had exact problem in reverse. accidentally downloaded 32 bit build 64 bit box. underlying issue discussed here:

https://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit

basically, it's bad error message binary that's missing essential libraries.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -