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

cannot connect to X server #11122

Closed
joshkurz opened this issue Mar 8, 2013 · 8 comments
Closed

cannot connect to X server #11122

joshkurz opened this issue Mar 8, 2013 · 8 comments

Comments

@joshkurz
Copy link

joshkurz commented Mar 8, 2013

jkurz25@gmail.com commented:

Which version of PhantomJS are you using? Tip: run 'phantomjs --version'.
Installed from the Head.

I know that you guys have seen this before.

What steps will reproduce the problem?
1.clone the repo
2.run the .sh file
3.run phantomjs --version or any other command

What is the expected output? What do you see instead?
to get the version number
Which operating system are you using?
Ubuntu 12.04 LTS
Did you use binary PhantomJS or did you compile it from source?
I did both. First binary, then source
Please provide any additional information below.
While installing, everything seems to go fine until a competitive warning appears that shows "will become a keyword in" for the last ten minutes of installation. They are just warnings, so the installation finishes successfully.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #1122.
🌟   1 people had starred this issue at the time of migration.

@ariya
Copy link
Owner

ariya commented Mar 17, 2013

You definitely still have other older binary of PhantomJS in the system.

PhantomJS got rid of X requirement a year ago.

@ariya ariya closed this as completed Mar 17, 2013
@joshkurz
Copy link
Author

Not sure how that could be possible if I just installed phantomjs only 2 weeks ago, unless Ubuntu comes stock with an old version of it. Which I doubt.

But we will see. Thanks

Sent from my iPhone

On Mar 17, 2013, at 1:45 PM, Ariya Hidayat notifications@github.com wrote:

You definitely still have other older binary of PhantomJS in the system.

PhantomJS got rid of X requirement a year ago.


Reply to this email directly or view it on GitHub.

@razorblade446
Copy link

In fact it is the problem, i installed the distro version (Ubuntu 12.04.2 LTS) and complains about XWINDOW

@joshkurz
Copy link
Author

so did you upgrade/downgrade ubuntu to solve?

On Tue, Apr 16, 2013 at 1:37 PM, Frederic Yesid Peña Sánchez <
notifications@github.com> wrote:

In fact it is the problem, i installed the distro version (Ubuntu 12.04.2
LTS) and complains about XWINDOW


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

Josh Kurz
www.atlantacarlocksmith.com http://www.atlantacarlocksmith.com

@razorblade446
Copy link

I had to compile it from source, distro package not working, that was my solution.

@nikita-prikazchikov
Copy link

Confirm thaay issue present in Ubuntu 12.04.2 LTS
The funny thing is that if you try to execute
phantomjs --version
it shows you 1.7.0 but in fact 1.4.1 is installed. You could check it using
sudo apt-cache show phantomjs
or
sudo apt-cache policy phantomjs

It shows you real version.
There are 2 solutions for this, download and install it from official site or add another repo and update it using
sudo apt-get install phantomjs

@spark-jaspersoft
Copy link

Hi everyone,

I built PhantomJS 1.9 from source on Solaris 10 SPARC and I'm getting this error. I'm getting the error regardless of what I do. If I run phantomjs --version, it says it cannot connect to the X server. I'm thinking there's a problem with my binary. I don't have any other phantomjs binaries anywhere on the system. Any suggestions? How can I tell if my binary is valid?

@spark-jaspersoft
Copy link

Never mind. I commented out the -qpa parameter in my preconfig.sh file and I forgot to uncomment it after my sysadmin installed it.

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

5 participants