I am working with an 8 year old machine with Lubuntu 16.04.02. For some odd reason I couldn't install R the usual way so I compiled it and installed it from source. Here is my configure file command:
./configure --enable-R-shlib --with-blas --with-lapack --with-x=yes --enable-BLAS-shlib --with-tcltk
From terminal I can run with no problems
ejam#ejam:~/Documents/3ATD$ R
R version 3.4.1 (2017-06-30) -- "Single Candle"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(rgl)
> open3d()
glX
1
> x <- sort(rnorm(1000))
> y <- sort(rnorm(1000))
> z <- sort(rnorm(1000))+atan2(x,y)
> plot3d(x,y,z,col=rainbow(1000))
>
However, when I try to run it in RStudio, the session is immediately aborted. It shows a message similar to the one shown here: R rgl Package crashes Rstudio
My R session log looks like:
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS
Matrix products: default
LAPACK: /usr/local/lib/R/lib/libRlapack.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=es_MX.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=es_MX.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=es_MX.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=es_MX.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.1 tools_3.4.1
Any help is appreciated.
EDIT 1:
I ran from terminal
$ gdb
(gdb) file rstudio
From the opened RStudio window, I typed
> library(rgl)
> open3d()
The session aborts immediately.
The terminal shows
Starting program: /usr/bin/rstudio
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeac19700 (LWP 4288)]
[New Thread 0x7fffdc7c7700 (LWP 4289)]
[New Thread 0x7fffdbfc6700 (LWP 4290)]
[New Thread 0x7fffdb7c5700 (LWP 4291)]
[New Thread 0x7fffdafc4700 (LWP 4292)]
[Thread 0x7fffdafc4700 (LWP 4292) exited]
[New Thread 0x7fffdafc4700 (LWP 4319)]
[New Thread 0x7fffda7c3700 (LWP 4321)]
[New Thread 0x7fffd94d1700 (LWP 4325)]
[New Thread 0x7fffd8cd0700 (LWP 4326)]
[New Thread 0x7fff82026700 (LWP 4328)]
[New Thread 0x7fff81825700 (LWP 4329)]
load glyph failed err=6 face=0x1103500, glyph=2797
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
load glyph failed err=6 face=0x1103500, glyph=2797
libpng warning: iCCP: known incorrect sRGB profile
[Thread 0x7fffdb7c5700 (LWP 4291) exited]
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
I think the problem is more general. I tried several examples from several nonstandard R libraries (I mean the libraries that do not come by default in R) such as 'rgl', 'kernlab' and 'TDA'. The funny thing is that I could flawlessly run these examples from terminal.
I admit I had some troubles trying to add the " --enable-BLAS-shlib" flag while configuring R source. I've recompiled R without such flag and RStudio now works as it should.
Related
I am using omnet++ v.6.0 (on MacBook pro with an m1 processor) and the debugger gives me the following error:
Could not determine GDB version using command: lldbmi2 --version dyld
[4595]: Library not loaded: # rpath / LLDB.framework / LLDB
Referenced from:
/Users/gerald/Desktop/TESI/omnetpp-6.0/tools/macos.x86_64/bin/lldbmi2
Reason: tried:
'/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/LLDB'
(no such file),
'/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/LLDB'
(no such file ), '/Library/Frameworks/LLDB.framework/LLDB' (no such
file), '/System/Library/Frameworks/LLDB.framework/LLDB' (no such file)
Can you please help me to solve it?
I'm running Anaconda Spyder on Fedora 34.
When I run spyder I get the following error
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
libGL error: MESA-LOADER: failed to open iris: /home/ted/anaconda3/lib/python3.8/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib64/dri/iris_dri.so) (search paths /usr/lib64/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /home/ted/anaconda3/lib/python3.8/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib64/dri/swrast_dri.so) (search paths /usr/lib64/dri)
libGL error: failed to load driver: swrast
libpng warning: bKGD: invalid
libpng warning: bKGD: invalid
I can see that libstdc++.so.6 is in /usr/lib64, but the search path is /usr/lib64/dri
How can I get iris and swrast to search /usr/lib64 for the driver?
Creating a symlink didn't work.
I have found the answer in this video at 14:50
https://www.youtube.com/watch?v=OqqZ3tqgJnA
You have simply to rename files
libstdc++.so
libstdc++.so.6
libstdc++.so.6.0.28
(or any that have libstdc++.so in it)
in home/anaconda3/lib
You might try this out.
https://unix.stackexchange.com/questions/655495/trying-to-run-pygame-on-my-conda-environment-on-my-fresh-manjaro-install-and-ge
I recommend to directly copy your /usr/lib/libstdc++.so.6 into (anaconda)/lib/.
All the above answers are correct . Also remember if you are in different environment than the base environment. Then you will have to rename
it in that envrionment.
You will find those in env/(env_name)/lib
libstdc++.so -> libstdc++.so.old
libstdc++.so.6 -> libstdc++.so.6.old
libstdc++.so.6.0.28 -> libstdc++.so.0.28.old
Sometimes instead of libstdc++.so.6.0.28 it might be libstdc++.so.6.0.29 or any other number.
Refer this video
https://youtu.be/OqqZ3tqgJnA?t=876
I want to install Caffe on CentOS 7, but got stuck at 'make runtest'. one warning like
Warning! HDF5 library version mismatched error
And the abortion code followd as
SIGABRT (#0xc8b) received by PID 3211 (TID 0x7fcfd38c29c0) from PID 3211; stack trace: ***
# 0x7fcfcede5100 (unknown)
# 0x7fcfcea4a5f7 __GI_raise
# 0x7fcfcea4bce8 __GI_abort
# 0x7fcfd26c0592 H5check_version
# 0x7fcfcf6e2630 caffe::HDF5DataLayer<>::LoadHDF5FileData()
# 0x7fcfcf6e1518 caffe::HDF5DataLayer<>::LayerSetUp()
# 0x7fcfcf7f5ecc caffe::Net<>::Init()
# 0x7fcfcf7f6d55 caffe::Net<>::Net()
# 0x7fcfcf6af93a caffe::Solver<>::InitTrainNet()
# 0x7fcfcf6b0a3c caffe::Solver<>::Init()
# 0x7fcfcf6b0d6a caffe::Solver<>::Solver()
# 0x49e598 caffe::AdaGradSolverTest<>::InitSolver()
# 0x49fc40 caffe::GradientBasedSolverTest<>::InitSolverFromProtoString()
# 0x4942a4 caffe::GradientBasedSolverTest<>::RunLeastSquaresSolver()
# 0x498c72 caffe::GradientBasedSolverTest<>::TestLeastSquaresUpdate()
# 0x6f7923 testing::internal::HandleExceptionsInMethodIfSupported<>()
# 0x6ef6c7 testing::Test::Run()
# 0x6ef76e testing::TestInfo::Run()
# 0x6ef875 testing::TestCase::Run()
# 0x6f1b08 testing::internal::UnitTestImpl::RunAllTests()
# 0x6f1d97 testing::UnitTest::Run()
# 0x459d62 main
# 0x7fcfcea36b15 __libc_start_main
# 0x460ef9 (unknown)
make: *** [runtest] Aborted
I use anaconda to manage the libs, and the version of hdf5 library is 1.8.16. How can i get over this problem? Please help me, thank you!
Check the requirement for the HDF5 library version the Caffe installation requires. I think you will find it is different than the version you have installed on your system.
Warning! HDF5 library version mismatched error
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked. Data corruption or segmentation faults may occur if the application continues. This can happen when an application was compiled by one version of HDF5 but linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related settings such as 'LD_LIBRARY_PATH'. You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
I am trying to install OpenCV 3.1 in Mac OS 10.10 Yosemite, however after cmake there was always the following error:
/Users/cwang/Downloads/opencv/modules/core/include/opencv2/core/matx.hpp(503): error: identifier "_Static_assert" is undefined
detected during:
instantiation of "cv::Matx<_Tp, m, n>::Matx(_Tp, _Tp) [with _Tp=float, m=2, n=1]"
OpenCV 3.0 would not produce the error.
Any ideas?
I get around this error by setting CMAKE_CXX_FLAGS=-std=c++11 (check the advanced box if you are using the CMake GUI).
The CV_StaticAssert macro should expand to static_assert for a modern c++ compiler. See the macro for CV_StaticAssert in base.hpp starting at line 275.
I want to install an old 2009 R tar.gz package in Windows 7, and have tried installing it using new and old versions of R (3.1.1 - output shown below, 2.7.0). This may not be pertinent to the solution, but I've set the path temporarily for R to recognize Rtools 31 using the code supplied in this solution.
I've seen this package used in recent journal articles so I know it's functional. If you would like to try installing this package it is available here.
Does anyone know how I can solve this cygwin warning, or Error: compilation failed problem/installation had non-zero exit status?
I really appreciate it, thank you very much!
> install.packages("cusp_2.2.tar.gz",type="source",repos=NULL,dependencies=TRUE)
* installing *source* package 'cusp' ...
** package 'cusp' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
gcc -m32 -I"C:/PROGRA~1/R/R-31~1.1/include" -DNDEBUG - I"d:/RCompile/CRANpkg/extralibs64/local/include" -O3 -Wall -std=gnu99 -mtune=core2 -c cusp.nc.c -o cusp.nc.o
gcc: not found
make: *** [cusp.nc.o] Error 127
Warning: running command 'make -f "C:/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R- 31~1.1/share/make/winshlib.mk" SHLIB="cusp.dll" OBJECTS="cusp.nc.o"' had status 2
ERROR: compilation failed for package 'cusp'
* removing 'C:/Program Files/R/R-3.1.1/library/cusp'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.1.1\library" "cusp_2.2.tar.gz"' had status 1
2: In install.packages("cusp_2.2.tar.gz", type = "source", repos = NULL, :
installation of package ‘cusp_2.2.tar.gz’ had non-zero exit status
Session Info and Library Path information
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
> .libPaths()
[1] "C:/Program Files/R/R-3.1.1/library"