Re: [igraph] glpk_not_available

2018-03-19 Thread Gábor Csárdi
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.

On Mon, Mar 19, 2018 at 7:41 AM, Harun Pirim  wrote:
> 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
> ___
> igraph-help mailing list
> igraph-help@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/igraph-help

___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


Re: [igraph] glpk_not_available

2018-03-19 Thread Szabolcs Horvát
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.

On 19 March 2018 at 08:41, Harun Pirim  wrote:

> 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
> ___
> igraph-help mailing list
> igraph-help@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


Re: [igraph] glpk_not_available

2018-03-19 Thread Harun Pirim
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

> On 19 Mar 2018, at 11:02, Gregory Jefferis  wrote:
> 
> 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.
> 
> On 19 Mar 2018, at 07:41, Harun Pirim  > wrote:
> 
>> 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  
>> ___
>> igraph-help mailing list
>> igraph-help@nongnu.org 
>> https://lists.nongnu.org/mailman/listinfo/igraph-help 
>> 
> ___
> igraph-help mailing list
> igraph-help@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/igraph-help

___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


Re: [igraph] glpk_not_available

2018-03-19 Thread 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.

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.

> On 19 Mar 2018, at 07:41, Harun Pirim  wrote:
> 
> 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  
> ___
> igraph-help mailing list
> igraph-help@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/igraph-help
___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


[igraph] glpk_not_available

2018-03-19 Thread Harun Pirim
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  
___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help