Is it possible to use ArrayFire in Juliabox? If it is possible how can I do it?
-I downloaded the installer and I installed ArrayFire following the installation steps.
-I included the PATH of the installed folder through push! (LOAD_PATH, "Path")
-I installed the package via Pkg.add("ArrayFire")
-Finally when I tried to use Pkg.test, I got the following error:
Pkg.test("ArrayFire")
INFO: Testing ArrayFire
ERROR: LoadError: error compiling init: could not load library "libaf"
libaf.so: cannot open shared object file: No such file or directory
....
Related
I often use R / RStudio that is located on a remote server. Unfortunately, I do not have root / sudo / administrator access on this server, so any installations need to be done only in ~/.
I know that Rmpfr relies on libmpfr4 and mpfr.h. I have mpfr and gmp installed on my local folder (~/), but it seems R / RStudio only knows to look in /usr. I have tried the following command:
install.packages("Rmpfr", type = "source", configure.args = c("--with-mpfr-include=~/include", "--with-mpfr-lib=~/lib"))
and I got the following error:
In file included from Ops.c:12:0:
Rmpfr_utils.h:22:18: fatal error: mpfr.h: No such file or directory
#include <mpfr.h>
^
compilation terminated.
make: *** [Ops.o] Error 1
ERROR: compilation failed for package ‘Rmpfr’
I confirmed that mpfr.h is in the "~/include" folder and libmpfr.a is in the "~/lib" folder. I also have all of the following in my .bash_profile:
export PATH="~/mpfr-4.1.0/src/:$PATH"
export PATH="~/bin/:$PATH"
export PATH="~/gmp-6.2.1/:$PATH"
I'm pretty far out of my element with the more technical Linux / command line stuff, but I'm trying to learn and use Google / manuals as much as possible. My server runs a redhat distro. For some reason, apt-get doesn't seem to be a valid command on my server, yum requires root access that I don't have, and I can't figure out how to install homebrew for any brew solutions.
Please let me know if I need to provide any more information. Thanks in advance.
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 am trying to install Rgtk2 (dependency for rattle). I am using R thru Anaconda. I am getting the following error.
In file included from Rgtk.c:7:0:
/usr/include/gtk-2.0/gdk/gdkx.h:32:10: fatal error: X11/Xlib.h: No such file or directory
#include <X11/Xlib.h>
^~~~~~~~~~~~
I tried the following workarounds as found in StackOverflow and other blogs.
Installed libx11-dev, mesa-common-dev, libglu1-mesa-dev, libxrandr-dev, libxi-dev
Tried installing RGtk2_2.20.31 from source.
Every time I am getting the same error.
anaconda has its own environment, which by default usually lacks X11 headers(e.g libx11-dev, or whatever you call it). Try "conda install -c conda-forge xorg-libx11" . It worked for me when a certain R-package threw an error "X11/Xlib.h : No such file or directory".
I am attempting to compile and run a standalone C# binary on Ubuntu, but I'm running into troubles with installed libraries. My understanding is that if I do a publish for a particular runtime then it should be able to run without installing the .so files alongside the binary, or I am making false assumptions?
When I attempt to run the application outside of its publish directory, I get:
Failed to resolve library symbol hostfxr_main, error: ./neoj: undefined symbol: hostfxr_main
Segmentation fail (core dumped)
If I list the installed dotnet packages, it currently looks like this:
dotnet-host/xenial,now 2.0.0-preview2-25407-01-1 amd64 [installed,automatic]
dotnet-hostfxr-2.0.0/xenial,now 2.0.0-1 amd64 [installed,automatic]
dotnet-runtime-2.0.0/xenial,now 2.0.0-1 amd64 [installed,automatic]
dotnet-sdk-2.0.2/xenial,now 2.0.2-1 amd64 [installed]
There seem to be a few discrepancies, but those are the dependencies pulled into automatically if I install the SDK.
If I use ldconfig -p | grep libhostfxr to check for the library then, predictably, it returns no results. I tried added /usr/share/dotnet/ in a config file, adding a symlink in that directory to the .so file and updating the cache (sudo ldconfig) which results in the library being added to the cache, but still no joy when attempting to run the command.
I've attempted to resolve this by updating the runtime framework version to 2.0.0 which resulted in a slightly more friendly error message, but the same result.
Source files are all here in case it's something non-obvious!
I am facing a problem with an R package that I am writing and trying to build with a pre-compiled shared library. Let me try to briefly describe the problem:
this package (let's call it mypack) relies on a shared library mylib.dll that is already compiled and that I cannot compile on the fly while building the R package.
the library mylib.dll has been compiled on a x64 machine under Windows and can be loaded in R with dyn.load.
the package contains the required file NAMESPACE, where useDynLib(mylib.dll) is specified. The function .onLoad containing the instruction library.dynam('mylib.dll', pkg, lib) is also specified in a file zzz.R.
the R package mypack is built with Rtools using the usual command Rcmd INSTALL, and I then add a directory libs where I save mylib.dll.
when I try to load the package in R with library(mypack), I get the following error message:
Error: package 'mypack' is not installed for 'arch=x64'
This is puzzling me. Why can the shared library be loaded smoothly in R, but when I build a package using it I am getting this weird error message?
Thank you very much in advance for your help!
That error message comes from this code in library:
if (nzchar(r_arch) && file.exists(file.path(pkgpath,
"libs")) && !file.exists(file.path(pkgpath, "libs",
r_arch)))
stop(gettextf("package %s is not installed for 'arch=%s'",
sQuote(pkgname), r_arch), call. = FALSE, domain = NA)
which is telling me you need a {package}/libs/{arch} folder in your built package (ie the installed directory) with an {arch} that matches your system's arch, as given by r_arch <- .Platform$r_arch
I'm guessing your build has failed to make this correctly. Is there any C code in your source?