{"id":943,"date":"2022-05-24T15:50:09","date_gmt":"2022-05-24T22:50:09","guid":{"rendered":"http:\/\/cronopio.space\/?p=943"},"modified":"2022-05-24T15:50:14","modified_gmt":"2022-05-24T22:50:14","slug":"installing-rglpk-on-centos-7","status":"publish","type":"post","link":"https:\/\/cronopio.space\/?p=943","title":{"rendered":"Installing Rglpk on CentOS 7"},"content":{"rendered":"\n<p>Rglpk is an R library that links the GLPK package with R interface. This package is required by the igraph package to perform cluster optimization tasks. Due to some CRAN policy update, the embedded GLPK in igraph (and Rglpk) is removed, and users can not longer get GLPK installed with a simple R installation command. <\/p>\n\n\n\n<p>So here is the solution from stackoverflow:<\/p>\n\n\n\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/25114771\/glpk-no-such-file-or-directory-error-when-trying-to-install-r-package\">https:\/\/stackoverflow.com\/questions\/25114771\/glpk-no-such-file-or-directory-error-when-trying-to-install-r-package<\/a><\/p>\n\n\n\n<p>Install GLPK in a local directory:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code lang=\"bash\" class=\"language-bash\">wget http:\/\/ftp.gnu.org\/gnu\/glpk\/glpk-4.54.tar.gz\ntar xfzv glpk-4.54.tar.gz\nmkdir GLPK\ncd glpk-4.54\n.\/configure --prefix=\/home\/&lt;username&gt;\/GLPK\nmake\nmake install\n<\/code><\/pre>\n\n\n\n<p>Install Rglpk (0.6-3):<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code lang=\"bash\" class=\"language-bash\">cd ~\nwget http:\/\/cran.r-project.org\/src\/contrib\/Rglpk_0.6-4.tar.gz\nexport LIBRARY_PATH=\/home\/&lt;username>\/GLPK\/lib\nexport LD_LIBRARY_PATH=\/home\/&lt;username>\/GLPK\/lib\nexport CPATH=\/home\/&lt;username>\/GLPK\/include\nR CMD INSTALL Rglpk_0.6-4.tar.gz<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rglpk is an R library that links the GLPK package with  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/cronopio.space\/?p=943\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cInstalling Rglpk on CentOS 7\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[],"class_list":["post-943","post","type-post","status-publish","format-standard","hentry","category-research"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/cronopio.space\/index.php?rest_route=\/wp\/v2\/posts\/943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cronopio.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cronopio.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cronopio.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cronopio.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=943"}],"version-history":[{"count":4,"href":"https:\/\/cronopio.space\/index.php?rest_route=\/wp\/v2\/posts\/943\/revisions"}],"predecessor-version":[{"id":947,"href":"https:\/\/cronopio.space\/index.php?rest_route=\/wp\/v2\/posts\/943\/revisions\/947"}],"wp:attachment":[{"href":"https:\/\/cronopio.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cronopio.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cronopio.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}