[Scons-users] Picking up gfortran
Damien
damien at khubla.com
Wed May 20 18:18:33 EDT 2015
You might have to specify the full path to the compiler and linker in
the environment.
env = Environment (
ENV = {'PATH' : path},
tools=['default','gfortran5'],
FORTRAN='/home/cdi/Local/gcc-5-20150201/bin/gfortran5'
FORTRANFLAGS='-ffree-form -g -J./build/lib -fdiagnostics-color
-Wall',
LINK='/home/cdi/Local/gcc-5-20150201/bin/gfortran5',
LINKFLAGS='-g'
)
Damien
On 2015-05-20 4:00 PM, Christopher Dimech wrote:
> I have installed gfortran in the path
>
> /home/cdi/Local/gcc-5-20150201/bin
>
> I renamed gfortran to gfortrae5 so it would not clash with
> the one in /usr/bin
>
> However scons is giving me the error message
>
> EnvironmentError: No tool named 'gfortran5': not a Zip file:
> File
> "/media/ios120/cdi/resip/scien/devbr/gbehistun/sct_larsa_core.py",
> line 34:
>
> I have been using
>
> path = ['/bin', '/usr/bin', '/home/cdi/Local/gcc-5-20150201/bin']
>
> env = Environment (
> ENV = {'PATH' : path},
> tools=['default','gfortran5'],
> FORTRANFLAGS='-ffree-form -g -J./build/lib -fdiagnostics-color
> -Wall',
> LINK='gfortran5',
> LINKFLAGS='-g'
> )
>
>
>
>
>
> --
> Christopher Dimech
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150520/cf217eaf/attachment.html>
More information about the Scons-users
mailing list