## Hello.. I have asked a similar question, but this is not fixed as before. ## I am running the following using Ubuntu OS: R version 2.13.1 (2011-07-08) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-pc-linux-gnu (64-bit) ## when I do this:> install.packages("mapproj", dependencies=T)## I get this: Installing package(s) into ‘/home/brad/R/x86_64-pc-linux-gnu-library/2.13’ (as ‘lib’ is unspecified) also installing the dependency ‘maps’ trying URL 'http://cran.case.edu/src/contrib/maps_2.1-6.tar.gz' Content type 'application/x-gzip' length 1371854 bytes (1.3 Mb) opened URL =================================================downloaded 1.3 Mb trying URL 'http://cran.case.edu/src/contrib/mapproj_1.1-8.3.tar.gz' Content type 'application/x-gzip' length 23955 bytes (23 Kb) opened URL =================================================downloaded 23 Kb * installing *source* package ‘maps’ ... ** libs ** arch - gcc -std=gnu99 -O3 -pipe -g Gmake.c -o Gmake Gmake.c: In function ‘get_lh’: Gmake.c:111: warning: cast from pointer to integer of different size Gmake.c:113: warning: cast from pointer to integer of different size Gmake.c: In function ‘main’: Gmake.c:211: warning: cast from pointer to integer of different size Gmake.c:214: warning: cast from pointer to integer of different size Gmake.c:217: warning: cast from pointer to integer of different size Gmake.c:219: warning: cast from pointer to integer of different size Gmake.c:221: warning: cast from pointer to integer of different size Gmake.c:224: warning: cast from pointer to integer of different size Gmake.c:227: warning: cast from pointer to integer of different size gcc -std=gnu99 -O3 -pipe -g Lmake.c -o Lmake Lmake.c: In function ‘main’: Lmake.c:223: warning: cast from pointer to integer of different size Lmake.c:228: warning: cast from pointer to integer of different size Lmake.c:230: warning: cast from pointer to integer of different size Lmake.c:232: warning: cast from pointer to integer of different size Lmake.c:235: warning: cast from pointer to integer of different size Converting world to world2 f convert.awk < world.line > world2.line /bin/bash: f: command not found make: [world2.line] Error 127 (ignored) make county.L state.L usa.L nz.L world.L world2.L italy.L france.L make[1]: Entering directory `/tmp/RtmpssTER5/R.INSTALL21eb6525/maps/src' ./Lmake 0 s b county.line county.linestats ../inst/mapdata/county.L ./Lmake 0 s b state.line state.linestats ../inst/mapdata/state.L ./Lmake 0 s b usa.line usa.linestats ../inst/mapdata/usa.L ./Lmake 0 s b nz.line nz.linestats ../inst/mapdata/nz.L ./Lmake 0 s b world.line world.linestats ../inst/mapdata/world.L ./Lmake 0 s b world2.line world2.linestats ../inst/mapdata/world2.L Cannot read left and right at line 1 make[1]: *** [world2.L] Error 1 make[1]: Leaving directory `/tmp/RtmpssTER5/R.INSTALL21eb6525/maps/src' make: *** [ldata] Error 2 ERROR: compilation failed for package ‘maps’ * removing ‘/home/brad/R/x86_64-pc-linux-gnu-library/2.13/maps’ ERROR: dependency ‘maps’ is not available for package ‘mapproj’ * removing ‘/home/brad/R/x86_64-pc-linux-gnu-library/2.13/mapproj’ The downloaded packages are in ‘/tmp/RtmpwXL9El/downloaded_packages’ Warning messages: 1: In install.packages("mapproj", dependencies = T) : installation of package 'maps' had non-zero exit status 2: In install.packages("mapproj", dependencies = T) : installation of package 'mapproj' had non-zero exit status>## Any idea as to why? this also happens when I try to install the 'maps' package -- View this message in context: http://r.789695.n4.nabble.com/installation-of-package-mapproj-had-non-zero-exit-status-tp3662940p3662940.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]]
Ray Brownrigg
2011-Jul-13 04:25 UTC
[R] installation of package 'mapproj' had non-zero exit status
On Wed, 13 Jul 2011, B77S wrote:> ## Hello.. I have asked a similar question, but this is not fixed as > before. > > ## I am running the following using Ubuntu OS: > > R version 2.13.1 (2011-07-08) > Copyright (C) 2011 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > Platform: x86_64-pc-linux-gnu (64-bit) > > ## when I do this: > > install.packages("mapproj", dependencies=T) > > ## I get this: > > Installing package(s) into > ???/home/brad/R/x86_64-pc-linux-gnu-library/2.13??? (as ???lib??? is > unspecified) > also installing the dependency ???maps??? > > trying URL 'http://cran.case.edu/src/contrib/maps_2.1-6.tar.gz' > Content type 'application/x-gzip' length 1371854 bytes (1.3 Mb) > opened URL > =================================================> downloaded 1.3 Mb > > trying URL 'http://cran.case.edu/src/contrib/mapproj_1.1-8.3.tar.gz' > Content type 'application/x-gzip' length 23955 bytes (23 Kb) > opened URL > =================================================> downloaded 23 Kb > > * installing *source* package ???maps??? ... > ** libs > ** arch - > gcc -std=gnu99 -O3 -pipe -g Gmake.c -o Gmake > Gmake.c: In function ???get_lh???: > Gmake.c:111: warning: cast from pointer to integer of different size > Gmake.c:113: warning: cast from pointer to integer of different size > Gmake.c: In function ???main???: > Gmake.c:211: warning: cast from pointer to integer of different size > Gmake.c:214: warning: cast from pointer to integer of different size > Gmake.c:217: warning: cast from pointer to integer of different size > Gmake.c:219: warning: cast from pointer to integer of different size > Gmake.c:221: warning: cast from pointer to integer of different size > Gmake.c:224: warning: cast from pointer to integer of different size > Gmake.c:227: warning: cast from pointer to integer of different size > gcc -std=gnu99 -O3 -pipe -g Lmake.c -o Lmake > Lmake.c: In function ???main???: > Lmake.c:223: warning: cast from pointer to integer of different size > Lmake.c:228: warning: cast from pointer to integer of different size > Lmake.c:230: warning: cast from pointer to integer of different size > Lmake.c:232: warning: cast from pointer to integer of different size > Lmake.c:235: warning: cast from pointer to integer of different size > Converting world to world2 > f convert.awk < world.line > world2.line > /bin/bash: f: command not foundHere's the problem (did you not see this?). That line should read: awk -f convert.awk < world.line > world2.line So check that you have awk installed. I can't think what else could cause this. Note the maps package does pass the package check test for Linux x86_64, but only r-patched (not r- release) is recorded on the web site as having been tested. See http://cran.r-project.org/web/checks/check_summary.html Hope this helps, Ray Brownrigg> make: [world2.line] Error 127 (ignored) > make county.L state.L usa.L nz.L world.L world2.L italy.L france.L > make[1]: Entering directory `/tmp/RtmpssTER5/R.INSTALL21eb6525/maps/src' > ./Lmake 0 s b county.line county.linestats ../inst/mapdata/county.L > ./Lmake 0 s b state.line state.linestats ../inst/mapdata/state.L > ./Lmake 0 s b usa.line usa.linestats ../inst/mapdata/usa.L > ./Lmake 0 s b nz.line nz.linestats ../inst/mapdata/nz.L > ./Lmake 0 s b world.line world.linestats ../inst/mapdata/world.L > ./Lmake 0 s b world2.line world2.linestats ../inst/mapdata/world2.L > Cannot read left and right at line 1 > make[1]: *** [world2.L] Error 1 > make[1]: Leaving directory `/tmp/RtmpssTER5/R.INSTALL21eb6525/maps/src' > make: *** [ldata] Error 2 > ERROR: compilation failed for package ???maps??? > * removing ???/home/brad/R/x86_64-pc-linux-gnu-library/2.13/maps??? > ERROR: dependency ???maps??? is not available for package ???mapproj??? > * removing ???/home/brad/R/x86_64-pc-linux-gnu-library/2.13/mapproj??? > > The downloaded packages are in > ???/tmp/RtmpwXL9El/downloaded_packages??? > Warning messages: > 1: In install.packages("mapproj", dependencies = T) : > installation of package 'maps' had non-zero exit status > 2: In install.packages("mapproj", dependencies = T) : > installation of package 'mapproj' had non-zero exit status > > > > > > ## Any idea as to why? this also happens when I try to install the 'maps' > package > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/installation-of-package-mapproj-had-non-zero > -exit-status-tp3662940p3662940.html Sent from the R help mailing list > archive at Nabble.com. > [[alternative HTML version deleted]]