Re: [R] problem with rgl package

2009-05-05 Thread Dirk Eddelbuettel

(off list)

On 5 May 2009 at 05:15, Erin Hodgess wrote:
| I also needed libglu1-mesa-dev, but now all is well.

a) You still haven't explained why you need to rebuild it when 
   sudo apt-get install r-cran-rgl
   gets you a binary
   
b) Yes, as 
   sudo apt-get build-dep r-cran-rgl
   would have found out for you.

We do _a lot of work_ for R on Debian/Ubuntu. Use it, you even have a
money-back guarantee. And ...

c) This rgl header business has been discussed at least a hundred times on
   the R-help list. Use RSiteSearch()

Dirk

-- 
Three out of two people have difficulties with fractions.

__
R-help@r-project.org 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.


Re: [R] problem with rgl package

2009-05-05 Thread Erin Hodgess
I also needed libglu1-mesa-dev, but now all is well.

thanks for the help!
Sincerely,
Erin


On Tue, May 5, 2009 at 5:07 AM, Barry Rowlingson
 wrote:
> On Tue, May 5, 2009 at 10:55 AM, Erin Hodgess  wrote:
>> Dear R People:
>>
>> Here is something strange.  I'm using Ubuntu 9.04 with R 2.9.0.
>>
>> I need to have the rgl package.  Here are my results from installing:
>>
>>> install.packages("rgl")
>> Warning in install.packages("rgl") :
> []
>> checking for X... no
>> configure: error: X11 not found but required, configure aborted.
>> ERROR: configuration failed for package 'rgl'
>> ** Removing '/usr/local/lib/R/site-library/rgl'
>
>> So presumably there is not an X11.  But when I put in "capabilities",
>> it seems to be there.
>
>  R will have X11 capabilities if you have the X11 _binary_ library
> installed. To compile a package from source that needs to link with
> the X11 library you need the development headers. They come in another
> package.
>
>  From the command line, do:
>
>  sudo apt-get install libx11-dev
>
> and that should pull them from the Ubuntu repository. You'll need the
> root password for this.
>
>  It's possible you may need some other development headers once you
> get past the X11 problem!
>
> Barry
>



-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodg...@gmail.com

__
R-help@r-project.org 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.


Re: [R] problem with rgl package

2009-05-05 Thread G. Jay Kerns
Dear Erin,

On Tue, May 5, 2009 at 5:55 AM, Erin Hodgess  wrote:
> Dear R People:
>
> Here is something strange.  I'm using Ubuntu 9.04 with R 2.9.0.
>
> I need to have the rgl package.  Here are my results from installing:
>
>> install.packages("rgl")
> Warning in install.packages("rgl") :
>  argument 'lib' is missing: using '/usr/local/lib/R/site-library'
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rgl_0.84.tar.gz'
> Content type 'application/x-gzip' length 1670659 bytes (1.6 Mb)
> opened URL
> ==
> downloaded 1.6 Mb
>
> * Installing *source* package 'rgl' ...
> checking for gcc... gcc -std=gnu99
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc -std=gnu99 accepts -g... yes
> checking for gcc -std=gnu99 option to accept ISO C89... none needed
> checking how to run the C preprocessor... gcc -std=gnu99 -E
> checking for gcc... (cached) gcc -std=gnu99
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc -std=gnu99 accepts -g... (cached) yes
> checking for gcc -std=gnu99 option to accept ISO C89... (cached) none needed
> checking for libpng-config... yes
> configure: using libpng-config
> configure: using libpng dynamic linkage
> checking for X... no
> configure: error: X11 not found but required, configure aborted.
> ERROR: configuration failed for package 'rgl'
> ** Removing '/usr/local/lib/R/site-library/rgl'
>

I had the same problem a few days ago, and followed the
recommendations of this message:

http://tolstoy.newcastle.edu.au/R/e6/help/09/03/9250.html

which fixed it for me.

HTH,
Jay







***
G. Jay Kerns, Ph.D.
Associate Professor
Department of Mathematics & Statistics
Youngstown State University
Youngstown, OH 44555-0002 USA
Office: 1035 Cushwa Hall
Phone: (330) 941-3310 Office (voice mail)
-3302 Department
-3170 FAX
E-mail: gke...@ysu.edu
http://www.cc.ysu.edu/~gjkerns/

__
R-help@r-project.org 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.


Re: [R] problem with rgl package

2009-05-05 Thread Dirk Eddelbuettel

On 5 May 2009 at 04:55, Erin Hodgess wrote:
| Dear R People:
| 
| Here is something strange.  I'm using Ubuntu 9.04 with R 2.9.0.
| 
| I need to have the rgl package.  Here are my results from installing:

So run

   sudo apt-get install r-cran-rgl

to install the pre-build binary.  If you must or want to build it yourself,
use the packaging system to get the build-dependencies installed:

   sudo apt-get build-dep r-cran-rgl


| > install.packages("rgl")
| Warning in install.packages("rgl") :
|   argument 'lib' is missing: using '/usr/local/lib/R/site-library'
| --- Please select a CRAN mirror for use in this session ---
| Loading Tcl/Tk interface ... done
| trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rgl_0.84.tar.gz'
| Content type 'application/x-gzip' length 1670659 bytes (1.6 Mb)
| opened URL
| ==
| downloaded 1.6 Mb
| 
| * Installing *source* package 'rgl' ...
| checking for gcc... gcc -std=gnu99
| checking for C compiler default output file name... a.out
| checking whether the C compiler works... yes
| checking whether we are cross compiling... no
| checking for suffix of executables...
| checking for suffix of object files... o
| checking whether we are using the GNU C compiler... yes
| checking whether gcc -std=gnu99 accepts -g... yes
| checking for gcc -std=gnu99 option to accept ISO C89... none needed
| checking how to run the C preprocessor... gcc -std=gnu99 -E
| checking for gcc... (cached) gcc -std=gnu99
| checking whether we are using the GNU C compiler... (cached) yes
| checking whether gcc -std=gnu99 accepts -g... (cached) yes
| checking for gcc -std=gnu99 option to accept ISO C89... (cached) none needed
| checking for libpng-config... yes
| configure: using libpng-config
| configure: using libpng dynamic linkage
| checking for X... no
| configure: error: X11 not found but required, configure aborted.

You don't have X11 headers. Run the second command above if you really want
to build the package.

| ERROR: configuration failed for package 'rgl'
| ** Removing '/usr/local/lib/R/site-library/rgl'
| 
| The downloaded packages are in
|   /tmp/RtmpiJh20a/downloaded_packages
| Warning message:
| In install.packages("rgl") :
|   installation of package 'rgl' had non-zero exit status
| 
| So presumably there is not an X11.  But when I put in "capabilities",
| it seems to be there.
| 
| > capabilities()
| jpeg  png tifftcltk  X11 aqua http/ftp  sockets
| TRUE TRUE TRUE TRUE TRUEFALSE TRUE TRUE
|   libxml fifo   clediticonv  NLS  profmemcairo
| TRUE TRUE TRUE TRUE TRUE TRUE TRUE
| >

That means you are using an R binary capable of _running_ under X11. This
says nothing about compiling.

| Has anyone run into this, please?  What are the solutions, please?

As (almost) always: get the proper -dev packages for headers and libs.

Dirk

| 
| thanks,
| Erin
| 
| -- 
| Erin Hodgess
| Associate Professor
| Department of Computer and Mathematical Sciences
| University of Houston - Downtown
| mailto: erinm.hodg...@gmail.com
| 
| __
| R-help@r-project.org 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.

-- 
Three out of two people have difficulties with fractions.

__
R-help@r-project.org 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.


Re: [R] problem with rgl package

2009-05-05 Thread Barry Rowlingson
On Tue, May 5, 2009 at 10:55 AM, Erin Hodgess  wrote:
> Dear R People:
>
> Here is something strange.  I'm using Ubuntu 9.04 with R 2.9.0.
>
> I need to have the rgl package.  Here are my results from installing:
>
>> install.packages("rgl")
> Warning in install.packages("rgl") :
[]
> checking for X... no
> configure: error: X11 not found but required, configure aborted.
> ERROR: configuration failed for package 'rgl'
> ** Removing '/usr/local/lib/R/site-library/rgl'

> So presumably there is not an X11.  But when I put in "capabilities",
> it seems to be there.

 R will have X11 capabilities if you have the X11 _binary_ library
installed. To compile a package from source that needs to link with
the X11 library you need the development headers. They come in another
package.

 From the command line, do:

 sudo apt-get install libx11-dev

and that should pull them from the Ubuntu repository. You'll need the
root password for this.

 It's possible you may need some other development headers once you
get past the X11 problem!

Barry

__
R-help@r-project.org 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.


Re: [R] problem with rgl package

2009-05-05 Thread Duncan Murdoch

On 05/05/2009 5:55 AM, Erin Hodgess wrote:

Dear R People:

Here is something strange.  I'm using Ubuntu 9.04 with R 2.9.0.

I need to have the rgl package.  Here are my results from installing:


install.packages("rgl")

Warning in install.packages("rgl") :
  argument 'lib' is missing: using '/usr/local/lib/R/site-library'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rgl_0.84.tar.gz'
Content type 'application/x-gzip' length 1670659 bytes (1.6 Mb)
opened URL
==
downloaded 1.6 Mb

* Installing *source* package 'rgl' ...
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for gcc... (cached) gcc -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -std=gnu99 accepts -g... (cached) yes
checking for gcc -std=gnu99 option to accept ISO C89... (cached) none needed
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package 'rgl'
** Removing '/usr/local/lib/R/site-library/rgl'

The downloaded packages are in
/tmp/RtmpiJh20a/downloaded_packages
Warning message:
In install.packages("rgl") :
  installation of package 'rgl' had non-zero exit status

So presumably there is not an X11.  But when I put in "capabilities",
it seems to be there.


capabilities()

jpeg  png tifftcltk  X11 aqua http/ftp  sockets
TRUE TRUE TRUE TRUE TRUEFALSE TRUE TRUE
  libxml fifo   clediticonv  NLS  profmemcairo
TRUE TRUE TRUE TRUE TRUE TRUE TRUE

Has anyone run into this, please?  What are the solutions, please?


Sounds as though you don't have the development libraries for X11, or 
perhaps the rgl configure script isn't finding them.  Do you have 
libx11-dev installed?


Duncan Murdoch

__
R-help@r-project.org 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.


[R] problem with rgl package

2009-05-05 Thread Erin Hodgess
Dear R People:

Here is something strange.  I'm using Ubuntu 9.04 with R 2.9.0.

I need to have the rgl package.  Here are my results from installing:

> install.packages("rgl")
Warning in install.packages("rgl") :
  argument 'lib' is missing: using '/usr/local/lib/R/site-library'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rgl_0.84.tar.gz'
Content type 'application/x-gzip' length 1670659 bytes (1.6 Mb)
opened URL
==
downloaded 1.6 Mb

* Installing *source* package 'rgl' ...
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for gcc... (cached) gcc -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -std=gnu99 accepts -g... (cached) yes
checking for gcc -std=gnu99 option to accept ISO C89... (cached) none needed
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package 'rgl'
** Removing '/usr/local/lib/R/site-library/rgl'

The downloaded packages are in
/tmp/RtmpiJh20a/downloaded_packages
Warning message:
In install.packages("rgl") :
  installation of package 'rgl' had non-zero exit status

So presumably there is not an X11.  But when I put in "capabilities",
it seems to be there.

> capabilities()
jpeg  png tifftcltk  X11 aqua http/ftp  sockets
TRUE TRUE TRUE TRUE TRUEFALSE TRUE TRUE
  libxml fifo   clediticonv  NLS  profmemcairo
TRUE TRUE TRUE TRUE TRUE TRUE TRUE
>

Has anyone run into this, please?  What are the solutions, please?

thanks,
Erin

-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodg...@gmail.com

__
R-help@r-project.org 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.