sudo gem install rmagick Not working - rmagick

I am installing rmagick,Its giving me error of
Found partial installation at: /usr
checking for ImageMagick version >= 6.4.9... no
Can't install RMagick 2.13.1. You must have ImageMagick 6.4.9 or later.
Although I have installed the ImageMagick 6.5.7-8 ,Location is /usr/local/bin/identify,
I don't understand the what is the reason behind this.Please help me...

I was just bitten by the same thing on Ubuntu 10.04. The fix was to install libmagick9-dev, not libmagick-dev (without the 9)

Related

How to install libxml2 package in R if it's not available for my version?

I wanted to install "DESeq2" package in R, but it was missing the xml2-config file. I found somewhere that it can be obtained by installing the libxml2 package, but when I tried it gives error that it's not available for R version 3.4.2. Anyone has idea what to do?
You can install the dev version: devtools::install_github("r-lib/xml2")
After running what #amarchin wrote it didn't work instantly but R suggested to install libxml2-dev. So I run: sudo apt-get install libxml2-dev in Terminal.
And then in R console I typed the code from #amarchin: devtools::install_github("r-lib/xml2")
And it worked :)

Unable to locate package libvirt-clients error on ubuntu

I am seeing the below error when deploying devstack (openstack) on ubuntu:
E: Unable to locate package libvirt-clients
E: Unable to locate package libvirt-daemon-system
Any clues pls ?
I have this problem too and i use ubuntu trusty
according to this commit:
https://github.com/openstack-dev/devstack/commit/03fbc0d71bf4ee85820999ef1324dc319ef9d926?diff=split
they changed the repo packages 5 days ago and just for ubuntu xenial its the same as before : "install_package libvirt-bin libvirt-dev"
but other distros: "install_package libvirt-clients libvirt-daemon-system libvirt-dev"
I think we could better edit the file manually until better changes take place.
You're probably trying to install Devstack it on an unsupported version of Linux. Try Ubuntu 16.0.4 (worked for my today without a single problem) or the one that the installation guide says is supported.
Try sudo apt install qemu qemu-kvm virt-manager for more information check this out on github.

Warning in install.packages : packages ‘(‘rgdal’’, ‘repos=”http://www.stats.ox.ac.uk/pub/RWin“)’ are not available (for R version 3.3.2)

I have seen this question asked before and I know this is a repeat but after trying all the suggestions on how to get rgdal to work on a mac I still can't manage to install it properly. Some of its functions work but not all of it and I continually get the warning NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files. I have also tried to install this manually and upgrade rdgal but I've had no luck. I'm rather new to R so maybe I've missed something, but I'd be gratefull for any advice.
For those with similar problems the answer is to download homebrew a unix package installer for mac - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" . Install it through terminal and then instal rgdal and its dependencies through terminal by typing "brew install rgdal". The connection between proj4 and rgdal should be made.

Error message installing Cairo package in R

I want to install the Cairo package in R using:
install.packages("Cairo")
Unfortunately this doesn't work. The error message is following:
xlib-backend.c:34:74: fatal error: X11/Intrinsic.h: No such file or directory
compilation terminated.
make: *** [xlib-backend.o] Error 1
ERROR: compilation failed for package ‘Cairo’
* removing ‘/home/magnus/R/x86_64-pc-linux-gnu-library/3.1/Cairo’
Does anybody have an answer for this problem? I couldn't find any help in the internet so far.
Many thanks in advance!
Yours,
broesel
For me (Ubuntu 15.04) installing libxt-dev solved the problem.
(I know it's mentioned in comments above, but thought it might be good to have it in answers as well)
You need the development header as the file Intrinsic.h is not found.
For the related package cairoDevice (which I maintain for Debian), I ensure the following is installed:
libgtk2.0-dev, libcairo2-dev, xvfb, xauth, xfonts-base
If you are on a different distribution these might be called something else. The key is that the Gtk and Cairo header packages also pull in other, needed, x11 packages.
libXt-devel needs to be installed in Fedora (25):
sudo dnf install libXt-devel
On a Mac, my problems were solved once I installed libxt
brew install libxt
Similar, I'm sure to https://stackoverflow.com/a/41455437/61728
Along with the packages libgtk2.0-dev, libcairo2-dev, xvfb, xfonts-base and xauth that Dirk mentioned in the above comment , I also installed libxt-dev (after Magnus' comment) after which I was able to install Cairo in R. I am using Ubuntu 16.04 LTS
I had a lot of trouble with this, for some reason this didn't work
apt-get install libx11-dev libxt-dev libgtk2.0-dev libcairo2-dev xvfb xauth xfonts-base -y
but when I ran this immediately afterwards (even though it was already installed above), then the Cairo R package installed successfully. Not exactly sure why but thought I'd put it here in case it helps someone.
apt-get install libcairo2-dev -y
I used this:
devtools::install_github("jcassiojr/BayesPeak")
then:
library("BayesPeak")
And worked.
Paulo

R BayesVarSel on Ubuntu installation

I'm trying to install the BayesVarSel package on a ubuntu 12 box on AWS EC2. It works fine on my windows 7 machine (R 2.15.1).
I've attached a screenshot of the error message. It appears to be an issue with the GNU GSL library. I couldn't find a quick way to install GSL (ie sudo apt-get GSL, etc.) so I wanted to see if others have had a similar issue. I'm open to other packages with similar functionality.
EDIT:
A couple other things I've tried without luck :
I was able to recreate the error with Ubuntu 12.04.1 LTS (desktop) running in VirtualBox.
As #Dirk Eddelbuettel suggested, sudo apt-cache search libgsl produced a useful list of packages. It's not clear why that didn't work on your machine.
I installed libgsl with:
sudo apt-get install libgsl0ldbl
sudo apt-get install libgsl0-dev
Now BayesVarSel compiles and loads without error.
Do
apt-cache search libgsl
and everything should be a little clearer. Those packages have existed longer than either Ubuntu or Amazon EC2 so it really should not take superhuman effort to find them.
And if apt-cache search libgsl is too difficult, try packages.ubuntu.com
where you can search for the package containing the file in your error message (eg /usr/include/gsl/gsl_vector.h) and "Yes, Veronica" you can search for substrings too.
On Fedora the required package can be installed with dnf install gsl-devel.

Resources