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
초급자
2,544 조회수

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 포인트
3 응답
Micah_Elliott
초급자
2,544 조회수

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 포인트
jft27
초급자
2,544 조회수

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 포인트
appopson
초급자
2,544 조회수
Thanks to all of you,

After modification of ifort and ifc intel fortran work well now


0 포인트
응답