I'm trying to run Gnat Studio on Ubuntu 22.04 but I get the following error:
/opt/gnatstudio/bin/gnatstudio_exe: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
I have installed it via the following steps:
Downloaded the "x86 GNU Linux (64 bits)" community edition and ran this
Ran /opt/GNAT/2021/doinstall
Ran /opt/gnatstudio/bin/gnatstudio and got the above error (sudo-running this yields the same error)
I'm wondering if this is down to 22.04 being a very recent release and some shared libraries are missing from the installation bundle?
Any pointers would be much appreciated.
Thanks
It seems you're missing libtinfo5. Just try to install it via
$ sudo apt install libtinfo5
I have an R environment in Anaconda with all the packages I need and use. I added a private repository from github onto my pc using the conda CLI. The project files includes an renv folder as well a .Rproj file. When I try to open any of the R scripts in the project without opening the Rproj file to open the project, they all show up as blank, and when I try to open a csv file it says it doesn't exist. When I open the Rproject, I cannot access any of my libraries or packages that I usually have access to in R. When I tried to install a package in this environment, I got the error:
warning in system(paste(cmd, "shlib-clean")) : 'make' not found warning in system(cmd) : 'make' not found error: compilation failed for package 'pkgload' * removing 'c:/users/poona/<repo name>/renv/staging/1/pkgload'
What's going wrong? I just want to access the scripts of the repository and load the packages of my usual environment. Any help is appreciated!
Hi I am running R on Ubuntu : Getting this error:
/home/user/anaconda3/lib/R/bin/exec/R: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
I have installed anaconda recently, I have tried
$echo $LD_LIBRARY_PATH
It shows nothing. I also tried
$sudo find / lib | grep libpcre.so.1
I want to run R on Ubuntu. It was running fine before; any hints?
I run RStudio Server on ubuntu 14.04. When trying to install the rgdal package I get the following error message:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/admin2/R/x86_64-pc-linux-gnu- library/2.14/rgdal/libs/rgdal.so':
libnetcdf.so.6: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
I upgraded RStudio Server, R-Core and all Ubuntu packages to their latest versions but no success. I also tried apt-get install lib32stdc++6 as suggested here, but also no changes. I think it is a problem specific to GDAL and the indexing of shared libraries in unix. Can anyone help please?
Ok I got it done removing Gdal completly, compiling it from source again and setting library paths correctly as described here. Later adding /usr/local/lib/ to /etc/ld.so.conf and run sudo ldconfig as described here.
This is a follow on to How to install ROracle package on Windows 7?
I'm getting the following error trying to build ROracle
** testing if installed package can be loaded
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'D:/Users/a101/Documents/R/win-library/3.0/ROracle/libs/x64/ROracle.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
I have RTools and 64-bit Oracle Instantclient installed
I execute the following from an Admin privieledged command line:
set OCI_LIB64=C:/Oracle/instantclient_12_1_x64
set OCI_INC=C:/Oracle/instantclient_12_1_x64/sdk/include
"C:/Program Files/R/R-3.0.0/bin/x64/R" CMD INSTALL --build ROracle_1.1-10.tar.gz
I've searched around and what I've found says this error is caused by building in mixed mode. I.e. 32-bit R with 64-bit Oracle client library or vice versa. I've been looking at this for many (many) hours and I believe I'm using all 64-bit (OS, R, Oracle client library). All the trace messages seem to indicate 64-bit everywhere. Any thoughts on what I might be missing?
To run dependency walk use Dependecy Walker, choose opening ROracle.dll in this app. I had the same issue since ROracle.dll was searching for OCI x64 (Oracle client), whereas I had x86 version of it installed on my PC.
I came across the same question, with 64bit windows and R...
Since I shifted the ROracle from 32bit to 64bit some days before. After changing the OCI_LIB64, OCI_INC and also add the 64bit instantclient dir to the env variable Path, it works fine in R and RStudio.
But I set up a task scheduler before, using Rscript.exe to run a RCode every day. That task failed since the shift with the same error:"Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'E:/app/R_lib/3.4/ROracle/libs/x64/ROracle.dll': LoadLibrary failure: %1 is not a valid Win32 application."
My final solution is to restart the computer...And the task scheduler works again....guess there should be some 32bit file stored temporarily and need to be deleted before using 64bit ROracle...
You need to add the Oracle Client 32 and 64 bits witk SDK folder directory to the Windows System enviromental variables path. Also need to install rjava package (install java 64 bits) and set JAVA_HOME in R sys.setenv().
install.packages("rJava") #Install Java 64 bits
library(rJava) #Not Errors
Sys.setenv("OCI_LIB64"="C:/instantclient_12_2_64bits")
Sys.setenv("OCI_LIB32" = "C:/instantclient_12_2_64bits")
Sys.setenv("ORACLE_HOME" = "C:/instantclient_12_2_64bits")
Sys.setenv(JAVA_HOME='C:/Program Files/Java/jre1.8.0_241')
install.packages(paste0(path,"/ROracle_1.3-1.tar.gz"), repos = NULL, type = "source")
library(ROracle)
The last message in the install process should be DONE!
In the Windows System enviromental path:
C:\instantclient_12_2_64bits;
C:\instantclient_12_2_64bits\sdk;
C:\instantclient_12_2_32bits;
C:\instantclient_12_2_32bits\sdk;
hope this works!