2016-02-19 207 views
1

我在安裝包'rgl'時遇到問題。R包「rgl」無法安裝

我也很好奇打印的g ++ DNDEBUG消息(每次安裝新軟件包時都會出現這些消息)。

這裏是打印輸出,當我嘗試install.packages( 「RGL」):

* installing *source* package ‘rgl’ ... 
** package ‘rgl’ successfully unpacked and MD5 sums checked 
checking for gcc... gcc -std=gnu99 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.out 
checking for suffix of executables... 
checking whether we are cross compiling... no 
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 whether __attribute__((visibility())) is supported... yes 
checking whether gcc -std=gnu99 accepts -fvisibility... yes 
checking whether accepts -fvisibility... no 
checking for libpng-config... yes 
configure: using libpng-config 
configure: using libpng dynamic linkage 
checking for X... libraries , headers 
checking GL/gl.h usability... yes 
checking GL/gl.h presence... yes 
checking for GL/gl.h... yes 
checking GL/glu.h usability... yes 
checking GL/glu.h presence... yes 
checking for GL/glu.h... yes 
checking for glEnd in -lGL... yes 
checking for gluProject in -lGLU... yes 
checking for freetype-config... yes 
configure: using Freetype and FTGL 
configure: creating ./config.status 
config.status: creating src/Makevars 
** libs 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ABCLineSet.cpp -o ABCLineSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c BBoxDeco.cpp -o BBoxDeco.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Background.cpp -o Background.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ClipPlane.cpp -o ClipPlane.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Color.cpp -o Color.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Disposable.cpp -o Disposable.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Light.cpp -o Light.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c LineSet.cpp -o LineSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c LineStripSet.cpp -o LineStripSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Material.cpp -o Material.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c NULLgui.cpp -o NULLgui.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c PlaneSet.cpp -o PlaneSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c PointSet.cpp -o PointSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c PrimitiveSet.cpp -o PrimitiveSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c RenderContext.cpp -o RenderContext.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Shape.cpp -o Shape.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c SphereMesh.cpp -o SphereMesh.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c SphereSet.cpp -o SphereSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c SpriteSet.cpp -o SpriteSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c String.cpp -o String.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Surface.cpp -o Surface.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c TextSet.cpp -o TextSet.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Texture.cpp -o Texture.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Viewpoint.cpp -o Viewpoint.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c api.cpp -o api.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c assert.cpp -o assert.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c callbacks.cpp -o callbacks.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c device.cpp -o device.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c devicemanager.cpp -o devicemanager.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c fps.cpp -o fps.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ftgl.cpp -o ftgl.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c geom.cpp -o geom.o 
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c gl2ps.c -o gl2ps.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c glErrors.cpp -o glErrors.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c glgui.cpp -o glgui.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c gui.cpp -o gui.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c init.cpp -o init.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c par3d.cpp -o par3d.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c pixmap.cpp -o pixmap.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c platform.cpp -o platform.o 
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c pretty.c -o pretty.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c render.cpp -o render.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c rglmath.cpp -o rglmath.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c rglview.cpp -o rglview.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c scene.cpp -o scene.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c select.cpp -o select.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c subscene.cpp -o subscene.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c win32gui.cpp -o win32gui.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c win32lib.cpp -o win32lib.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c x11gui.cpp -o x11gui.o 
g++ -I/usr/share/R/include -DNDEBUG -DHAVE_PNG_H -I/home/alex/anaconda2/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/home/alex/anaconda2/include/freetype2 -Iext -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -fvisibility=hidden -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c x11lib.cpp -o x11lib.o 
g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o rgl.so ABCLineSet.o BBoxDeco.o Background.o ClipPlane.o Color.o Disposable.o Light.o LineSet.o LineStripSet.o Material.o NULLgui.o PlaneSet.o PointSet.o PrimitiveSet.o RenderContext.o Shape.o SphereMesh.o SphereSet.o SpriteSet.o String.o Surface.o TextSet.o Texture.o Viewpoint.o api.o assert.o callbacks.o device.o devicemanager.o fps.o ftgl.o geom.o gl2ps.o glErrors.o glgui.o gui.o init.o par3d.o pixmap.o platform.o pretty.o render.o rglmath.o rglview.o scene.o select.o subscene.o win32gui.o win32lib.o x11gui.o x11lib.o -lGLU -lGL -L/home/alex/anaconda2/lib -lpng16 -lX11 -L/home/alex/anaconda2/lib -lfreetype -L/usr/lib/R/lib -lR 
installing to /usr/local/lib/R/site-library/rgl/libs 
** R 
** demo 
** inst 
** preparing package for lazy loading 
** help 
*** installing help indices 
** building package indices 
** installing vignettes 
** testing if installed package can be loaded 
Error : .onLoad failed in loadNamespace() for 'rgl', details: 
    call: dyn.load(file, DLLpath = DLLpath, ...) 
    error: unable to load shared object '/usr/local/lib/R/site-library/rgl/libs/rgl.so': 
    libpng16.so.16: cannot open shared object file: No such file or directory 
Error: loading failed 
Execution halted 
ERROR: loading failed 
* removing ‘/usr/local/lib/R/site-library/rgl’ 

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

和sessionInfo():

R version 3.2.3 (2015-12-10) 
Platform: x86_64-pc-linux-gnu (64-bit) 
Running under: Ubuntu 14.04.3 LTS 

locale: 
[1] LC_CTYPE=en_CA.UTF-8  LC_NUMERIC=C    
[3] LC_TIME=en_CA.UTF-8  LC_COLLATE=en_CA.UTF-8  
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 
[7] LC_PAPER=en_CA.UTF-8  LC_NAME=C     
[9] LC_ADDRESS=C    LC_TELEPHONE=C    
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

other attached packages: 
[1] BiocInstaller_1.20.1 

loaded via a namespace (and not attached): 
[1] tools_3.2.3 tcltk_3.2.3 

和.libPaths():

> .libPaths() 
[1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"  
[3] "/usr/lib/R/library" 
+0

的DNDEBUG消息引用/ home/alex/anaconda2/include/libpng16存在並具有以下文件:png.h,pngconf.h和pnglibconf.h。 – alexvpickering

+1

'錯誤:無法加載共享對象'/ usr/local/lib/R /site-library/rgl/libs/rgl.so':你需要指定一個個人庫或者以root身份運行R? – Phil

+0

以root身份運行R,謝謝!任何想法爲什麼(我通常不需要root安裝R軟件包 - 並使用root已經搞砸了python/a naconda權限在過去,所以我有點厭倦了)? – alexvpickering

回答

1

從我們的討論來看,這似乎是一個權限問題。

error: unable to load shared object '/usr/local/lib/R/site-library/rgl/libs/rgl.so': ...建議您試圖將庫安裝到您無權寫入的文件夾。

您可以:

安裝和手動指定install.packages()一個lib(推薦)

使用lib =說法。如果你在Ubuntu上,你的個人圖書館很可能在~/R/x86_64-pc-linux-gnu-library,如果在64位系統上。

安裝作爲根

可以作爲根(從終端sudo R)運行R和庫安裝到系統文件夾。

問題與.libPaths()

好像有一個與您的庫路徑的問題。如果您從平常賬戶(即不是sudo)運行.libPaths(),則應先列出您的個人庫,並將其作爲要安裝的軟件包的默認位置。因爲它似乎缺少可以追加按照這個答案說明你的個人圖書館:https://stackoverflow.com/a/15170774/3022126

NB:先列出你的個人圖書館,使其默認位置,即.libPaths(c("~/R/...", .libPaths())

+0

我在想這個問題可能源自我原來的R安裝(在Ubuntu上安裝的所有說明一般都會運行sudo)。 「哪個R」給了我/ usr/bin/R。無論如何,作爲根安裝爲我工作。 – alexvpickering