Re: [R] rgl build warnings and loading error on Linux

From: Charles C. Berry <cberry_at_tajo.ucsd.edu>
Date: Tue, 18 Mar 2008 10:24:51 -0700

On Tue, 18 Mar 2008, Liviu Andronic wrote:

> On Mon, Mar 17, 2008 at 11:07 PM, Liviu Andronic <landronimirc@gmail.com> wrote:
>> This is what I have on my system:
>> localhost liviu # locate libGL.so
>> /usr/lib/opengl/xorg-x11/lib/libGL.so.1
>> /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
>> /usr/lib/opengl/xorg-x11/lib/libGL.so
>> /usr/lib/libGL.so
>>
>> However, the funny thing is that "/usr/lib/libGL.so" belongs to no
>> package, while the other libGL.so belongs to media-libs/mesa.
>
> I moved "/usr/lib/libGL.so" to "/usr/lib/libGL.so.bak" (it seemed like
> a broken soft link) and recreated a "/usr/lib/libGL.so" that linked to
> "/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2".
> liviu_at_localhost ~ $ ls -l /usr/lib/libGL.so
> lrwxrwxrwx 1 root root 32 2008-03-18 12:16 /usr/lib/libGL.so ->
> opengl/xorg-x11/lib/libGL.so.1.2
>
> However, the problem was not solved. A rebuilt rgl generates the same
> error on library load:
>> dyn.load("/usr/lib/R/library/rgl/libs/rgl.so")
> Error in dyn.load("/usr/lib/R/library/rgl/libs/rgl.so") :
> unable to load shared library '/usr/lib/R/library/rgl/libs/rgl.so':
> /usr/lib/R/library/rgl/libs/rgl.so: undefined symbol: glTexCoordPointer
>
> Is there anything else that I could try?

Below substitute 'nvidia-drivers' or whatever you use for <your-video-drivers>

 	emerge -D mesa <your-video-drivers>
 	revdep-rebuild -X
 	R
 	install.packages("rgl")

>
> ______________________________________________
> 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.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry_at_tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901

R-help_at_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. Received on Tue 18 Mar 2008 - 17:29:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Apr 2008 - 15:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive