[R] rgl build warnings and loading error on Linux

Charles C. Berry cberry at tajo.ucsd.edu
Tue Mar 18 18:24:51 CET 2008


On Tue, 18 Mar 2008, Liviu Andronic wrote:

> On Mon, Mar 17, 2008 at 11:07 PM, Liviu Andronic <landronimirc at 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 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.
>

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



More information about the R-help mailing list