[R] error in R CMD build when editing c function in R package

moli nirdong at gmail.com
Tue Jan 31 07:21:53 CET 2012


I have modified a C function in the `phmm` package. Now I want to rebuild the
package, but the following error occurred. How can I fix the error?
  

    $ cd ~/Desktop/phmmw
    $ R CMD build phmm
    * checking for file ‘phmm/DESCRIPTION’ ... OK
    * preparing ‘phmm’:
    * checking DESCRIPTION meta-information ... OK
    * cleaning src
    * installing the package to re-build vignettes
          -----------------------------------
    * installing *source* package ‘phmm’ ...
    ** libs
    *** arch - x86_64
    gcc-4.2 -arch x86_64 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/x86_64 
-I/usr/local/include    -fPIC  -g -O2 -c arms.c -o arms.o
    make: gcc-4.2: No such file or directory
    make: *** [arms.o] Error 1
    ERROR: compilation failed for package ‘phmm’
    * removing
‘/private/var/folders/r0/9qv15p6j59j6jtfq775k6j380000gn/T/RtmpIPgvDE/Rinst48317ea7/phmm’
          -----------------------------------
    ERROR: package installation failed

--
View this message in context: http://r.789695.n4.nabble.com/error-in-R-CMD-build-when-editing-c-function-in-R-package-tp4343619p4343619.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list