From clausen at econ.upenn.edu  Sat Aug  4 22:37:41 2007
From: clausen at econ.upenn.edu (Andrew Clausen)
Date: Sat, 4 Aug 2007 16:37:41 -0400
Subject: [Rd] Optimization in R
In-Reply-To: <1186257513.3966.8.camel@mrubra.localdomain>
References: <20070804051231.GB3016@econ.upenn.edu>
	<46B47E53.2040801@stats.uwo.ca>
	<1186257513.3966.8.camel@mrubra.localdomain>
Message-ID: <20070804203740.GD16431@econ.upenn.edu>

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?

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...)

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.



[Rd] Optimization in R
Andrew Clausen