Installing rjags on Fedora 33 - jags

I'm trying to install rjags on a Fedora 33 system running R 4.0.3. I've installed JAGS 4.3.0 from source and can run the software from the command line, but when I try to install the package in R, I get this error:
checking version of JAGS library... link error
configure: error: Runtime link error: See the INSTALL file for help
ERROR: configuration failed for package ‘rjags’
I've followed this tutorial for building an installing on Fedora, and have all the expected directories under /usr/local/lib64, but get the same errors.
I've also followed this tutorial which specifies the various file locations - also get the same errors.
Finally, I found this which gives some options under section 3, but none of those worked.

I stumbled across a solution here that seems to work:
https://github.com/cran/rjags/blob/master/INSTALL
Installing rjags with the argument below seems to have worked:
> install.packages("rjags", configure.args="--enable-rpath")

Related

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-qrebbk1j\cffi\

Please read before marking as duplicate:
I am trying to install scrapy with pip but it gives me following error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-qrebbk1j\cffi\
I have tried every solution available on stackoverflow and nothing solves my error.
Yes,my pip is updated and setup_tools is also updated.
Everything was working fine and I did install other packages today itself but when I tried to install scrapy it gave this error and I have no idea what else i can do I tried everything I could do.
I followed every step on this answer
However, nothing works, please help.
I have finally resolved the issue, as it happens the package I was trying to install needs windows sdk 8.1 which got installed after installing the sdk.
However now this also installs a package called twisted for dependency I guess, which has some components written in C thus it needs a C compiler. which gave me this error
error: Setup script exited with error: command 'cl.exe' failed: No such file or directory
Hence, I could download a vs c++ compiler and it would solve the error. But a simpler solution would be downloading an already compiled version of the required packages which are mostly available on this site for windows. Although this is not official distribution so use it at your own risk.

Sundials installed but not running in python with assimulo

Cheerio,
I am trying to use Assimulo 2.9. on a Mac OS X. For that I downloaded and installed sundials via cmake by creating a builddir to the Download file and ../Downloads/sundials-2.7.0 running
$cmake ../Downloads/sundials-2.7.0
$make
$make install
This should install everything in /usr/local.
It gives me no error warning when doing this. But when I am trying to use assimulo in python, following error message occurs:
from .sundials import IDA, CVode
ImportError: No module named sundials
Any suggestions?
Thank you very much.
The trick was to install everything through homebrew and get the missing sundials.so file. It seems that the current assimulo-2.9 distribution on pypi does not provide this shared object library and therefore triggers this error message.
I got the same error, in Anaconda(Ubuntu 18.04). I installed pyfmi first, and then installed the dependencies (assimulo, sundials) according to the error message. After everything was installed, the pyfmi was not working by running an fmu example.
But i uninstalled all the related software. Then i reinstalled everything with certain order. I found the order of installation matters, which are: sundials --> assimulo --> pyfmi.
Everything is good now.

Install OPENCV 2.4.4 in centos 6.3

I cannot install OpenCV 2.4.4 in Cent OS 6.3
I have gone here
http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.4/
Then did:
wget to the direct link available in there to any location in the server with Cent OS 6.3 installed.
After that I did tar xvz CentOS-2.4.4.tar.gz2
then I did cd OpenCV-2.4.4 and then I did cmake ., make, make install
all logged in as root.
Errors I saw from cmake were pythonlibs cannot be found, yet python 2.7.7 is installed and it seems python 2.6.6 is installed also bundled with Cent OS 6.3 as it shows from cmake that the parser for python is that yet it complains it can't find the pythonlibs.
Asides that I didn't see any other error after cmake.
So I went ahead and did make, waited then did make install
Now I go to the samples directory of OpenCV. cd OpenCV-2.4.4 cd samples cd c
And put the following command in ssh ./myfile.c
which among other things calls a file that comes with opencv, it appear to struggle into finding a file that cannot be found, or a command that can't be found from a broken / wrong install , misconfiguration in the above process / hours of googling to find the answer, etc:
./facedetect.c: line 5: CvHaarClassifierCascade: command not found
./facedetect.c: line 6: CvMemStorage: command not found
./facedetect.c: line 8: syntax error near unexpected token `('
./facedetect.c: line 8: `void detectfaces(IplImage *frame)'
CvHaarClassifierCascade
not found
CvMemStorage
not found
what a problem, my OpenCV isn't working on Cent OS 6.3, I can't get it installed.
Also, I am pretty blind on this installation as there is not a single tutorial that I can find to install OpenCV in Cent OS yet there are many tutorials for Ubuntu, else I wouldn't post to stack.
this is the actual error from cmake, with similar output:
could not find png
could not find
tiff
could not find
jpeg
could not find
jasper
couldn ot find pythonlibs
missing: PYTHON_LIBRARIES PYTHON_INCLUDE_PATH
no module named numpy.distutils
sorry I find the question might be "too localized" - just close it down . thanks
why struggle when there is readymade linux/centos rpm available for opencv? (with some gotchas but for most part it will be just fine)

error installing TSA package for R on RStudio

so I've been struggling with this issue for a while now, and I cannot seem to find this issue anywhere else on the internet.
I am running:
Linux Mint 12(based on Ubuntu 11.10)
The latest version of R(2.15.1)
RStudio(0.96.331)
Both R and RStudio are the latest versions, so my issues with installing TSA are not based on an outdated version of R.
Here is the error message I am getting when I try to install TSA through RStudio(I installed PerformanceAnalytics and xts without any issues):
installing source package ‘TSA’ ...
** Creating default NAMESPACE file
** R
** data
** preparing package for lazy loading
Error : .onLoad failed in loadNamespace() for 'Matrix', details:
call: assignInNamespace("..Old..as.matrix", base::as.matrix, ns = "base")
error: locked binding of ‘..Old..as.matrix’ cannot be changed
Error : package ‘mgcv’ could not be loaded
ERROR: lazy loading failed for package ‘TSA’
removing ‘/home/client/R/i686-pc-linux-gnu-library/2.15/TSA’
Warning in install.packages :
installation of package ‘TSA’ had non-zero exit status
I have checked my version of mgcv and it is the latest(I checked on my Software Manager and it is installed as well as the latest version).
I really have no idea of what to do now. I contemplated installing TSA manually onto my system itself, but I couldn't find a reliable website that explains how to install packages directly to R itself.
All assistance with this issue will be greatly appreciated.
Per the (clear) error message Error : .onLoad failed in loadNamespace() for 'Matrix', details:, you need a new Matrix package.
You could try http://cran.r-project.org/bin/linux/ubuntu if your Mint system mixes with Ubuntu. Else compile Matrix from source.

Problem installing sqlite3-ruby on cygwin

I'm getting error while trying to install sqlite3-ruby gem:
gem install sqlite3-ruby-1.3.1.gem
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby-1.3.1.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb
Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/ext/sqlite3/gem_make.out
Same using:
gem install sqlite3-ruby-1.3.1
And that worked:
gem install sqlite3-ruby-1.3.1-x86-mswin32-60.gem
However I discovered I had had installed sqlite-ruby-1.2.5
Well my question is how 'gem' is installing these things? Why it can't choose sqlite3-ruby-1.3.1-x86-mswin32-60.gem version automatically. Does 'gem' is aware of running on linux or windows? What is native extension for it and why it is failing to install predownloaded sqlite3-ruby-1.3.1.gem
Thanks in advance
Lots of people seem to be having this issue. I'm surprised this doesn't work out of the box, as I would have guessed cygwin+ruby+sqlite is a supercommon configuration. Anyway. Many people concentrate on sqlite3.h, which is what appears are missing in the error output. However, my problem was that gcc wasn't installed correctly. Apparently gcc can fail to install correctly under cygwin. I fixed that and it was fine. Also, make sure you install libsql3-devel in cygwin.
I've been down this road before. I failed installing Ruby in Windows to work with Cygwin and I failed on Ubuntu.
What you do to save yourself the time and trouble is get a VM running with a Linux image (Fedora seemed to work well) and work with Ruby in that.

Resources