On 12/09/2009, at 19:32, Jonathan Greenberg wrote:
>    I'd like to work with g95, and use netcdf-g95, this week, but I  
> have
> a Snow Leopard system and g95 hasn't been upgraded yet to work with  
> 10.6
> in the fink repository.  I'm sure it'll be upgraded soon enough, but I
> have a more generic question that relates to this specific issue.   
> There
> are binaries for MacOS X available directly from g95.org that appear  
> to
> work -- what  I'm wondering is, so I don't have unix binaries all over
> my system, is whether or not I'll run into problems moving the binary
> and the libs in /sw/bin and /sw/lib.  On a related note, netcdf-g95,  
> of
> course, requires g95 (there appears to be 10.6 version available via
> fink install), so how do I either "bypass" the dependency check, or
> point it to my g95 binary I grabbed from elsewhere?


Hello, Jonathan.

If I understood correctly you're thinking of installing a non-Fink g95  
and copying its files to Fink's folder, /sw. That's potential for  
trouble because you'd be installing files that are supposed to be  
installed by Fink, potentially messing with Fink's (dpkg's) internal  
list of installed files, as well as leaving dangling files if you  
attempt to undo this 'installation'. There's also the issue that  
library full paths are hardcoded into programs linked against them, so  
you might have to create appropriate symbolic links whenever needed. I  
wouldn't recommend it at all and Fink wouldn't be able to provide you  
any further support.

In summary, don't do it. :)

As for netcdf-g95 using a non-Fink g95 in a different location (/usr/ 
local, /opt, etc), one possibility is to create a local netcdf-g95  
package and modify its package description so that it doesn't depend  
on Fink's g95 and uses a non-Fink g95 for compilation. You may find  
information on local packages in the following pages:

http://finkers.wordpress.com/2009/06/08/local-packages/
http://finkers.wordpress.com/2009/07/24/creating-local-packages/

I've never used Fortran and I don't know netcdf-g95 so I wouldn't be  
able to tell you how much work it would be to adapt it so that it uses  
a non-Fink g95 compiler.


Cheers,

--
monipol
http://finkers.wordpress.com

Submitting a Fink bug report? Read this:
http://www.finkproject.org/doc/netiquette/index.php
http://finkers.wordpress.com/2009/06/03/bug-reports/


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to