<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic FGSL install for Linux in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087573#M123435</link>
    <description>&lt;P&gt;Has anyone successfully compiled and installed fgsl using the intel fortran compiler?&lt;/P&gt;

&lt;P&gt;I've found this post:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/271209"&gt;https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/271209&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;which mentions a fgsl install, but I suspect it's for OSX.&lt;/P&gt;

&lt;P&gt;I've downloaded fgsl v. 1.1.0 from &lt;A href="http://www.lrz.de/services/software/mathematik/gsl/fortran/"&gt;http://www.lrz.de/services/software/mathematik/gsl/fortran/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and followed the instructions.&amp;nbsp; Apparently, compilation with ifort was successful, and I was also able to create a sample program which tried to invoke a fgsl function.&amp;nbsp; However, when I run the program I get an 'undefined symbol' error message...&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2016 22:50:12 GMT</pubDate>
    <dc:creator>rudi-gaelzer</dc:creator>
    <dc:date>2016-09-22T22:50:12Z</dc:date>
    <item>
      <title>FGSL install for Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087573#M123435</link>
      <description>&lt;P&gt;Has anyone successfully compiled and installed fgsl using the intel fortran compiler?&lt;/P&gt;

&lt;P&gt;I've found this post:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/271209"&gt;https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/271209&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;which mentions a fgsl install, but I suspect it's for OSX.&lt;/P&gt;

&lt;P&gt;I've downloaded fgsl v. 1.1.0 from &lt;A href="http://www.lrz.de/services/software/mathematik/gsl/fortran/"&gt;http://www.lrz.de/services/software/mathematik/gsl/fortran/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and followed the instructions.&amp;nbsp; Apparently, compilation with ifort was successful, and I was also able to create a sample program which tried to invoke a fgsl function.&amp;nbsp; However, when I run the program I get an 'undefined symbol' error message...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 22:50:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087573#M123435</guid>
      <dc:creator>rudi-gaelzer</dc:creator>
      <dc:date>2016-09-22T22:50:12Z</dc:date>
    </item>
    <item>
      <title>I don't know anything about</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087574#M123436</link>
      <description>&lt;P&gt;I don't know anything about fgsl, but what is the exact undefined symbol in the error? Can you figure out where it is supposed to come from?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:05:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087574#M123436</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-09-29T16:05:51Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve Lionel (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087575#M123437</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I don't know anything about fgsl, but what is the exact undefined symbol in the error? Can you figure out where it is supposed to come from?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi, Steve.&amp;nbsp; Thank you for replying my question.&lt;/P&gt;

&lt;P&gt;In fact, I advanced a step from the first problem, but still had no luck with the ifort implementation of fgsl.&lt;/P&gt;

&lt;P&gt;The problem I reported first I think was solved by setting the LD_LIBRARY_PATH variable.&amp;nbsp; Now, I'm having segmentation faults.&lt;/P&gt;

&lt;P&gt;To summarize, what I did was the following:&lt;/P&gt;

&lt;P&gt;1) I downloaded the tarball v. 1.1.0 from &lt;A href="http://www.lrz.de/services/software/mathematik/gsl/fortran/download/fgsl-1.1.0.tar.gz"&gt;http://www.lrz.de/services/software/mathematik/gsl/fortran/download/fgsl-1.1.0.tar.gz &lt;/A&gt;and followed the instructions there.&lt;/P&gt;

&lt;P&gt;2) I entered the sequence:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$&amp;gt;export FC=ifort
$&amp;gt;export gsl_LIBS=/usr/lib64
$&amp;gt;export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
$&amp;gt;./configure --prefix=$PWD/sss
$&amp;gt;make&lt;/PRE&gt;

&lt;P&gt;I saved in a local path (under ./sss) because I don't want to mess with the structure of the directories where the system libraries are installed.&amp;nbsp; Not until I'm sure the new libraries are working as they should.&lt;/P&gt;

&lt;P&gt;3) The make script created the following directories under sss:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$sss&amp;gt;ls -lR include
include:
total 4
drwxr-xr-x. 2 rudi plasmas 4096 Set 23 15:11 fgsl

include/fgsl:
total 1904
-rw-r--r--. 1 rudi plasmas 1949277 Set 23 15:11 fgsl.mod

$sss&amp;gt;ls -lR lib
lib:
total 3408
-rw-r--r--. 1 rudi plasmas 1914898 Set 23 15:11 libfgsl.a
-rwxr-xr-x. 1 rudi plasmas     947 Set 23 15:11 libfgsl.la
lrwxrwxrwx. 1 rudi plasmas      16 Set 23 15:11 libfgsl.so -&amp;gt; libfgsl.so.1.0.0
lrwxrwxrwx. 1 rudi plasmas      16 Set 23 15:11 libfgsl.so.1 -&amp;gt; libfgsl.so.1.0.0
-rwxr-xr-x. 1 rudi plasmas 1561408 Set 23 15:11 libfgsl.so.1.0.0
drwxr-xr-x. 2 rudi plasmas    4096 Set 23 15:11 pkgconfig

lib/pkgconfig:
total 4
-rw-r--r--. 1 rudi plasmas 335 Set 23 15:11 fgsl.pc
&lt;/PRE&gt;

&lt;P&gt;4) Among the test code, I tried to compile and create the executable for integration.F90.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$sss&amp;gt;ifort -c -I./include/fgsl integration.F90&lt;/PRE&gt;

&lt;P&gt;Sucessfully compiles and creates integration.o&lt;/P&gt;

&lt;P&gt;5) Now,&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$&amp;gt;ifort  -I./include/fgsl integration.F90 mod_unit.o -L./lib -L/usr/lib64 -lfgsl -lgsl -lgslcblas -o integration
&lt;/PRE&gt;

&lt;P&gt;Successfully compiled, linked and created the executable.&lt;/P&gt;

&lt;P&gt;6) In order to run the test, I first need to set the path.&amp;nbsp; So,&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$&amp;gt;export LD_LIBRARY_PATH=../sss/lib:$LD_LIBRARY_PATH
$&amp;gt;./integration&lt;/PRE&gt;

&lt;P&gt;Gets me a segmentation fault.&lt;/P&gt;

&lt;P&gt;The same test runs if I compile everything with gfortran...&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 16:53:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087575#M123437</guid>
      <dc:creator>rudi-gaelzer</dc:creator>
      <dc:date>2016-09-30T16:53:47Z</dc:date>
    </item>
    <item>
      <title>Sounds as if it's time to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087576#M123438</link>
      <description>&lt;P&gt;Sounds as if it's time to spend a while with the debugger. It's possible that the library makes some assumptions that are implementation-dependent.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 16:57:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FGSL-install-for-Linux/m-p/1087576#M123438</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-09-30T16:57:10Z</dc:date>
    </item>
  </channel>
</rss>

