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

Intel Fortran Compiler and FC4 Test3 64bit

csp
Beginner
499 Views
I have compiled a test program with l_fce_pc_8.1.024. This compiler has worked with FC3 64bit.

I could build the binar file using FC4. But when I tried to run the file I got the error messege:

./a.out: error while loading shared libraries: libcxaguard.so.5: cannot open shared object file: No such file or directory

The test program's code:

PROGRAM test
WRITE(*,*) 'Hello World'
END PROGRAM test

I have built the binar file with the command

ifort test.f90

I have tried with the version I_fce_pc_8.1.027 with the same result.

Any ideas?

My system:
AMD Athlon 64 3500+ 2.2 GHz
Asus A8N-SLI DeLuxe nForce
0 Kudos
2 Replies
TimP
Honored Contributor III
499 Views
Is your LD_LIBRARY_PATH variable set at run time, to point to the library provided with the 64-bit ifort? This is a familiar problem, unlikely to be peculiar to your distro or hardware. If you have the environment set for compilation, you should not see this problem.
0 Kudos
csp
Beginner
499 Views
My LD_LIBRARY_PATH was empty and I had to define manually. Then I could run my excecutable file. This is strange because I have defined the envirement set for compilation in my .bash_profile and I can see that the PATH variable includes the correct value but the LD_LIBRARY_PATH variable is not defined. Why?
0 Kudos
Reply