
Thanks, Latchezar.  I wish I had known that earlier ... well, at least I learned a lot about Makefiles in the process.  Anyway, it looks like it did compile at 32-bit because here's what I get

john@john-desktop:~/LREWI15_TIO$ file swat2009_i64_calibrate.so
swat2009_i64_calibrate.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped

John Joseph

-----Original Message-----
From: Latchezar (Lucho) Dimitrov [mailto:ldimitro@wfubmc.edu]
Sent: Fri 12/3/2010 11:45 AM
To: John Joseph; Denham Robert; Davor Cubranic
Cc: r-sig-hpc@r-project.org
Subject: RE: [R-sig-hpc] trouble installing Rmpi
 
Well, make file or anything else is not enough, e.g., defaults may affect the final result. The ultimate way to tell is to look at the .so or executable, e.g. using file command.

Latchezar

From: John Joseph [mailto:John.Joseph@utsa.edu]
Sent: Thursday, December 02, 2010 9:59 PM
To: Latchezar (Lucho) Dimitrov; Denham Robert; Davor Cubranic
Cc: r-sig-hpc@r-project.org
Subject: RE: [R-sig-hpc] trouble installing Rmpi



Oh, yes, I see what you mean.  It's that the person who wrote the Makefile did so to compile on a 64-bit system and named the shared library accordingly. This concerned me initially. But I've studied the Makefile, and there's nothing I can see in it that is specific to a 64-bit system.  I used it to compile on my 32-bit system without any warning or error messages.  If you or someone else is a Makefile guru, you can see it pasted into one of my earliest posting of this thread.

Thanks for thinking about this.

John Joseph

-----Original Message-----
From: Latchezar (Lucho) Dimitrov [mailto:ldimitro@wfubmc.edu]
Sent: Thu 12/2/2010 8:33 PM
To: John Joseph; Denham Robert; Davor Cubranic
Cc: r-sig-hpc@r-project.org
Subject: RE: [R-sig-hpc] trouble installing Rmpi

Sorry for being brief - ia32 32-bit while i64 - 64-bit I believe. So LD_LIBRARY_PATH does not point to a 64-bit .so.

Latchezar

From: John Joseph [mailto:John.Joseph@utsa.edu]
Sent: Thursday, December 02, 2010 9:17 PM
To: Latchezar (Lucho) Dimitrov; Denham Robert; Davor Cubranic
Cc: r-sig-hpc@r-project.org
Subject: RE: [R-sig-hpc] trouble installing Rmpi


Thanks, Latchezar.

If I understand correctly, you mean to try something like this...

> is.loaded("/home/john/LREWI15_TIO/swat2009_i64_calibrate.so")
[1] FALSE

...but it doesn't work.  Or maybe your thinking something else?

Thanks for your help.

John Joseph


-----Original Message-----
From: Latchezar (Lucho) Dimitrov [mailto:ldimitro@wfubmc.edu]
Sent: Thu 12/2/2010 7:06 PM
To: John Joseph; Denham Robert; Davor Cubranic
Cc: r-sig-hpc@r-project.org
Subject: RE: [R-sig-hpc] trouble installing Rmpi

Well, w/o being an expert in Rmpi nor SWAT I noticed ia32 in your LD_LIBRARY_PATH while is.loaded("./swat2009_i64_calibrate.so").

Also I'd rather put lib path up front just in case.

Latchezar

> -----Original Message-----
> From: r-sig-hpc-bounces@r-project.org [mailto:r-sig-hpc-bounces@r-
> project.org] On Behalf Of John Joseph
> Sent: Thursday, December 02, 2010 7:42 PM
> To: Denham Robert; Davor Cubranic
> Cc: r-sig-hpc@r-project.org
> Subject: Re: [R-sig-hpc] trouble installing Rmpi
>
> Thanks, Denham and Robert.
>
> Thanks for showing me better ways to use LD_LIBRARY_PATH.  I saw
> nothing like those in the examples I found on line.  I probably need to
> get a good Linux book and plough through it.
>
> Unfortunately, though I tried both of the approaches, I still get
> FALSE.  The paths are showing up with ldd command.  I'm taking a look
> at Writing R Extensions.
>
> John Joseph
>
>
> -----Original Message-----
> From: Denham Robert [mailto:Robert.Denham@derm.qld.gov.au]
> Sent: Thu 12/2/2010 5:30 PM
> To: John Joseph; Davor Cubranic
> Cc: r-sig-hpc@r-project.org
> Subject: RE: [R-sig-hpc] trouble installing Rmpi
>
> I think the suggestion was to do something like:
> export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/intel/lib/ia32/
>
> this adds /opt/intel/lib/ia32/ to whatever is already in
> LD_LIBRARY_PATH
>
> I would try starting a new shell,
> then:
>
> john@john-desktop:~/LREWI15_TIO$ export
> LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/intel/lib/ia32/
>
>
> -----Original Message-----
> From: r-sig-hpc-bounces@r-project.org
> [mailto:r-sig-hpc-bounces@r-project.org] On Behalf Of John Joseph
> Sent: Friday, 3 December 2010 9:23 AM
> To: Davor Cubranic
> Cc: r-sig-hpc@r-project.org
> Subject: Re: [R-sig-hpc] trouble installing Rmpi
>
>
> Thanks, Davor.
>
> Well, my attempt to "add them to LD_LIBRARY_PATH" hasn't worked.
> Here's
> what I tried:
>
> john@john-desktop:~/LREWI15_TIO$
> LD_LIBRARY_PATH=/opt/intel/lib/ia32/libifport.so.5 export
> LD_LIBRARY_PATH john@john-desktop:~/LREWI15_TIO$
> LD_LIBRARY_PATH=/opt/intel/lib/ia32/libifcore.so.5 export
> LD_LIBRARY_PATH john@john-desktop:~/LREWI15_TIO$
> LD_LIBRARY_PATH=/opt/intel/lib/ia32/libimf.so.5 export LD_LIBRARY_PATH
> john@john-desktop:~/LREWI15_TIO$
> LD_LIBRARY_PATH=/opt/intel/lib/ia32/libsvml.so.5 export LD_LIBRARY_PATH
> john@john-desktop:~/LREWI15_TIO$
> LD_LIBRARY_PATH=/opt/intel/lib/ia32/libintlc.so.5 export
> LD_LIBRARY_PATH
>
> I also tried without the "export LD_LIBRARY_PATH" portion, but, either
> way, I got the same old error.
>
> I also tried recompiling by setting the environment with LD_RUN_PATH,
> and this actually got me beyond the same old error.  But now
> is.loaded()
> indicates that the program is not loaded.
>
> > setwd("/home/john/LREWI15_TIO")
> > dyn.load("./swat2009_i64_calibrate.so")
> > is.loaded("./swat2009_i64_calibrate.so")
> [1] FALSE
> >
>
> Using LD_LIBRARY_PATH does not affect this status either.
>
> Well, although I'm still not at the solution, I think I've gotten
> closer
> to it.  Thanks for your leads.  I'm learning a lot.
>
> I think I need to search the groups for how others may have dealt with
> this "is.loaded()" is FALSE problem, and might continue this post under
> a more relevant subject heading, such as "dyn.load() is.loaded()
> FALSE".
> But, of course, if you have any suggestions, I much appreciate them.
>
> John Joseph
>
>
>
> -----Original Message-----
> From: Davor Cubranic [mailto:cubranic@stat.ubc.ca]
> Sent: Wed 12/1/2010 11:50 PM
> To: John Joseph
> Cc: r-sig-hpc@r-project.org
> Subject: Re: [R-sig-hpc] trouble installing Rmpi
>
> On December 1, 2010 04:48:54 pm John Joseph wrote:
> > john@john-desktop:~$ ldd
> > /home/john/LREWI15_TIO/./swat2009_i64_calibrate.so
> [...]
> >     libifport.so.5 => not found
> >     libifcore.so.5 => not found
> >     libimf.so => not found
> >     libsvml.so => not found
> >     libintlc.so.5 => not found
>
> Here we go: I'm pretty sure any entry that's 'not found' here will
> cause
> an error in the dynamic linker. If you can locate those libraries, just
> add them to LD_LIBRARY_PATH. At the very least, we know that
> libifport.so.5 is in /opt/intel/lib/ia32, and it is very likely that
> the
> rest of them are there as well.
>
> > I very much appreciate this help.
>
> No worries, you're welcome.
>
> Davor
>
>
>
>
>
>
>
>
>       [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-hpc mailing list
> R-sig-hpc@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
>
>
> +----------------------------------------------------------------+
> Think B4U Print
> 1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere
> 3 sheets of A4 paper = 1 litre of water
> +----------------------------------------------------------------+
>
>
>
>
>
>       [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-hpc mailing list
> R-sig-hpc@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-hpc



	[[alternative HTML version deleted]]

