Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am attempting to install and run gfortran-8 on macOS with the following makefile. I installed it from http://hpc.sourceforge.net/ (8.3 version). I keep getting this error:

gfortran: error: libgfortran.spec: No such file or directory

I know libhfortran.spec is located in /usr/local/Cellar/gcc@8/8.4.0/lib/gcc/8/libgfortran.spec. I have added it to my etc/paths and my .bash_profile. I have also uninstalled gfortran and reinstalled it. Anyone have a clue on what I might be missing? I am attaching my makefile below.

Makefile: https://drive.google.com/open?id=1Y_Zo2dSYI32dQpwMtdUy5rWB8avDHXor

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
196 views
Welcome To Ask or Share your Answers For Others

1 Answer

Bellhop Macintosh Installation

  • Note: I know gfortran is now part of gcc but newest at version still only works with older gfotran compilers. If you have Catalina as well, don’t worry this will still work on Mojave as well as on Catalina. I had tested it.

  • Go to this link.

  • Download enter image description here

  • Install the downloaded gfortran-8.2-Mojave.dmg, this compiler is being used by the at to create binaries for your MacOS.

  • Go to the path where you extracted at folder. (In Mac you don’t need windows binary, you need to compile using gfotran compiler.)

  • Execute the following commands in the at folder.

enter image description here

  • Once you installed. Close all the terminals.
  • Open new terminal. Do as follows:
  • In your terminal, type this: echo $PATH
  • Above command give you current path in your zsh file, If you have one.
  • Add bellhop to your zsh file. You can use these commands in terminal:
    cd
    nano .zsh
    

enter image description here

  • Please note that there is no Bellhop in the path right now, so we are going to add that by adding the following line in the .zsh file, Copy and paste below list (change the path accordingly) export PATH=your_local_macOS_path/at:your_local_macOS_path/at/Bellhop:$PATH$

  • For me, it was: export PATH=/Users/jaypatel/Downloads/at:/Users/jaypatel/Downloads/at/Bellhop:$PATH$

  • Refer the screenshot below for more details. enter image description here enter image description here

  • Once you’re done, press ctrl+X and it will ask you do you want to save your file, type Y and press enter and it will save the path successfully.

  • And now source ~/.zsh to your terminal using this command :

    source ~/.zsh
    echo $PATH
    
  • This means your acoustic toolbox and bellhop.exe are in path’s now.

  • And now source ~/.zsh to your terminal using this command : source ~/.zsh enter image description here

  • And Voila, Your Bellhop is successfully installed.

Reference :

  • You can find more details here.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...