Hi friends, I was trying to install RJSONIO in Ubuntu10.04 LTS but unfortunately ends up with following error.
trying URL 'http://stat.ethz.ch/CRAN/src/contrib/RJSONIO_0.98-1.tar.gz' Content type 'application/x-gzip' length 1150673 bytes (1.1 Mb) opened URL ================================================== downloaded 1.1 Mb * installing *source* package RJSONIO ... Trying to find libjson.h header file checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed USE_LOCAL = "" Minor Version: 4 Using local libjson code. Copying files from src/libjson/Source /tmp/RtmpsdS7Dh/R.INSTALL327b23c6/RJSONIO JSONAllocator.cpp JSONChildren.cpp JSONDebug.cpp JSONIterators.cpp JSONMemory.cpp JSONNode.cpp JSONNode_Mutex.cpp JSONPreparse.cpp JSONStream.cpp JSONValidator.cpp JSONWorker.cpp JSONWriter.cpp JSON_Base64.cpp internalJSONNode.cpp libjson.cpp configure: creating ./config.status config.status: creating src/Makevars config.status: creating cleanup ** libs gcc -std=gnu99 -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c ConvertUTF.c -o ConvertUTF.o g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONAllocator.cpp -o JSONAllocator.o In file included from libjson/Source/JSONAllocator.h:4, from JSONAllocator.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONChildren.cpp -o JSONChildren.o In file included from libjson/Source/JSONMemory.h:6, from libjson/Source/JSONChildren.h:6, from JSONChildren.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONDebug.cpp -o JSONDebug.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from JSONDebug.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONIterators.cpp -o JSONIterators.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSONNode.h:4, from JSONIterators.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONMemory.cpp -o JSONMemory.o In file included from libjson/Source/JSONMemory.h:6, from JSONMemory.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONNode.cpp -o JSONNode.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSONNode.h:4, from JSONNode.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONNode_Mutex.cpp -o JSONNode_Mutex.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSONNode.h:4, from JSONNode_Mutex.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONPreparse.cpp -o JSONPreparse.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSONPreparse.h:4, from JSONPreparse.cpp:10: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONStream.cpp -o JSONStream.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSONStream.h:4, from JSONStream.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONValidator.cpp -o JSONValidator.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSONValidator.h:4, from JSONValidator.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONWorker.cpp -o JSONWorker.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSONNode.h:4, from libjson/Source/JSONWorker.h:4, from JSONWorker.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSONWriter.cpp -o JSONWriter.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSONNode.h:4, from JSONWriter.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSON_Base64.cpp -o JSON_Base64.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/JSON_Base64.h:4, from JSON_Base64.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition gcc -std=gnu99 -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c JSON_parser.c -o JSON_parser.o gcc -std=gnu99 -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c RJSON.c -o RJSON.o g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c internalJSONNode.cpp -o internalJSONNode.o In file included from libjson/Source/JSONDefs.h:10, from libjson/Source/JSONDebug.h:4, from libjson/Source/internalJSONNode.h:4, from internalJSONNode.cpp:1: libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c libjson.cpp -o libjson.o In file included from libjson/Source/../Source/JSONDefs.h:10, from libjson/Source/../libjson.h:4, from libjson.cpp:8: libjson/Source/../Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition libjson/Source/../Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition gcc -std=gnu99 -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -fpic -g -O2 -c rlibjson.c -o rlibjson.o In file included from ./libjson/Source/JSONDefs.h:10, from ./libjson/libjson.h:4, from rlibjson.c:1: ./libjson/Source/../JSONOptions.h:120:1: warning: "JSON_STREAM" redefined <command-line>: warning: this is the location of the previous definition ./libjson/Source/../JSONOptions.h:256:1: warning: "JSON_VALIDATE" redefined <command-line>: warning: this is the location of the previous definition g++ -shared -o RJSONIO.so ConvertUTF.o JSONAllocator.o JSONChildren.o JSONDebug.o JSONIterators.o JSONMemory.o JSONNode.o JSONNode_Mutex.o JSONPreparse.o JSONStream.o JSONValidator.o JSONWorker.o JSONWriter.o JSON_Base64.o JSON_parser.o RJSON.o internalJSONNode.o libjson.o rlibjson.o -L/usr/lib/R/lib -lR ** R ** inst ** preparing package for lazy loading Warning in matchSignature(signature, fdef, where) : in the method signature for function "isValidJSON" no definition for class: AsIs Warning in matchSignature(signature, fdef, where) : in the method signature for function "isValidJSON" no definition for class: connection Error in conformMethod(signature, mnames, fnames, f, fdef, definition) : In method for function "toJSON": formal arguments omitted in the method definition cannot be in the signature (.escapeEscapes = "NA") Error : unable to load R code in package 'RJSONIO' ERROR: lazy loading failed for package RJSONIO * removing /usr/local/lib/R/site-library/RJSONIO The downloaded packages are in /tmp/Rtmpu4cqIq/downloaded_packages Warning message: In install.packages("RJSONIO") : installation of package 'RJSONIO' had non-zero exit status > Can you please suggest whats going wrong here? Regards, mlsc [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.