dahtah / imager

R package for image processing
GNU Lesser General Public License v3.0
187 stars 43 forks source link

Can't install imager from anaconda #125

Open pedrohforli opened 4 years ago

pedrohforli commented 4 years ago

I tried installing imager from conda by using with conda skeleton CRAN (anaconda documentation) on Ubuntu 18.04

When trying so I always fall in the same error:

checking for X... no
configure: error: X11 not found but required, configure aborted.

I tried installing several packages (tutorial 1, tutorial 2, tutorial 3, tutorial 4, tutorial 5) as well as installing every library recommended for ubuntu listed on this github page.

I've been able to install the library through my system R installation, so I'm fairly confident that this is an anaconda configuration related issue.

Is there a way to install it using anaconda? Is this package expected to be included in the anaconda r repo?

Thanks for the help

ShotaOchi commented 4 years ago

I can install imager in anaconda on Ubuntu 18.04.

The procedure is shown below.

click here 1. conda create -n r_env 2. conda activate r_env 3. conda config --add channels conda-forge 4. conda config --set channel_priority strict 5. conda install r-base r-essentials 6. conda skeleton cran imager 7. conda-build r-imager 8. conda install --use-local r-imager

I don't think imager is expected to be included in the anaconda r repo because imager imports readbitmap package and readbitmap package isn't included in the repo.

charliex210 commented 4 years ago

I got the same error in conda environment, the problem was solved by installing r-magick and imagemagick:

conda install -c conda-forge r-magick imagemagick --override-channels

Then I can install imager in R. @pedrohforli