Context:Linux debian testing, compiled R 1.9.0 from source. I've just installed the contributed ffnet package wit no problem at all. But when loading the library the following error message is popping up and no ffnet command seems to work:>library("ffnet")Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "/usr/local/lib/R/library/ffnet/libs/ffnet.so": libstdc++.so.2.8: cannot open shared object file: No such file or directory Error in library("ffnet") : .First.lib failed ...................... What should I do? Ciao Vittorio
On Mon, May 31, 2004 at 09:38:54PM +0200, v.demartino2 at virgilio.it wrote:> Context:Linux debian testing, compiled R 1.9.0 from source. > > I've just installed the contributed ffnet package wit no problem at all."No problem at all" seems unlikely in light of ...> But when loading the library the following error message is popping up and > no ffnet command seems to work: > > >library("ffnet") > Error in dyn.load(x, as.logical(local), as.logical(now)) : > unable to load shared library "/usr/local/lib/R/library/ffnet/libs/ffnet.so": > libstdc++.so.2.8: cannot open shared object file: No such file or directory > Error in library("ffnet") : .First.lib failed... this. Are you sure ffnet really built? Dirk -- FEATURE: VW Beetle license plate in California
Given that those files are dated 27/06/2000, they are unlikely to work with the current version of R. (R has changed quite a bit since 2000!!) Don't know why/how the code depends on NR codes, as one can find better quality code in many instances. It might not be too difficult to get rid of the dependency on NR codes. BTW, why not use nnet in the VR bundle? (Obviously I have not looked at ffnet at all...) Best, Andy> From: Dirk Eddelbuettel > > On Mon, May 31, 2004 at 10:38:37PM +0200, > v.demartino2 at virgilio.it wrote: > > > > >> > > >> I've just installed the contributed ffnet package wit no > problem at all. > > > > > >"No problem at all" seems unlikely in light of ... > > > > Dirk, > > > > You're right! > > Here you are what happened: > > > > desktop:/tmp# R INSTALL -l /usr/local/lib/R/library ffnet/ > > * Installing *source* package 'ffnet' ... > > ** libs > > make: Nothing to be done for `all'. > > ** R > > ** help > > >>> Building/Updating help pages for package 'ffnet' > > Formats: text html latex example > > ...................................................... > > ...................................................... > > > > And the compilation of ffnet commands kept going on as > though there had > > been no problems.... This was somewhat misleading to a newbye!! > > > > Anyway, what steps should I take now? > > Don't know, sorry. But looking at the comment in >http://cran.r-project.org/contrib/extra/ffnet/ReadMe it would appear that one needs additional sources to build ffnet. Also, if the package built reliably, it would probably reside in the main part of CRAN rather than in the contrib/extra directory. Dirk -- FEATURE: VW Beetle license plate in California ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> > >Given that those files are dated 27/06/2000, they are unlikely to work with >the current version of R. (R has changed quite a bit since 2000!!) > >In fact, I stopped to support ffnet in 2000, and I would be very surprised if it would still run under the newer versions of R.>Don't know why/how the code depends on NR codes, as one can find better >quality code in many instances. It might not be too difficult to get rid of >the dependency on NR codes. > >The underlying c++ code of ffnet has been programmed around 1996 at a time when the capabilities of R to do multidimensional optimization through an API where rather limited. Hence my decision at that time to base the code on Numerical Recipes. But from today's perspective, it would be much better to call the optimizers from optim() through the API.>BTW, why not use nnet in the VR bundle? (Obviously I have not looked at >ffnet at all...) > >I also suggest you use nnet.>Best, >Andy > > > >>> From: Dirk Eddelbuettel >>> >>> On Mon, May 31, 2004 at 10:38:37PM +0200, >>> v.demartino2 at virgilio.it wrote: >> >> >>>> > >>> >>> >>>>>> > >> >>>>>> > >> I've just installed the contributed ffnet package wit no >>>>> >>>>> >>> problem at all. >> >> >>>>> > > >>>>> > >"No problem at all" seems unlikely in light of ... >>>> >>>> >>>> > >>>> > Dirk, >>>> > >>>> > You're right! >>>> > Here you are what happened: >>>> > >>>> > desktop:/tmp# R INSTALL -l /usr/local/lib/R/library ffnet/ >>>> > * Installing *source* package 'ffnet' ... >>>> > ** libs >>>> > make: Nothing to be done for `all'. >>>> > ** R >>>> > ** help >>>> > >>> Building/Updating help pages for package 'ffnet' >>>> > Formats: text html latex example >>>> > ...................................................... >>>> > ...................................................... >>>> > >>>> > And the compilation of ffnet commands kept going on as >>> >>> >>> though there had >> >> >>>> > been no problems.... This was somewhat misleading to a newbye!! >>>> > >>>> > Anyway, what steps should I take now? >>> >>> >>> >>> Don't know, sorry. But looking at the comment in >>> >> >> > http://cran.r-project.org/contrib/extra/ffnet/ReadMe > >it would appear that one needs additional sources to build ffnet. Also, if >the package built reliably, it would probably reside in the main part of >CRAN rather than in the contrib/extra directory. > >Numerical Recipes in C and apply the patches provided by ffnet (But I am not sure if the patches still work with newer versions of NRC).>Dirk > > -- FEATURE: VW Beetle license plate in California > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read > the posting guide! http://www.R-project.org/posting-guide.html >best Adrian