Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

PhantomJS not executable on Mac OS X in v1.9.1-1 #73

Closed
jamesshore opened this issue Jul 5, 2013 · 5 comments
Closed

PhantomJS not executable on Mac OS X in v1.9.1-1 #73

jamesshore opened this issue Jul 5, 2013 · 5 comments

Comments

@jamesshore
Copy link

The "executable" flag is not set in PhantomJS 1.9.1-1 on Mac OS X. This bug causes PhantomJS to fail with an "EACCES" error when run. Node v0.10.6, npm version 1.2.18. Not tried on any other OS.

It does work properly in 1.9.1-0.

Steps to reproduce:

  1. Create empty directory and cd into it.
  2. npm install phantomjs@1.9.1-1
  3. ls -l node_modules/phantomjs/lib/phantom/bin/phantomjs

Expected behavior: Permissions field containing execute flag: -rwxr-xr-x

Actual behavior: Permissions field does not contain execute flag: -rw-r--r--

Output when running phantomjs:

$ node_modules/.bin/phantomjs

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn EACCES
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)
@marcos-abreu
Copy link

I'm having the same error...

Trying to implement jasmine unit tests running on phantomjs through grunt, this is what I get:

$ node_modules/grunt-contrib-jasmine/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/bin/phantomjs

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn EACCES
    at errnoException (child_process.js:945:11)
    at Process.ChildProcess._handle.onexit (child_process.js:736:34)

I'm using phantom version 1.9.1-1 on Mac OSX

The following is the output of running my test task using grunt:

$ grunt test
Running "jasmine:web" (jasmine) task
Testing jasmine specs via phantom
Fatal error: spawn EACCES

@louisrli
Copy link

louisrli commented Jul 7, 2013

I can't run either, but I have a different error.

After a long delay (some type of looping?) on Mountain Lion 10.8.3, installed through npm, I get the error below on running anything (including misc commands like phantomjs --version). This is happening right after the install, and I suspect it might be a permissions error. Let me know if there's any other information I can provide.

child_process.js:794
    throw errnoException(errno, 'spawn');
          ^
Error: spawn Unknown system errno 23
    at errnoException (child_process.js:847:11)
    at ChildProcess.spawn (child_process.js:794:11)
    at exports.spawn (child_process.js:618:9)
    at Object.<anonymous> (/usr/local/Cellar/node/0.8.16/lib/node_modules/phantomjs/bin/phantomjs:12:10)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

@dpup
Copy link
Contributor

dpup commented Jul 7, 2013

I reverted 1.9.1-1 it had some changes to use a globally installed phantom
and it looks like it didn't work properly

-- Dan

On Sat, Jul 6, 2013 at 7:20 PM, Louis Li notifications@github.com wrote:

I can't run either, but I have a different error.

After a long delay (some type of looping?) on Mountain Lion 10.8.3,
installed through npm, I get the error below on running anything
(including misc commands like phantomjs --version). This is happening
right after the install, and I suspect it might be a permissions error. Let
me know if there's any other information I can provide.

child_process.js:794
throw errnoException(errno, 'spawn');
^
Error: spawn Unknown system errno 23
at errnoException (child_process.js:847:11)
at ChildProcess.spawn (child_process.js:794:11)
at exports.spawn (child_process.js:618:9)
at Object. (/usr/local/Cellar/node/0.8.16/lib/node_modules/phantomjs/bin/phantomjs:12:10)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)


Reply to this email directly or view it on GitHubhttps://github.com//issues/73#issuecomment-20564506
.

@inf0rmer
Copy link

inf0rmer commented Jul 9, 2013

This is a duplicate of #71, the solution right now is to revert to 1.9.1.0.

@alexellis
Copy link

I have the same error on Mavericks.. I can only run phantoms with sudo, is there a solution yet? How do I roll back? Do I need to do a chmod 775?

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

6 participants