From Manuel.A.Morales at williams.edu  Sun Aug  5 03:13:57 2007
From: Manuel.A.Morales at williams.edu (Manuel Morales)
Date: Sat, 04 Aug 2007 21:13:57 -0400
Subject: [Rd] Optimization in R
In-Reply-To: <20070804203740.GD16431@econ.upenn.edu>
References: <20070804051231.GB3016@econ.upenn.edu>
	<46B47E53.2040801@stats.uwo.ca>
	<1186257513.3966.8.camel@mrubra.localdomain>
	<20070804203740.GD16431@econ.upenn.edu>
Message-ID: <1186276437.3966.13.camel@mrubra.localdomain>

On Sat, 2007-08-04 at 16:37 -0400, Andrew Clausen wrote:
> Hi Manuel,
> 
> My multimin() wrapper will be merged into the Rgsl package.  I expect that the
> wrapper doesn't do anything special (compared to the rest of Rgsl) to break the
> compilation -- you're just having trouble with my very crude and temporary
> Makefile.
> 
> Does Rgsl work for you?

I did see a package rgsl on google but I assume you mean the package gsl
- gsl does work for me.

> If it does, you can probably just copy the relevant files into the right spot,
> and build Rgsl the normal way.  (i.e. *.[ch] into src/, *.R into R/, and so
> on...)

I get the same error message (embedded in the log file
'gsl.Rcheck/00install.out'). I'll just wait for the updated package to
be released ...

Thanks again!

> Cheers,
> Andrew
> 
> On Sat, Aug 04, 2007 at 03:58:33PM -0400, Manuel Morales wrote:
> > I tried installing the multimin function. To get it to compile, I needed
> > to change the Makefile to reflect my path and by adding the flags fPIC
> > in response to the error: "/usr/bin/ld: vector.o: relocation R_X86_64_32
> > against `a local symbol' can not be used when making a shared object;
> > recompile with -fPIC"
> > 
> > However, I get the following running test.R:
> > 
> > Error in dyn.load(x, as.logical(local), as.logical(now)) : 
> >         unable to load shared library '/home/mmorales/Desktop/multimin/gsl.so':
> >   /usr/lib64/libgsl.so.0: undefined symbol: cblas_ctrmv
> > 
> > I'm running R-2.5.1 compiled for x86_64 with a custom built ATLAS.
-- 
http://mutualism.williams.edu


[Rd] Optimization in R
Manuel Morales