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

executing a sample program

ksim_2003
Beginner
391 Views
I installed FC5 on my AMD 64 x2 computer and installed "l_fc_c_9.0.031" witha default setting.
I can compile the sample program, which is /doc/samples/int_sin.f90,without any error and compiler gave an executable file: a.out
And I typed ./a.out and press enter, then I get an error message as:
./a.out: error while loading shared libraries: /opt/intel/fc/9.0/lib/libimf.so:
cannot restore segment prot after reloc: Permission denied
I havethe same error message when I execute it as a root. However, when I use the "gfortran" ( part of gcc), I can run the same program without any error and have an output successfully.
I badly expectto solve this problem. Please help !!
ksim.
0 Kudos
2 Replies
TimP
Honored Contributor III
391 Views
Are file permissions read and execute set? All .so files in /opt/intel/fc/9.0/lib/
should normally show permissions
-rwxr-xr-x

as they should have been set when you installed the compiler originally.
All parent directories also need read and execute permission.
0 Kudos
ksim_2003
Beginner
391 Views
Tim18, I really appreciate your response.
However, all .so files have an executable permissions in myopt/intel/~/lib dir.
But, fortuneately,I solved this problemchangingSELinux option by setting the line

SELINUX=disabled

in/etc/sysconfig/selinux file.
Thanks again.
0 Kudos
Reply