Discussion:
[igraph] glpk_not_available
Harun Pirim
2018-03-19 07:41:40 UTC
Permalink
Dear All,

I ran cluster_optimal() function and got the message:

Warning in install.packages :
package ‘GLPK’ is not available (for R version 3.4.4)

Any quick fix suggested?

thank you,

harun
Gregory Jefferis
2018-03-19 08:02:37 UTC
Permalink
The package is Rgplk not GLPK, so that’s odd. Are you trying to install this manually? If so check the package name.

As for installation, it depends on your platform. If you’re on a Mac, there’s some kind of snafu on the cran mac build machine:

https://www.r-project.org/nosvn/R.check/r-release-osx-x86_64/Rglpk-00install.html

Install Rgplk from source if you can. On windows the binary may have been unavailable during the R 3.4.3 to 3.4.4 transition. Best,

Greg.
Post by Harun Pirim
Dear All,
package ‘GLPK’ is not available (for R version 3.4.4)
Any quick fix suggested?
thank you,
harun
_______________________________________________
igraph-help mailing list
https://lists.nongnu.org/mailman/listinfo/igraph-help
Harun Pirim
2018-03-19 08:19:15 UTC
Permalink
Thank you Gregory for the reply.

I didn’t install manually. The function used to work with an older version of R. It seems an issue with transition to R 3.4.4.

I tried installing Rgplk using install.packages() which gave the error:

* installing *source* package ‘Rglpk’ ...
** package ‘Rglpk’ successfully unpacked and MD5 sums checked
** libs
/bin/sh: line 0: cd: GLPK: No such file or directory
make: *** [GLPK.ts] Error 1
ERROR: compilation failed for package ‘Rglpk’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rglpk’
Warning in install.packages :
installation of package ‘Rglpk’ had non-zero exit status


I may try installing from source, however cluster_optimal() function will not be connected to the Rgplk package right away I guess.

Regards,

Harun
Post by Gregory Jefferis
The package is Rgplk not GLPK, so that’s odd. Are you trying to install this manually? If so check the package name.
https://www.r-project.org/nosvn/R.check/r-release-osx-x86_64/Rglpk-00install.html <https://www.r-project.org/nosvn/R.check/r-release-osx-x86_64/Rglpk-00install.html>
Install Rgplk from source if you can. On windows the binary may have been unavailable during the R 3.4.3 to 3.4.4 transition. Best,
Greg.
Post by Harun Pirim
Dear All,
package ‘GLPK’ is not available (for R version 3.4.4)
Any quick fix suggested?
thank you,
harun
_______________________________________________
igraph-help mailing list
https://lists.nongnu.org/mailman/listinfo/igraph-help <https://lists.nongnu.org/mailman/listinfo/igraph-help>
_______________________________________________
igraph-help mailing list
https://lists.nongnu.org/mailman/listinfo/igraph-help
Szabolcs Horvát
2018-03-19 08:29:19 UTC
Permalink
There is a note for igraph 1.2.1:

https://cran.r-project.org/web/packages/igraph/news.html

"The GLPK library is optional, if it is not available, then the
cluster_optimal() function does not work. Unfortunately we cannot bundle
the GLPK library into igraph on CRAN any more, because CRAN maintainers
forbid the pragmas in its source code."

Gregory: I do not think this refers to Rglpk. The underlying igraph
function is implemented in C (not R!), and relies on an (older) bundled
version of the GLPK C library. The release notes seem to say that this can
no longer be included in build hosted on CRAN.
Post by Harun Pirim
Dear All,
package ‘GLPK’ is not available (for R version 3.4.4)
Any quick fix suggested?
thank you,
harun
_______________________________________________
igraph-help mailing list
https://lists.nongnu.org/mailman/listinfo/igraph-help
Gábor Csárdi
2018-03-19 09:05:50 UTC
Permalink
I suspect that you are on macOS. CRAN macOS machines do not have the
GLPK library, so igraph cannot link to it.

igraph used to have a built-in GLPK library, but that is not allowed
any more on CRAN.

For now you need to compile the package for yourself I am afraid.

This will cause a lot of problems in the future, so I am investigating
other solutions, e.g. hosting the package in another repository.

G.
Post by Harun Pirim
Dear All,
package ‘GLPK’ is not available (for R version 3.4.4)
Any quick fix suggested?
thank you,
harun
_______________________________________________
igraph-help mailing list
https://lists.nongnu.org/mailman/listinfo/igraph-help
Continue reading on narkive:
Loading...