2015-10-22 1 views
0

J'essaye d'installer le paquet de Rsymphony sur R sur Mac OSX. Je reçois l'erreur suivante:L'installation de Rsymphony OSX a échoué

install.packages("Rsymphony") 
Package which is only available in source form, and may need 
    compilation of C/C++/Fortran: 'Rsymphony' 
Do you want to attempt to install these from sources? 
y/n: y 
installing the source package 'Rsymphony' 

trying URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/Rsymphony_0.1-21.tar.gz' 
Content type 'application/x-gzip' length 7429 bytes 
================================================== 
downloaded 7429 bytes 

During startup - Warning messages: 
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
* installing *source* package 'Rsymphony' ... 
** package 'Rsymphony' successfully unpacked and MD5 sums checked 
Cannot find SYMPHONY libraries and headers. 
See <https://projects.coin-or.org/SYMPHONY>. 
ERROR: configuration failed for package 'Rsymphony' 
* removing '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsymphony' 

The downloaded source packages are in 
    '/private/var/folders/0n/03x0y52j51q5fsfm3_g8bc000000gn/T/RtmpL7916v/downloaded_packages' 
Warning message: 
In install.packages("Rsymphony") : 
    installation of package 'Rsymphony' had non-zero exit status 

Ce paquet est requis pour l'installation du paquet "fPortfolio". Des indices sur une solution possible?

+0

Il est clairement écrit 'Vous ne trouvez pas les bibliothèques SYMPHONY et headers.' –

+0

Oui, comment les obtenir? – HasnainMamdani

+0

Encore une fois, lisez le message d'erreur. C'est clairement écrit. Astuce: recherchez la ligne commençant par 'See

Répondre

0

Après essai et erreur, enfin je trouve comment installer Rsymphony dans OSX

installer dépôt coinor pour BREW dans le terminal

~$ brew tap coin-or-tools/coinor 

installer symphonie par infusion dans le terminal

~$ brew install symphony 

installer Rsymphony sous la ligne de commande R

> install.packages("Rsymphony") 

Hope this helps ^^

+1

J'aurais imaginé que le dernier soit fait à la ligne de commande R donc ça devrait probablement ressembler à '> install.packages (" Rsymphony ")' pour le distinguer d'une commande de console Terminal. –

+0

@smalltown J'ai installé symphony en utilisant homebrew et il fonctionne à partir de la ligne de commande, mais je reçois toujours l'erreur ci-dessus. Aucune suggestion? – rrs