Thread: Re: SAC Software: Linux

Started: 2019-06-04 11:08:43
Last activity: 2019-06-18 13:07:16
Topics: SAC Help
Corinne Lacave
2019-06-04 11:08:43
Dear Madam, Sir,

We have installed successfully the sac library as explained in your mail
below.
Now we just face a problem when trying to compile a Fortran-77 program
using
the sac library.

Before, on our previous computer, we used to compile the program using
one of the
following compiling command :
fort77 -o program program.f -lsacio
f77 -o program program.f -lsacio

Now we receive an error message saying : /usr/bin/ld : cannot find -lsacio
Could you please help us with what should be the argument given at the
compiling command line to make it find the sac library properly ?

Thanks a lot in advance fo your help.
Best wishes,
Corinne Lacave.

Visitez notre nouveau site web resonance.ch https://resonance.ch

*Corinne Lacave
* Dr. en sismologie
*Résonance Ingénieurs-Conseils SA
* 21 rue Jacques Grosselin, CH-1227 Carouge
Tel: +41 22 301 02 53 / Web: resonance.ch https://resonance.ch
E-mail: corinne.lacave<at>resonance.ch <corinne.lacave<at>resonance.ch>




Le 24.05.2019 à 18:24, IRIS-noreply a écrit :
Attached is the binary compressed tar file of the SAC v101.6a software package for Linux (64 bit): sac-101.6a-linux_x86_64.tar.gz). The binary was built on CentOS release 5.9 (Final) and has been tested on other 64-bit Linux systems. If your machine is 32-bit Linux or if it does not work on your 64-bit Linux system, you will need to build SAC from the source distribution.

The first step is to expand the .tar.gz file. If your version of tar has the "z" option, you can do this in one step:

tar -xzf sac-101.6a-linux_x86_64.tar.gz

Otherwise, you must first unzip and then untar the file. One way to do this is

gzip -d -c sac-101.6a-linux_x86_64.tar.gz | tar -xf -

The result of this operation is the creation of a subdirectory ./sac .

If you have a problem getting to this point, reply to this e-mail message with a detailed description of your problem.

File ./sac/License, contains the terms you agreed to honor when you requested SAC software. In particular you agreed NOT TO DISTRIBUTE the SAC Software.

Instructions for setting environmental variables for your system are given in file ./sac/README . The information in that file should be all you need to get the package running on your system.

Problems? Questions?
The SAC community has established a mailing list to assist users with issues installing and using SAC (sac-help). Please direct your questions to this mailing list, which requires a subscription: http://ds.iris.edu/message-center/topic/sac-help.



Attachments
  • Corinne Lacave
    2019-06-04 14:34:08
    I receive the same error message when trying with :

    f77 -o program program.f -I/usr/local/sac/include -L/usr/local/sac/lib
    -lsacio -lsac

    Le 04.06.2019 à 11:08, Corinne Lacave a écrit :
    Dear Madam, Sir,

    We have installed successfully the sac library as explained in your
    mail below.
    Now we just face a problem when trying to compile a Fortran-77 program
    using
    the sac library.

    Before, on our previous computer, we used to compile the program using
    one of the
    following compiling command :
    fort77 -o program program.f -lsacio
    f77 -o program program.f -lsacio

    Now we receive an error message saying : /usr/bin/ld : cannot find -lsacio
    Could you please help us with what should be the argument given at the
    compiling command line to make it find the sac library properly ?

    Thanks a lot in advance fo your help.
    Best wishes,
    Corinne Lacave.

    Visitez notre nouveau site web resonance.ch https://resonance.ch

    *Corinne Lacave
    * Dr. en sismologie
    *Résonance Ingénieurs-Conseils SA
    * 21 rue Jacques Grosselin, CH-1227 Carouge
    Tel: +41 22 301 02 53 / Web: resonance.ch https://resonance.ch
    E-mail: corinne.lacave<at>resonance.ch <corinne.lacave<at>resonance.ch>




    Le 24.05.2019 à 18:24, IRIS-noreply a écrit :
    Attached is the binary compressed tar file of the SAC v101.6a software package for Linux (64 bit): sac-101.6a-linux_x86_64.tar.gz). The binary was built on CentOS release 5.9 (Final) and has been tested on other 64-bit Linux systems. If your machine is 32-bit Linux or if it does not work on your 64-bit Linux system, you will need to build SAC from the source distribution.

    The first step is to expand the .tar.gz file. If your version of tar has the "z" option, you can do this in one step:

    tar -xzf sac-101.6a-linux_x86_64.tar.gz

    Otherwise, you must first unzip and then untar the file. One way to do this is

    gzip -d -c sac-101.6a-linux_x86_64.tar.gz | tar -xf -

    The result of this operation is the creation of a subdirectory ./sac .

    If you have a problem getting to this point, reply to this e-mail message with a detailed description of your problem.

    File ./sac/License, contains the terms you agreed to honor when you requested SAC software. In particular you agreed NOT TO DISTRIBUTE the SAC Software.

    Instructions for setting environmental variables for your system are given in file ./sac/README . The information in that file should be all you need to get the package running on your system.

    Problems? Questions?
    The SAC community has established a mailing list to assist users with issues installing and using SAC (sac-help). Please direct your questions to this mailing list, which requires a subscription:http://ds.iris.edu/message-center/topic/sac-help.




    Attachments
    • Corinne Lacave
      2019-06-04 15:39:50
      For information, I am using Ubuntu 18.04.2 LTS (GNU/Linux
      4.18.0-20-generic x86_64)

      Le 04.06.2019 à 14:34, Corinne Lacave a écrit :
      I receive the same error message when trying with :

      f77 -o program program.f -I/usr/local/sac/include -L/usr/local/sac/lib
      -lsacio -lsac

      Le 04.06.2019 à 11:08, Corinne Lacave a écrit :
      Dear Madam, Sir,

      We have installed successfully the sac library as explained in your
      mail below.
      Now we just face a problem when trying to compile a Fortran-77
      program using
      the sac library.

      Before, on our previous computer, we used to compile the program
      using one of the
      following compiling command :
      fort77 -o program program.f -lsacio
      f77 -o program program.f -lsacio

      Now we receive an error message saying : /usr/bin/ld : cannot find
      -lsacio
      Could you please help us with what should be the argument given at the
      compiling command line to make it find the sac library properly ?

      Thanks a lot in advance fo your help.
      Best wishes,
      Corinne Lacave.

      Visitez notre nouveau site web resonance.ch https://resonance.ch

      *Corinne Lacave
      * Dr. en sismologie
      *Résonance Ingénieurs-Conseils SA
      * 21 rue Jacques Grosselin, CH-1227 Carouge
      Tel: +41 22 301 02 53 / Web: resonance.ch https://resonance.ch
      E-mail: corinne.lacave<at>resonance.ch <corinne.lacave<at>resonance.ch>




      Le 24.05.2019 à 18:24, IRIS-noreply a écrit :
      Attached is the binary compressed tar file of the SAC v101.6a software package for Linux (64 bit): sac-101.6a-linux_x86_64.tar.gz). The binary was built on CentOS release 5.9 (Final) and has been tested on other 64-bit Linux systems. If your machine is 32-bit Linux or if it does not work on your 64-bit Linux system, you will need to build SAC from the source distribution.

      The first step is to expand the .tar.gz file. If your version of tar has the "z" option, you can do this in one step:

      tar -xzf sac-101.6a-linux_x86_64.tar.gz

      Otherwise, you must first unzip and then untar the file. One way to do this is

      gzip -d -c sac-101.6a-linux_x86_64.tar.gz | tar -xf -

      The result of this operation is the creation of a subdirectory ./sac .

      If you have a problem getting to this point, reply to this e-mail message with a detailed description of your problem.

      File ./sac/License, contains the terms you agreed to honor when you requested SAC software. In particular you agreed NOT TO DISTRIBUTE the SAC Software.

      Instructions for setting environmental variables for your system are given in file ./sac/README . The information in that file should be all you need to get the package running on your system.

      Problems? Questions?
      The SAC community has established a mailing list to assist users with issues installing and using SAC (sac-help). Please direct your questions to this mailing list, which requires a subscription:http://ds.iris.edu/message-center/topic/sac-help.





      Attachments
  • Milton Plasencia
    2019-06-04 18:26:07
    Corinne,

    The linker not find the libraries,
    Please, give a look in this webpage, to set properly the librarie.

    https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary

    Obviously you can find a ton of information in the web.

    HTH,

    Milton


    On 4 Jun 2019, at 18:01, Corinne Lacave <corinne.lacave<at>resonance.ch> wrote:

    /usr/bin/ld : cannot find


    • Corinne Lacave
      2019-06-13 15:22:01
      Thanks a lot for your answer.
      Obviously I looked at the ton of information in the web, and did not find
      any solution to our problem. This is the reason why I asked for some help.
      Best wishes,
      Corinne.

      Visitez notre nouveau site web resonance.ch https://resonance.ch

      *Corinne Lacave
      * Dr. en sismologie
      *Résonance Ingénieurs-Conseils SA
      * 21 rue Jacques Grosselin, CH-1227 Carouge
      Tel: +41 22 301 02 53 / Web: resonance.ch https://resonance.ch
      E-mail: corinne.lacave<at>resonance.ch <corinne.lacave<at>resonance.ch>




      Le 04.06.2019 à 18:27, Milton Plasencia a écrit :
      Corinne,

      The linker not find the libraries,
      Please, give a look in this webpage, to set properly the librarie.

      https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary

      Obviously you can find a ton of information in the web.

      HTH,

      Milton


      On 4 Jun 2019, at 18:01, Corinne Lacave <corinne.lacave<at>resonance.ch
      <corinne.lacave<at>resonance.ch>> wrote:

      /usr/bin/ld : cannot find


      ----------------------
      SAC Help
      Topic home: http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/
      For information, I am using Ubuntu 18.04.2 LTS (GNU/Linux
      4.18.0-20-generic x86_64)

      Le 04.06.2019 à 14:34, Corinne Lacave a écrit :
      I receive the same error message when trying with :

      f77 -o program program.f -I/usr/local/sac/include -L/usr/local/sac/lib
      -lsacio -lsac

      Le 04.06.2019 à 11:08, Corinne Lacave a écrit :
      Dear Madam, Sir,

      We have installed successfully the sac library as explained in your
      mail below.
      Now we just face a problem when trying to compile a Fortran-77
      program using
      the sac library.

      Before, on our previous computer, we used to compile the program
      using one of the
      following compiling command :
      fort77 -o program program.f -lsacio
      f77 -o program program.f -lsacio

      Now we receive an error message saying : /usr/bin/ld : cannot find
      -lsacio
      Could you please help us with what should be the argument given at the
      compiling command line to make it find the sac library properly ?

      Thanks a lot in advance fo your help.
      Best wishes,
      Corinne Lacave.

      Visitez notre nouveau site web resonance.ch https://resonance.ch

      *Corinne Lacave
      * Dr. en sismologie
      *Résonance Ingénieurs-Conseils SA
      * 21 rue Jacques Grosselin, CH-1227 Carouge
      Tel: +41 22 301 02 53 / Web: resonance.ch https://resonance.ch
      E-mail: corinne.lacave<at>resonance.ch <corinne.lacave<at>resonance.ch>



      • Rob Casey
        2019-06-14 09:02:45

        Hi Corinne-

        It's possible that your library files out in /usr/local/sac/lib have been made read-only by root or other privileged user. The entire install directory may be that way.

        There is a way you can do a test run with ld to see how it is behaving.

        $ ld -L/usr/local/sac/lib -lsacio -lsac --verbose

        see if you get messages saying that the attempt to open libraries failed.

        You will either have to get the subdirectories to be read/write by your user or group, or run 'sudo f77 ...' after having been made a 'sudoer' by the sys admin.

        Something to try.

        -Rob


        On Jun 13, 2019, at 6:22 AM, Corinne Lacave <corinne.lacave<at>resonance.ch> wrote:

        Thanks a lot for your answer.
        Obviously I looked at the ton of information in the web, and did not find
        any solution to our problem. This is the reason why I asked for some help.
        Best wishes,
        Corinne.

        <logoResonance.jpg>

        Corinne Lacave
        Dr. en sismologie
        Résonance Ingénieurs-Conseils SA
        21 rue Jacques Grosselin, CH-1227 Carouge
        Tel: +41 22 301 02 53 / Web: resonance.ch
        E-mail: corinne.lacave<at>resonance.ch




        Le 04.06.2019 à 18:27, Milton Plasencia a écrit :
        Corinne,

        The linker not find the libraries,
        Please, give a look in this webpage, to set properly the librarie.

        https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary

        Obviously you can find a ton of information in the web.

        HTH,

        Milton


        On 4 Jun 2019, at 18:01, Corinne Lacave <corinne.lacave<at>resonance.ch> wrote:

        /usr/bin/ld : cannot find



        ----------------------
        SAC Help
        Topic home:
        http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu


        Sent from the IRIS Message Center (
        http://ds.iris.edu/message-center/
        )
        Update subscription preferences at
        http://ds.iris.edu/account/profile/
        For information, I am using Ubuntu 18.04.2 LTS (GNU/Linux 4.18.0-20-generic x86_64)

        Le 04.06.2019 à 14:34, Corinne Lacave a écrit :
        I receive the same error message when trying with :

        f77 -o program program.f -I/usr/local/sac/include -L/usr/local/sac/lib -lsacio -lsac

        Le 04.06.2019 à 11:08, Corinne Lacave a écrit :
        Dear Madam, Sir,

        We have installed successfully the sac library as explained in your mail below.
        Now we just face a problem when trying to compile a Fortran-77 program using
        the sac library.

        Before, on our previous computer, we used to compile the program using one of the
        following compiling command :
        fort77 -o program program.f -lsacio
        f77 -o program program.f -lsacio

        Now we receive an error message saying : /usr/bin/ld : cannot find -lsacio
        Could you please help us with what should be the argument given at the
        compiling command line to make it find the sac library properly ?

        Thanks a lot in advance fo your help.
        Best wishes,
        Corinne Lacave.

        <gjfmonhjenaifkfb.png>

        Corinne Lacave
        Dr. en sismologie
        Résonance Ingénieurs-Conseils SA
        21 rue Jacques Grosselin, CH-1227 Carouge
        Tel: +41 22 301 02 53 / Web: resonance.ch
        E-mail: corinne.lacave<at>resonance.ch



        ----------------------
        SAC Help
        Topic home: http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

        Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
        Update subscription preferences at http://ds.iris.edu/account/profile/



        • Corinne Lacave
          2019-06-18 13:07:16
          Dear Rob,

          Thanks for your answer. We could not solve the problem, even after changing
          the read/write rights. But, for the information of other users, a old
          colleague of
          mine told me to add -static at the and of the compilation command line, and
          everything was OK then.

          Best regards,
          Corinne.



          Le 14.06.2019 à 18:04, Rob Casey a écrit :
          Hi Corinne-

          It's possible that your library files out in /usr/local/sac/lib have been made read-only by root or other privileged user. The entire install directory may be that way.

          There is a way you can do a test run with ld to see how it is behaving.

          $ ld -L/usr/local/sac/lib -lsacio -lsac --verbose

          see if you get messages saying that the attempt to open libraries failed.

          You will either have to get the subdirectories to be read/write by your user or group, or run 'sudo f77 ...' after having been made a 'sudoer' by the sys admin.

          Something to try.

          -Rob


          On Jun 13, 2019, at 6:22 AM, Corinne Lacave <corinne.lacave<at>resonance.ch> wrote:

          Thanks a lot for your answer.
          Obviously I looked at the ton of information in the web, and did not find
          any solution to our problem. This is the reason why I asked for some help.
          Best wishes,
          Corinne.

          <logoResonance.jpg>

          Corinne Lacave
          Dr. en sismologie
          Résonance Ingénieurs-Conseils SA
          21 rue Jacques Grosselin, CH-1227 Carouge
          Tel: +41 22 301 02 53 / Web: resonance.ch
          E-mail: corinne.lacave<at>resonance.ch




          Le 04.06.2019 à 18:27, Milton Plasencia a écrit :
          Corinne,

          The linker not find the libraries,
          Please, give a look in this webpage, to set properly the librarie.

          https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary

          Obviously you can find a ton of information in the web.

          HTH,

          Milton


          On 4 Jun 2019, at 18:01, Corinne Lacave <corinne.lacave<at>resonance.ch> wrote:

          /usr/bin/ld : cannot find


          ----------------------
          SAC Help
          Topic home:
          http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu


          Sent from the IRIS Message Center (
          http://ds.iris.edu/message-center/
          )
          Update subscription preferences at
          http://ds.iris.edu/account/profile/
          For information, I am using Ubuntu 18.04.2 LTS (GNU/Linux 4.18.0-20-generic x86_64)

          Le 04.06.2019 à 14:34, Corinne Lacave a écrit :
          I receive the same error message when trying with :

          f77 -o program program.f -I/usr/local/sac/include -L/usr/local/sac/lib -lsacio -lsac

          Le 04.06.2019 à 11:08, Corinne Lacave a écrit :
          Dear Madam, Sir,

          We have installed successfully the sac library as explained in your mail below.
          Now we just face a problem when trying to compile a Fortran-77 program using
          the sac library.

          Before, on our previous computer, we used to compile the program using one of the
          following compiling command :
          fort77 -o program program.f -lsacio
          f77 -o program program.f -lsacio

          Now we receive an error message saying : /usr/bin/ld : cannot find -lsacio
          Could you please help us with what should be the argument given at the
          compiling command line to make it find the sac library properly ?

          Thanks a lot in advance fo your help.
          Best wishes,
          Corinne Lacave.

          <gjfmonhjenaifkfb.png>

          Corinne Lacave
          Dr. en sismologie
          Résonance Ingénieurs-Conseils SA
          21 rue Jacques Grosselin, CH-1227 Carouge
          Tel: +41 22 301 02 53 / Web: resonance.ch
          E-mail: corinne.lacave<at>resonance.ch


          ----------------------
          SAC Help
          Topic home: http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

          Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
          Update subscription preferences at http://ds.iris.edu/account/profile/


          ----------------------
          SAC Help
          Topic home: http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

          Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
          Update subscription preferences at http://ds.iris.edu/account/profile/


Page built 19:40:03 | v.b'108166