J'ai vraiment du mal à installer une bibliothèque R qui nécessite une compilation en C. J'utilise une machine Mac OSX Snow Leopard et je tente d'installer ce paquet R (here).getline sur le compilateur C écrasant MacOSX 10.6?
J'ai regardé the thread en parlant de getline sur les macs et j'ai essayé quelques-uns de ces correctifs, mais rien ne fonctionne! Je suis un débutant et je ne connais pas de C, alors c'est peut-être pourquoi! Quelqu'un peut-il me donner quelques conseils sur la façon dont je pourrais modifier les fichiers dans ce paquet pour l'installer? Anyhelp serait pathétiquement apprécié! Voilà l'erreur que je reçois:
** libs
** arch - i386
g++ -arch i386 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -D_FASTMAP -DMAQ_LONGREADS -fPIC -g -O2 -c bed2vector.C -o bed2vector.o
In file included from /usr/include/c++/4.2.1/backward/strstream:51,
from bed2vector.C:8:
/usr/include/c++/4.2.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
bed2vector.C: In function ‘int get_a_line(FILE*, BZFILE*, int, std::string&)’:
bed2vector.C:74: error: no matching function for call to ‘getline(char**, size_t*, FILE*&)’
make: *** [bed2vector.o] Error 1
chmod: /Library/Frameworks/R.framework/Resources/library/spp/libs/i386/*: No such file or directory
ERROR: compilation failed for package 'spp'
MERCI MERCI MERCI !!!! cela a fonctionné et tout a finalement été installé! J'espère que cela fonctionne (en essayant maintenant!) – user505180
Je suis très heureux que cela a fonctionné. Si mon message répond à votre question, vous devez cliquer sur la coche à gauche de celle-ci. Voir [la section "Comment poser des questions ici?"] (Http://stackoverflow.com/faq#howtoask) dans la [FAQ de StackOverflow] (http://stackoverflow.com/faq) pour plus d'informations. –