Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

export: 27: Illegal option -n

appopson
Beginner
2,290 Views

Hi I recently upgrade ubuntu (from ubuntu Dapper to ubuntu Edgy).

Surprisingly Intel fortran 9 which work well give know the following error when compiling:

export: 27: Illegal option -n

What can I do to solve this problem.

Thanks for helping me
 

0 Kudos
3 Replies
Micah_Elliott
Beginner
2,290 Views

I suspect it is the ifort script being choked on. There is an export at line 27. Please paste the shell debug output of your invocation:

$ bash -x $(which ifort)

It might also be useful to know Edgy's bash version, since I don't have it (yet).

0 Kudos
jft27
Beginner
2,290 Views

The problem is that edgy uses dash rather than bash. You can change the first line of the ifort and ifc scripts from

#!/bin/sh

to

#!/bin/bash

and all should work.

Jeremy



0 Kudos
appopson
Beginner
2,290 Views
Thanks to all of you,

After modification of ifort and ifc intel fortran work well now


0 Kudos
Reply