View previous topic :: View next topic |
Author |
Message |
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Sat Jun 30, 2012 4:49 am Post subject: PhantomJS installed, does not run |
|
|
I have www-client/phantomjs-1.4.1 USE="-examples -python" installed
running phantomjs shows the usage and options like it's supposed to, however if i pass in the script.js file as an argument, i get no response, it just exits immediately.
all i'm asking for is, if anyone can at least point me in the right direction of how to debug what is going on, and why it's not reading in the script.
for example, a simple hello.js consisting of these 2 lines
Code: | console.log('Hello, world!');
phantom.exit(); |
when run from my local osx box
Code: | $ phantomjs hello.js
Hello, world! |
and when i run it from my gentoo server.
Code: | $ phantomjs hello.js
$ |
are there any ways to inspect what happens when the binary is executed, and if there are any errors that are just being hidden somewhere? _________________ help the needy |
|
Back to top |
|
|
SomniOne n00b
Joined: 26 Mar 2005 Posts: 19
|
Posted: Thu Jul 05, 2012 9:29 am Post subject: |
|
|
I had the same issue, created new ebuilds for newer versions, here is my overlay where you can find them:
https://github.com/castiel/gentoo-overlay
Unfortunately now I get:
Code: | phantomjs hello.js
2012-07-02T23:51:27 [FATAL] Failed to load platform plugin "". Available platforms are:
zsh: abort phantomjs hello.js
|
stracing it reveals this:
Code: | stat64("/usr/lib/qt4/plugins/platforms/.", 0xbf850268) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/platforms/.", 0xbf850268) = -1 ENOENT (No such file or directory)
|
I tried compiling with qpa flag as noted here: https://github.com/travisghansen/highcharts-svg (as I want something similar to that code)
But unfortunately it won't work.
when qt is normally compiled I can use Xvfb, but I don't want to run that on my server if I don't need it and clearly phantomjs offers that.
Have you had any success with this? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|