gragusa / lyapunov

Solve discrete time sylvester equation in R
0 stars 5 forks source link

Problem installing... #1

Open shokru opened 7 years ago

shokru commented 7 years ago

Dear Giuseppe,

my apologies for disturbing, but even after requesting devtools, I get this error message:

devtools::install_github("gragusa/lyapunov") Downloading GitHub repo gragusa/lyapunov@master from URL https://api.github.com/repos/gragusa/lyapunov/zipball/master Erreur : Could not find build tools necessary to build lyapunov

Would you know how to solve it? Many thanks,

Guillaume

gragusa commented 7 years ago

I think you need a FORTRAN compiler installed. If you are using ubuntu install the build-essential package. If you are on windows as I suspect you have to have a tool chain installed.

shokru commented 7 years ago

Dear Giuseppe,

thank you for your reply. I'll will try & see. Regards,

GC

On Thu, Apr 27, 2017 at 12:49 AM, Giuseppe Ragusa notifications@github.com wrote:

I think you need a FORTRAN compiler installed. If you are using ubuntu install the build-essential package. If you are on windows as I suspect you have to have a tool chain installed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gragusa/lyapunov/issues/1#issuecomment-297563377, or mute the thread https://github.com/notifications/unsubscribe-auth/ALXAp5jeuDDTbjA0cm5Znx0O8CjkFxrpks5rz8n7gaJpZM4M5u6P .

MaxMillerLab commented 6 years ago

Giuseppe,

Thanks for posting! I'm having some trouble installing. I have all the necessary tools installed, but I'm getting this error,

screen shot 2018-03-27 at 3 16 34 pm

Any ideas with how to move past this? Thank you for your time!

Max

gragusa commented 6 years ago

Which fortran are you using? I am guessing from the errors, you are on OSX. Is it correct? Which version of OSX?

MaxMillerLab commented 6 years ago

Good catch! I'm on OSX-High Sierra, the newest Mac update. And I have GNU Fortran (GCC) 4.2.3. Thanks for your help!

gragusa commented 6 years ago

I think you need a newer gfortran. (R 3.4.0 El Capitan binaries are using Clang 4.0.0 and GNU Fortran 6.1 to provide OpenMP parallelization support and C++17 standard features.) For instance, on my machine I have

GNU Fortran (Homebrew GCC 7.3.0_1) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
R 3.4.0 El Capitan binaries are using Clang 4.0.0 and GNU Fortran 6.1 to provide OpenMP parallelization support and C++17 standard features. If you want to compile R packages from sources, please download GNU Fortran binary from the official GNU Fortran Binaries page - in particular OS X 10.11 gfortran 6.1. We are also providing Clang 4.0.0 binaries for OS X 10.11 and higher in our libs directory (note that the offical Clang 4.0.0 binaries only support macOS 10.12) and will provide an Apple Installer package here soon.