compileNimble error from r-nimble.org's example

999 views
Skip to first unread message

Ed Lucio

unread,
Mar 9, 2016, 8:04:02 AM3/9/16
to nimble-users
Hi, I just started using nimble and I am still familiarizing myself with how the package works.

I tried replicating the examples written in the website, but for some reason, I always get an error whenever the command compileNimble() is involved. 

This is the error that I am getting:

Cmodel <- compileNimble(Rmodel)


Warning message:
running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-32~1.3/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-32~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="P_2_code03_09_21_40_41.dll" WIN=64 TCLBIN=64 OBJECTS="P_2_code.o P_2_code_nfCode.o C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/RcppUtils.o C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/Utils.o C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/NamedObjects.o C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/ModelClassUtils.o C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/accessorClasses.o C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/dists.o C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/nimDists.o"' had status 127 
Error: Failed to create the shared library
In addition: Warning message:
running command 'R CMD SHLIB P_2_code.cpp P_2_code_nfCode.cpp C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/RcppUtils.cpp C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/Utils.cpp C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/NamedObjects.cpp C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/ModelClassUtils.cpp C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/accessorClasses.cpp C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/dists.cpp C:/Users/ededede/DOCUME~1/R/WIN-LI~1/3.2/nimble/CppCode/nimDists.cpp -o P_2_code03_09_21_40_41.dll' had status 1 


Perry de Valpine

unread,
Mar 9, 2016, 10:42:05 AM3/9/16
to Ed Lucio, nimble-users
Hi Ed,

Sorry to hear this is giving you the runaround.

It sounds like something is not fully installed correctly.  These can be hard for us to diagnose, but I think it has to do with your compiler and related tools (see Ch. 4 in our User Manual if you haven’t looked at that yet).  Here are some suggestions of issues we’ve seen people run into.

On Windows, when installing Rtools.exe, there may be a check box to modify the PATH, which should be checked.

On Mac, when installing Xcode, the command line tools need to be included.  Also it may be necessary to launch Xcode once on its own before using it through nimble (it may take a password when first launched).

If you try reinstalling your C++ compiler based on the above points, you may then need to reinstall nimble.

Please let us know if you’re still stuck, and also let us know if one of these seems to solve your problem so we can amass experience about issues people are running into.

Thanks
Perry


--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To post to this group, send email to nimble...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/60fcfec0-f3cd-4ecf-bfc8-dd6abadc56ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ed Lucio

unread,
Mar 10, 2016, 11:37:11 AM3/10/16
to nimble-users, luc...@gmail.com
Hi Perry,

Thank you for your reply. I finally made it working after reinstalling Rtools and other related packages. And yes, I think I did not check the proper box during the Rtools installation before.

Cheers,

Ed

Perry de Valpine

unread,
Mar 10, 2016, 1:20:33 PM3/10/16
to Ed Lucio, nimble-users
Thanks Ed.  

We have a major upcoming release (0.5), and we’ll take a look at web site and/or User Manual content to be sure these tips are easily found by future users.

Perry

Reply all
Reply to author
Forward
0 new messages