From mbeason at harrahs.com  Mon Mar 20 18:52:53 2006
From: mbeason at harrahs.com (Matthew Beason)
Date: Mon, 20 Mar 2006 09:52:53 -0800
Subject: [Rd] R make install and demo(graphics) issue
Message-ID: <E153C65077E0034E97A981C6CE26F1BD04534403@ENTWMAIL1A.harrahs.org>

Simon,

    Thanks! That resolved the "make install" issue. However, after
installation when running "demo(graphics)" or "png()" from within R, I
get the following error:

  > demo(graphics)


        demo(graphics)
        ---- ~~~~~~~~

Type  <Return>   to start :

> require(graphics)
[1] TRUE

> require(datasets)
[1] TRUE

> if (dev.cur() <= 1) get(getOption("device"))()
Error in get(getOption("device"))() : X11 module cannot be loaded
In addition: Warning message:
unable to load shared library '/usr/local/R/lib/R/modules/R_X11.so':
  Could not load module /usr/local/R/lib/R/modules/R_X11.so.
        Dependent module /usr/java14/jre/bin/libjpeg.a(libjpeg.so.62)
could not be loaded.
        File /usr/java14/jre/bin/libjpeg.a is not an
          archive or the file could not be read properly.
System error: Exec format error
System error: Exec format error
Could not load module /usr/java14/jre/bin/libjpeg.a.
        Dependent module /usr/java14/jre/bin/libjpeg.a could not be
loaded.

> png()
Error in png() : X11 module cannot be loaded
In addition: Warning message:
unable to load shared library '/usr/local/R/lib/R/modules/R_X11.so':
  Could not load module /usr/local/R/lib/R/modules/R_X11.so.
        Dependent module /usr/java14/jre/bin/libjpeg.a(libjpeg.so.62)
could not be loaded.
        File /usr/java14/jre/bin/libjpeg.a is not an
          archive or the file could not be read properly.
System error: Exec format error
System error: Exec format error
Could not load module /usr/java14/jre/bin/libjpeg.a.
        Dependent module /usr/java14/jre/bin/libjpeg.a could not be
loaded.

I've checked and "/usr/java14/jre/bin/libjpeg.a" does exist.
ls -l /usr/java14/jre/bin/libjpeg.a
-r--r--r--   1 bin      bin          289503 Jan 19 2005
/usr/java14/jre/bin/libjpeg.a
file /usr/java14/jre/bin/libjpeg.a
/usr/java14/jre/bin/libjpeg.a: executable (RISC System/6000) or object
module not stripped

Any thoughts or suggestions would be greatly appreciated!

Matthew Beason

-----Original Message-----
From: Simon Urbanek [mailto:simon.urbanek at r-project.org] 
Sent: Friday, March 17, 2006 4:52 PM
To: Matthew Beason
Cc: r-devel at r-project.org
Subject: Re: [Rd] R make install and demo(graphics) issue


On 17.3.2006, at 19:08, Matthew Beason wrote:

> I've successfully gotten R 2.2.1 to compile on AIX 5.2.
>
> However, when I run "make install", I receive the following message:
>
> /appl/perform/workspace/R-2.2.1
> [root at diablo][/appl/perform/workspace/R-2.2.1] make install
> /appl/perform/workspace/R-2.2.1/m4
> Target "install" is up to date.
> /appl/perform/workspace/R-2.2.1/tools
> Target "install" is up to date.
> /appl/perform/workspace/R-2.2.1/doc
> installing doc ...
> ../tools/install-sh: no destination specified.
> make: The error code from the last command is 1.
>

Chances are that this is related to an issue with some shells mentioned
here before - you can either use R-2.2.1 patched from SVN where it is
fixed, or alternatively edit configure at line 1913:
if test -z ${rdocdir}; then
into
if test -z "${rdocdir}"; then
and make the same modification to the subsequent two if statements as
well.

Cheers,
Simon



[Rd] R make install and demo(graphics) issue
Matthew Beason