X11 is not availble

X11 is not availble

Hi there,

after several problems with installing R on a Debian server It now
finally works at least roughly. With roughly I mean that the 'core'
function do work properly, but I'm still having problems with the
image export. When I try to call

I just get the error message "X11 is not available". But I don't know
what packages (or symlinks???) could still be missing.
I've installed R using the latest 2.8.0 version from the server which
I could compile (after solving quite some different problems) normally.

Re: X11 is not availble

Hi Fredrik,

well I'm connecting via SSH onto the machine. Lateron the R scripts
shall be executed via some Ruby scripts. The pdf export is working
properly, but I think it would be very ugly to first create a pdf file
and then convert it to my needed png (or any other pure image format).
Is there no way to manually connect to X11 even in my use case?

Dennis

Am 18.12.2008 um 12:30 schrieb Fredrik Karlsson:

> Hi Dennis,
>
> Are you working from a remote client, i.e. not logged into the machine
> locally (in X)? If so, the png and jpg devices seem to need to be able
> to connect to X.
>
> http://tolstoy.newcastle.edu.au/R/e2/help/06/10/3553.html>
> Try using the pdf device instead.
>
> /Fredrik
>
> On Thu, Dec 18, 2008 at 10:47 AM, Dennis Schmidt
> <[hidden email]> wrote:
>> Hi there,
>>
>> after several problems with installing R on a Debian server It now
>> finally
>> works at least roughly. With roughly I mean that the 'core'
>> function do work
>> properly, but I'm still having problems with the image export. When
>> I try to
>> call
>>
>> png(filename="my_file.png", width=800, height=300, pointsize=12, bg =
>> "white")
>>
>> I just get the error message "X11 is not available". But I don't
>> know what
>> packages (or symlinks???) could still be missing.
>> I've installed R using the latest 2.8.0 version from the server
>> which I
>> could compile (after solving quite some different problems) normally.
>>
>> I hope anyone can help me out, best wishes,
>>
>> Dennis Schmidt
>>
>> ______________________________________________
>> [hidden email] mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>
> --
> "Life is like a trumpet - if you don't put anything into it, you don't
> get anything out of it."

Re: X11 is not availble

No, haven't seen this so far. But it quite looks like what I'm looking
for, so thanks a lot :-)

Dennis

Am 18.12.2008 um 13:09 schrieb Fredrik Karlsson:

> Hi again,
>
> Sorry for bothering you, but have you seen this?
>
> http://www.stats.bris.ac.uk/R/web/packages/GDD/index.html> or this one
> http://www.omegahat.org/CGIwithR/>
> Maybe something for you?
>
> /Fredrik
>
> On Thu, Dec 18, 2008 at 11:49 AM, Fredrik Karlsson
> <[hidden email]> wrote:
>> Hi Dennis,
>>
>> Possibly, but I am not sure. X11 is, as you know, not a library,
>> but a
>> server. As such, it has built-in security.
>> It is possible that you can make an X-server of a server machine to
>> accept connections from a script run by a webserver (and thus not
>> by a
>> user who gained access and has all the PAM credentials due to a user
>> log-in), but for me it seems like way too much hard work to get it
>> going (and it would also probably create an issue with security on
>> the
>> way, I don't know.)
>>
>> Anyway, I would go for an intermediate temp-file solution. Maybe EPS
>> -> png conversion could work, and give good results (if PDF -> PNG
>> conversion does not)?
>>
>> Good luck!
>>
>> /Fredrik
>>
>> On Thu, Dec 18, 2008 at 11:38 AM, Dennis Schmidt
>> <[hidden email]> wrote:
>>> Hi Fredrik,
>>>
>>> well I'm connecting via SSH onto the machine. Lateron the R
>>> scripts shall be
>>> executed via some Ruby scripts. The pdf export is working
>>> properly, but I
>>> think it would be very ugly to first create a pdf file and then
>>> convert it
>>> to my needed png (or any other pure image format). Is there no way
>>> to
>>> manually connect to X11 even in my use case?
>>>
>>> Dennis
>>>
>>>
>>>
>>> Am 18.12.2008 um 12:30 schrieb Fredrik Karlsson:
>>>
>>>> Hi Dennis,
>>>>
>>>> Are you working from a remote client, i.e. not logged into the
>>>> machine
>>>> locally (in X)? If so, the png and jpg devices seem to need to be
>>>> able
>>>> to connect to X.
>>>>
>>>> http://tolstoy.newcastle.edu.au/R/e2/help/06/10/3553.html>>>>
>>>> Try using the pdf device instead.
>>>>
>>>> /Fredrik
>>>>
>>>> On Thu, Dec 18, 2008 at 10:47 AM, Dennis Schmidt
>>>> <[hidden email]> wrote:
>>>>>
>>>>> Hi there,
>>>>>
>>>>> after several problems with installing R on a Debian server It now
>>>>> finally
>>>>> works at least roughly. With roughly I mean that the 'core'
>>>>> function do
>>>>> work
>>>>> properly, but I'm still having problems with the image export.
>>>>> When I try
>>>>> to
>>>>> call
>>>>>
>>>>> png(filename="my_file.png", width=800, height=300, pointsize=12,
>>>>> bg =
>>>>> "white")
>>>>>
>>>>> I just get the error message "X11 is not available". But I don't
>>>>> know
>>>>> what
>>>>> packages (or symlinks???) could still be missing.
>>>>> I've installed R using the latest 2.8.0 version from the server
>>>>> which I
>>>>> could compile (after solving quite some different problems)
>>>>> normally.
>>>>>
>>>>> I hope anyone can help me out, best wishes,
>>>>>
>>>>> Dennis Schmidt
>>>>>
>>>>> ______________________________________________
>>>>> [hidden email] mailing list
>>>>> https://stat.ethz.ch/mailman/listinfo/r-help>>>>> PLEASE do read the posting guide
>>>>> http://www.R-project.org/posting-guide.html>>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> "Life is like a trumpet - if you don't put anything into it, you
>>>> don't
>>>> get anything out of it."
>>>
>>> ______________________________________________
>>> [hidden email] mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>>
>>
>> --
>> "Life is like a trumpet - if you don't put anything into it, you
>> don't
>> get anything out of it."
>>
>
>
>
> --
> "Life is like a trumpet - if you don't put anything into it, you don't
> get anything out of it."

- I've got png capability - have you? If not, you need to recompile
and find out why. When you run configure it should tell you what
capabilities it has figured out for itself. To get png support you'll
need the png-devel library and header files.