Error Gdal-config Not Found Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site configure: error: proj_api.h not found in standard or given locations. About Us Learn more about Stack Overflow the company Business Learn more about configure: error: gdal-config not found or not executable. mac hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss
Gdal-config Not Found Mac
Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Trouble installing rgdal up
Libgdal-dev
vote 6 down vote favorite 3 I want to install rgdal for "R version 3.2.3 (2015-12-10)". I downloaded and installed GDAL 1.11 Complete PROJ framework v4.9.2-2 GEOS framework v3.5.0-1 from KyngChaos Then in RStudio I typed install.packages("rgdal") which gave me this: > .... > > configure: CC: clang configure: CXX: clang++ configure: rgdal: > 1.1-1 checking for /usr/bin/svnversion... yes configure: svn revision: > 572 checking configure: error: gdal-config not found or not executable. osx for gdal-config... > no no configure: error: gdal-config > not found or not executable. ERROR: configuration failed for package > ‘rgdal’ > * removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgdal’ > Warning in install.packages : installation of package ‘rgdal’ had > non-zero exit status > sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.10.5 (Yosemite) locale: [1] de_AT.UTF-8/de_AT.UTF-8/de_AT.UTF-8/C/de_AT.UTF-8/de_AT.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_3.2.3 I also tried in the terminal R CMD INSTALL rgdal_1.1-1.tar --configure-args='--with-gdal-config=/Library/Frameworks/GDAL.framework/Programs/gdal-config --with-proj-include=/Library/Frameworks/PROJ.framework/Headers --with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib' and sudo R CMD INSTALL –configure-args=’–with-proj-include=/usr/local/lib’ rgdal_1.1-1.tar No luck! r gdal rgdal share|improve this question edited Dec 17 '15 at 14:20 asked Dec 17 '15 at 11:36 Stophface 938430 1 devtools::session_info() would be helpful to see the whole R+system config. I use Homebrew for the supporting library installs and have no trouble, but you may be able to add export PATH=”/Library/Frameworks/GDAL.framework/Programs:$PATH” (that's the path for gdal-config using the KC frameworks IIRC) to your profile and restart R/RStudio and try the install again. –hrbrmstr Dec 17 '15 at 11:48 @Phil added the info –Stophface Dec 17 '15 at 11:54
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack
Gdal-config Missing
Overflow the company Business Learn more about hiring developers or posting ads with us checking for gdal-config... no Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and install rgdal ubuntu developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to install http://stackoverflow.com/questions/34333624/trouble-installing-rgdal rgdal on Ubuntu 12.10? up vote 14 down vote favorite 1 I'm strugling to install rgdal library on Ubuntu 12.10. Installation from within R results in error: Error: gdal-config not found The gdal-config script distributed with GDAL could not be found. If you have not installed the GDAL libraries, you can download the source from http://www.gdal.org/ If you have installed the GDAL libraries, then make sure that gdal-config is in your path. Try http://askubuntu.com/questions/206593/how-to-install-rgdal-on-ubuntu-12-10 typing gdal-config at a shell prompt and see if it runs. If not, use: --configure-args='--with-gdal-config=/usr/local/bin/gdal-config' with appropriate values for your installation. ERROR: configuration failed for package ‘rgdal’ * removing ‘/home/rdk/R/x86_64-pc-linux-gnu-library/2.15/rgdal’ Warning in install.packages : installation of package ‘rgdal’ had non-zero exit status R-sig-Geo, this two SE questions and other websites pointed me to the requirements of libgdal1-dev. But when I tried sudo apt-get install libgdal1-dev I end up with another error message Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libgdal1-dev : Depends: libgdal-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages. Again - when I try to install libgdal-dev another dependencies error shows up The following packages have unmet dependencies: libgdal-dev : Depends: libgeos-dev but it is not going to be installed Depends: libspatialite-dev but it is not going to be installed Again trying libgeos-dev gives message: Depends: libgeos-c1 (= 3.3.3-1.1) but 3.3.3-2~precise2 is to be installed E: Unable to correct problems, you have held broken packages. and libspat
plot maps. Under Linux you may encounter one or two errors when trying to install the package: Error: gdal-config not found. The gdal-config script distributed with GDAL https://philmikejones.wordpress.com/2014/07/14/installing-rgdal-in-r-on-linux/ could not be found. Or: configure: error: proj_api.h not found in standard or given locations. ERROR: configuration failed for package ‘rgdal' You experience these errors because R in Linux installs the packages http://www.linuxquestions.org/questions/linux-software-2/%5Br%5D-error-gdal-config-not-found-4175424186/ from source (rather than a ready-compiled binary) and you need additional libraries to compile RGDAL. Essentially, the packages libgdal-dev and libproj-dev are required and may be missing. To install them on an not found Ubuntu system open a terminal (CTRL+ALT+T) and type (or copy and paste): sudo apt-get update && sudo apt-get install libgdal-dev libproj-dev To ensure you package lists are up to date and then installs the required packages. Once these are installed on your system you can install the RGDAL package by running the following code inside R: install.packages("rgdal"); library(rgdal) Job done. Sources: http://stackoverflow.com/questions/12141422/error-gdal-config-not-found http://stackoverflow.com/questions/15248815/rgdal-package-installation Share this:PrintTwitterFacebookGoogleEmailLike gdal-config not found this:Like Loading... Related Post navigation ←→ 9 thoughts on “Installing RGDAL in R onLinux” rengifo says: thanks a lot. Short and precise … just what I was looking for after clean -installing linux mint on my PC. April 16, 2015 at 8:10 pm philmikejones says: Glad you found it useful. Thanks, Phil. April 17, 2015 at 7:27 am Malek says: Merci. Thanks. Malek June 20, 2015 at 10:05 am Sergei says: Thanks for the information…help me with Open suse… October 6, 2015 at 10:06 am Sebastian Arias says: Thanks for your answer. It was very helpful for me in my ubuntu 14.04. Regards from Colombia. January 20, 2016 at 3:13 am philmikejones says: Pleased it helped. January 20, 2016 at 2:53 pm jules says: on a Fedora 23 ? February 15, 2016 at 10:16 pm philmikejones says: You could try using Fedora's package manager (rpm?) to install the required libraries. Otherwise, there might be compiled versions already available you might be able to find with a quick Google search. Good luck February 16, 2016 at 10:07 am Pingback: issue solved: rgdal package not installing on Mac OS X 10.10 and above |
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Software [R] Error: gdal-config not found User Name Remember Me? Password Linux - Software This forum is for Software issues. Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 08-27-2012, 06:22 AM #1 TheIndependentAquarius Senior Member Registered: Dec 2008 Posts: 4,672 Blog Entries: 29 Rep: [R] Error: gdal-config not found Please point out the point that I am missing: Code: anisha@linux-y3pi:~/Desktop/R> sudo R CMD INSTALL rgdal_0.7-12.tar.gz root's password: * installing to library ‘/usr/lib64/R/library' * installing *source* package ‘rgdal' ... ** package ‘rgdal' successfully unpacked and MD5 sums checked configure: gdal-config: gdal-config checking gdal-config usability... ./configure: line 1353: gdal-config: command not found no Error