Installing the R-package “rgeos” on linux: geos-config not found or not executable












1















I am running R 3.4.1 on gentoo.
When i try to install the 'rgeos' package, i get this:



> install.packages("rgeos")
Installing package into ‘/home/jody/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://stat.ethz.ch/CRAN/src/contrib/rgeos_0.4-2.tar.gz'
Content type 'application/x-gzip' length 255244 bytes (249 KB)
==================================================
downloaded 249 KB

* installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: x86_64-pc-linux-gnu-gcc
configure: CXX: x86_64-pc-linux-gnu-g++
configure: rgeos: 0.4-2
checking for /usr/bin/svnversion... yes
configure: svn revision: 581
checking for geos-config... no
no
configure: error: geos-config not found or not executable.
ERROR: configuration failed for package ‘rgeos’
* removing ‘/home/jody/R/x86_64-pc-linux-gnu-library/3.4/rgeos’

The downloaded source packages are in
‘/tmp/RtmppEeDps/downloaded_packages’
Warning message:
In install.packages("rgeos") :
installation of package ‘rgeos’ had non-zero exit status


(The same happens if i try to install rgeos on gentoo with R 3.5.1, and also on Centos 7.5 with R 3.5.1.)



While there is a rgeos/configure which is executable in the tar file mentioned above, there is indeed no geos-config in there.



How can i get the rgeos package installed?



Is there perhaps a binary version which i could download?










share|improve this question




















  • 2





    From the package's DESCRIPTION: "The 'GEOS' library is external to the package, and, when installing the package from source, must be correctly installed first." The GEOS website is here, and they claim Gentoo has a binary package for GEOS, but right now the website seems to be down (see here)

    – duckmayr
    Nov 20 '18 at 8:51
















1















I am running R 3.4.1 on gentoo.
When i try to install the 'rgeos' package, i get this:



> install.packages("rgeos")
Installing package into ‘/home/jody/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://stat.ethz.ch/CRAN/src/contrib/rgeos_0.4-2.tar.gz'
Content type 'application/x-gzip' length 255244 bytes (249 KB)
==================================================
downloaded 249 KB

* installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: x86_64-pc-linux-gnu-gcc
configure: CXX: x86_64-pc-linux-gnu-g++
configure: rgeos: 0.4-2
checking for /usr/bin/svnversion... yes
configure: svn revision: 581
checking for geos-config... no
no
configure: error: geos-config not found or not executable.
ERROR: configuration failed for package ‘rgeos’
* removing ‘/home/jody/R/x86_64-pc-linux-gnu-library/3.4/rgeos’

The downloaded source packages are in
‘/tmp/RtmppEeDps/downloaded_packages’
Warning message:
In install.packages("rgeos") :
installation of package ‘rgeos’ had non-zero exit status


(The same happens if i try to install rgeos on gentoo with R 3.5.1, and also on Centos 7.5 with R 3.5.1.)



While there is a rgeos/configure which is executable in the tar file mentioned above, there is indeed no geos-config in there.



How can i get the rgeos package installed?



Is there perhaps a binary version which i could download?










share|improve this question




















  • 2





    From the package's DESCRIPTION: "The 'GEOS' library is external to the package, and, when installing the package from source, must be correctly installed first." The GEOS website is here, and they claim Gentoo has a binary package for GEOS, but right now the website seems to be down (see here)

    – duckmayr
    Nov 20 '18 at 8:51














1












1








1








I am running R 3.4.1 on gentoo.
When i try to install the 'rgeos' package, i get this:



> install.packages("rgeos")
Installing package into ‘/home/jody/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://stat.ethz.ch/CRAN/src/contrib/rgeos_0.4-2.tar.gz'
Content type 'application/x-gzip' length 255244 bytes (249 KB)
==================================================
downloaded 249 KB

* installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: x86_64-pc-linux-gnu-gcc
configure: CXX: x86_64-pc-linux-gnu-g++
configure: rgeos: 0.4-2
checking for /usr/bin/svnversion... yes
configure: svn revision: 581
checking for geos-config... no
no
configure: error: geos-config not found or not executable.
ERROR: configuration failed for package ‘rgeos’
* removing ‘/home/jody/R/x86_64-pc-linux-gnu-library/3.4/rgeos’

The downloaded source packages are in
‘/tmp/RtmppEeDps/downloaded_packages’
Warning message:
In install.packages("rgeos") :
installation of package ‘rgeos’ had non-zero exit status


(The same happens if i try to install rgeos on gentoo with R 3.5.1, and also on Centos 7.5 with R 3.5.1.)



While there is a rgeos/configure which is executable in the tar file mentioned above, there is indeed no geos-config in there.



How can i get the rgeos package installed?



Is there perhaps a binary version which i could download?










share|improve this question
















I am running R 3.4.1 on gentoo.
When i try to install the 'rgeos' package, i get this:



> install.packages("rgeos")
Installing package into ‘/home/jody/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://stat.ethz.ch/CRAN/src/contrib/rgeos_0.4-2.tar.gz'
Content type 'application/x-gzip' length 255244 bytes (249 KB)
==================================================
downloaded 249 KB

* installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: x86_64-pc-linux-gnu-gcc
configure: CXX: x86_64-pc-linux-gnu-g++
configure: rgeos: 0.4-2
checking for /usr/bin/svnversion... yes
configure: svn revision: 581
checking for geos-config... no
no
configure: error: geos-config not found or not executable.
ERROR: configuration failed for package ‘rgeos’
* removing ‘/home/jody/R/x86_64-pc-linux-gnu-library/3.4/rgeos’

The downloaded source packages are in
‘/tmp/RtmppEeDps/downloaded_packages’
Warning message:
In install.packages("rgeos") :
installation of package ‘rgeos’ had non-zero exit status


(The same happens if i try to install rgeos on gentoo with R 3.5.1, and also on Centos 7.5 with R 3.5.1.)



While there is a rgeos/configure which is executable in the tar file mentioned above, there is indeed no geos-config in there.



How can i get the rgeos package installed?



Is there perhaps a binary version which i could download?







r package gentoo






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 11:54









sai saran

356224




356224










asked Nov 20 '18 at 8:45









user1479670user1479670

4101514




4101514








  • 2





    From the package's DESCRIPTION: "The 'GEOS' library is external to the package, and, when installing the package from source, must be correctly installed first." The GEOS website is here, and they claim Gentoo has a binary package for GEOS, but right now the website seems to be down (see here)

    – duckmayr
    Nov 20 '18 at 8:51














  • 2





    From the package's DESCRIPTION: "The 'GEOS' library is external to the package, and, when installing the package from source, must be correctly installed first." The GEOS website is here, and they claim Gentoo has a binary package for GEOS, but right now the website seems to be down (see here)

    – duckmayr
    Nov 20 '18 at 8:51








2




2





From the package's DESCRIPTION: "The 'GEOS' library is external to the package, and, when installing the package from source, must be correctly installed first." The GEOS website is here, and they claim Gentoo has a binary package for GEOS, but right now the website seems to be down (see here)

– duckmayr
Nov 20 '18 at 8:51





From the package's DESCRIPTION: "The 'GEOS' library is external to the package, and, when installing the package from source, must be correctly installed first." The GEOS website is here, and they claim Gentoo has a binary package for GEOS, but right now the website seems to be down (see here)

– duckmayr
Nov 20 '18 at 8:51












1 Answer
1






active

oldest

votes


















1














I found the solution.



The "rgeos" package depends on libraries you have to install before running R.



In gentoo i had to do:



sudo emerge --ask sci-libs/geos


In CentOS:



sudo yum install geos geos-devel


After installing these libraries i started R and could install the 'rgeos' package without problems






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53389181%2finstalling-the-r-package-rgeos-on-linux-geos-config-not-found-or-not-executab%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    I found the solution.



    The "rgeos" package depends on libraries you have to install before running R.



    In gentoo i had to do:



    sudo emerge --ask sci-libs/geos


    In CentOS:



    sudo yum install geos geos-devel


    After installing these libraries i started R and could install the 'rgeos' package without problems






    share|improve this answer




























      1














      I found the solution.



      The "rgeos" package depends on libraries you have to install before running R.



      In gentoo i had to do:



      sudo emerge --ask sci-libs/geos


      In CentOS:



      sudo yum install geos geos-devel


      After installing these libraries i started R and could install the 'rgeos' package without problems






      share|improve this answer


























        1












        1








        1







        I found the solution.



        The "rgeos" package depends on libraries you have to install before running R.



        In gentoo i had to do:



        sudo emerge --ask sci-libs/geos


        In CentOS:



        sudo yum install geos geos-devel


        After installing these libraries i started R and could install the 'rgeos' package without problems






        share|improve this answer













        I found the solution.



        The "rgeos" package depends on libraries you have to install before running R.



        In gentoo i had to do:



        sudo emerge --ask sci-libs/geos


        In CentOS:



        sudo yum install geos geos-devel


        After installing these libraries i started R and could install the 'rgeos' package without problems







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 20 '18 at 8:57









        user1479670user1479670

        4101514




        4101514
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53389181%2finstalling-the-r-package-rgeos-on-linux-geos-config-not-found-or-not-executab%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Xamarin.form Move up view when keyboard appear

            Post-Redirect-Get with Spring WebFlux and Thymeleaf

            Anylogic : not able to use stopDelay()