Hi -
I recently built R 2.1.1 on a machine running 10.3.9. After
configuring (based on the suggested line in the R on Mac FAQ I get the
following summary
Source directory: .
Installation directory: /Library/Frameworks
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
Fortran compiler: g77 -g -O2
Interfaces supported: X11, aqua
External libraries: readline, BLAS(generic)
Additional capabilities: PNG, JPEG, iconv, MBCS, NLS
Options enabled: framework, R profiling
Recommended packages: yes
Which seems to indicate that I am going to get PNG and JPEG
capabilities. But after making and installing, when I run capabilities
I get this result:
amundsen$ echo "capabilities()" | R --slave
jpeg png tcltk X11 http/ftp sockets libxml fifo
FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE
cledit IEEE754 iconv
FALSE TRUE TRUE
It seems that I don't have PNG and jpeg capabilities. I have libpng
1.2.8 and jpeg 6b installed in /usr/local/lib and what appear to the
proper headers in /usr/local/include. Is there some step I'm missing
in the build process?
TIA for any wisdom anyone can provide
- Craig
Building R with png and jpeg support
7 messages · Craig Amundsen, stefano iacus, Seth Falcon +2 more
both dll rely on X11, so to enable capabilities you need to first run the X11 window server on your mac and the launch R. stefano
On 29/set/05, at 04:27, Craig Amundsen wrote:
Hi -
I recently built R 2.1.1 on a machine running 10.3.9. After
configuring (based on the suggested line in the R on Mac FAQ I get the
following summary
Source directory: .
Installation directory: /Library/Frameworks
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
Fortran compiler: g77 -g -O2
Interfaces supported: X11, aqua
External libraries: readline, BLAS(generic)
Additional capabilities: PNG, JPEG, iconv, MBCS, NLS
Options enabled: framework, R profiling
Recommended packages: yes
Which seems to indicate that I am going to get PNG and JPEG
capabilities. But after making and installing, when I run capabilities
I get this result:
amundsen$ echo "capabilities()" | R --slave
jpeg png tcltk X11 http/ftp sockets libxml
fifo
FALSE FALSE FALSE TRUE TRUE TRUE TRUE
TRUE
cledit IEEE754 iconv
FALSE TRUE TRUE
It seems that I don't have PNG and jpeg capabilities. I have libpng
1.2.8 and jpeg 6b installed in /usr/local/lib and what appear to the
proper headers in /usr/local/include. Is there some step I'm missing
in the build process?
TIA for any wisdom anyone can provide
- Craig
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Hi -
On 9/29/05, stefano iacus <stefano.iacus at unimi.it> wrote:
both dll rely on X11, so to enable capabilities you need to first run the X11 window server on your mac and the launch R. stefano
Thanks for the reply.
I tried it. If I run an xterm and from its prompt execute
"capabilities()" | R --slave
jpeg and png are true. If I leave X running and then try it from a
terminal.app window they are false. Is there any way to get them to be
true without executing from inside an xterm? I ask because my overall
plan is to run R from Python via the rpy module where it's all
happening in a CGI. In that situation running from inside an xterm
isn't possible.
- Craig
On 29 Sep 2005, cdamundsen at gmail.com wrote:
I tried it. If I run an xterm and from its prompt execute "capabilities()" | R --slave jpeg and png are true. If I leave X running and then try it from a terminal.app window they are false. Is there any way to get them to be true without executing from inside an xterm? I ask because my overall plan is to run R from Python via the rpy module where it's all happening in a CGI. In that situation running from inside an xterm isn't possible.
Compare the environment you have in terminal.app with what you have in an X11 xterm. You can use the env command, for example. There may be other pieces, but I think you need /usr/X11R6/bin in your PATH. + seth
Hi -
Compare the environment you have in terminal.app with what you have in an X11 xterm. You can use the env command, for example. There may be other pieces, but I think you need /usr/X11R6/bin in your PATH.
Thanks for the idea. The terminal.app environment does lack /usr/X11R6/bin in its path. I tried adding it, but doing so had no effect on the status of jpeg and png for R. - Craig
On Sep 29, 2005, at 4:16 PM, Craig Amundsen wrote:
Compare the environment you have in terminal.app with what you have in an X11 xterm. You can use the env command, for example. There may be other pieces, but I think you need /usr/X11R6/bin in your PATH.
Thanks for the idea. The terminal.app environment does lack /usr/X11R6/bin in its path. I tried adding it, but doing so had no effect on the status of jpeg and png for R.
That wasn't the point - it's highly likely that your DISPLAY is not set - start your X11 and try Sys.putenv(DISPLAY=":0.0") before running capabilities() FWIW, since you are building a cgi app, you may consider the GDD package which allows you to create png, jpeg, gif etc. plots without the need of X11. Cheers, Simon
On Thu, 29 Sep 2005, Craig Amundsen wrote:
The terminal.app environment does lack /usr/X11R6/bin in its path. I tried adding it, but doing so had no effect on the status of jpeg and png for R.
How about DISPLAY? -thomas