Author Topic: FEAPPV installation under MAC OS  (Read 7976 times)

aslide

  • New Member
  • *
  • Posts: 5
FEAPPV installation under MAC OS
« on: June 13, 2018, 08:07:42 AM »
Hello,

I'm new to all of this and need some help.
Currently I'm trying to install FEAPPV Version 4.1 Therefore i downloaded the .zip file onto my mac. As I tried to install the programm using Professor Govindjee's Youtube tutorial I failed. After using " export FEAPPVHOME4_1=/Users...." i tried to run "make archive", but everytime I get this Error message:

make archive
(cd program; make archive)
/bin/sh: gfortran: command not found
make[2]: *** [/Users/Duc/feappv/feappv-4.1i/Feappv.a(acheck.o)] Error 1
make[1]: *** [archive] Error 1
make: *** [archive] Error 2

Could someone help me please ?

I appreciate every answer.

Thank you,

Aslide

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: FEAPPV installation under MAC OS
« Reply #1 on: June 13, 2018, 08:24:46 AM »
As the message says, it is looking for GFORTRAN but can not find it on your PATH.  Probably you do not have GFORTRAN installed on your machine.  Please install it and then try again.  If you have the Intel compiler on your computer you can edit makefile.in to use ifort/icc instead
of gfortran/gcc.

You can double check the existence of GFORTRAN on your computer by typing

which gfortran

and/or

whereis gfortran


aslide

  • New Member
  • *
  • Posts: 5
Re: FEAPPV installation under MAC OS
« Reply #2 on: June 13, 2018, 09:06:53 AM »
Thank you for your quick response!
I installed gfortran and ran "make archive" again, after that i ran "make install" .

Thomass-MacBook-Pro:feappv-4.1i Duc$ make install
(cd program; make archive)
(cd elements; make archive)
(cd plot; make archive)
(cd unix; make archive)
(cd user; make archive)
--> FEAPpv Archive updated <--
(cd main; make feappv)
gfortran -c -O3 -ftree-vectorize -Wall -I/Users/Duc/feappv/feappv-4.1i/include -I/Users/Duc/feappv/feappv-4.1i/include/integer8 feappv.f -o feappv.o
ranlib /Users/Duc/feappv/feappv-4.1i/Feappv.a
gfortran -o feappv feappv.o  /Users/Duc/feappv/feappv-4.1i/Feappv.a \
   -L/usr/X11R6/lib -lX11 -lm
--> FEAPpv executable made <--

Does this mean I succeded ? Sorry my questions might seem stupid to you, but I just started today.

In his youtube video he did some additional steps after "make archive" like "cd packages" , "ls", "cd arpack"... before he runs "make install". Unfortunately i can't do these steps as i get the message : "-bash: cd: packages: No such file or directory".
Do i need these steps to run feappv ?

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: FEAPPV installation under MAC OS
« Reply #3 on: June 13, 2018, 09:49:57 AM »
Yes you have succeeded in building the program.  The other steps are associated with optional features for FEAP not FEAPpv.

You will find the feappv executable in the folder $FEAPPVHOME4_1/main.

aslide

  • New Member
  • *
  • Posts: 5
Re: FEAPPV installation under MAC OS
« Reply #4 on: June 13, 2018, 10:42:04 AM »
Thank you very much ! I already wrote an Inputfile. Could you help me to get it running on FEAPpv please? I tried to copy the Inputfile into the main folder, where the feappv executable is located: /Users/Duc/feappv/feappv-4.1i/main. But I always get the message, that the file does not exist :

         I n p u t    F i l e n a m e s

         Specify filenames:

             Input   Data (default: NONE                            ) :
                      Enter Name --> IDreiD.txt

 *ERROR* FILNAM: Specified input file: IDreiD.txt                                                                                                                     
         does not exist. Reinput filename.

-------------------------------------

The only way I can get it working is to do the following:

   
bash-3.2$ cd /Users/Duc/feappv/feappv-4.1i/main
bash-3.2$ ls
IDreiD.txt      feappv          feappv.f        feappv.o        makefile
bash-3.2$ alias feappv="/Users/Duc/feappv/feappv-4.1i/main/feappv"
bash-3.2$ feappv


    F I N I T E   E L E M E N T   A N A L Y S I S   P R O G R A M
              FEAPpv (P e r s o n a l   V e r s i o n)

             (C) Regents of the University of California
                       All Rights Reserved.
                       VERSION: 4.1 Revision i   
                          DATE: 21 April 2018   

         I n p u t    F i l e n a m e s

         Specify filenames:

             Input   Data (default: NONE                            ) :
                      Enter Name --> IDreiD.txt

         Files are set as:     Status  Filename

             Input   (read ) : Exists  IDreiD.txt                     
             Output  (write) : New     ODreiD.txt                     
             Restart (read ) : New     RDreiD.txt                     
             Restart (write) : New     RDreiD.txt                     

         Caution, existing write files will be overwritten.

         Are filenames correct?( y or n; r = redefine all; s = stop) :y

         R U N N I N G    F E A P p v    P R O B L E M    N O W
 Input a macro instruction: Enter "help" for list of commands.
 Enter "exit" to end with restart save, "quit" to end without restart save.
   List 15  Macro  1> 

I have to write in these commands everytime i start a new command line, is this normal ?

Why can't I just create a new directory for each Inputfile I have, copy the FEAPpv executable into the same directory and run FEAPpv from there, as I would on Windows ?
It's seems a little bit inconvenient since it's so easy to start FEAPpv on Windows.

Thank you again for your time !
« Last Edit: June 13, 2018, 11:50:32 AM by aslide »

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: FEAPPV installation under MAC OS
« Reply #5 on: June 13, 2018, 11:53:31 AM »
You should be able to issue

% mkdir /.../whateverdir
% cd /.../whateverdir

then create your input file in /.../whateverdir and with your alias

% feappv

and give it the name of your input file.

FEAPpv looks for the file name in the directory from where you execute FEAPpv.

aslide

  • New Member
  • *
  • Posts: 5
Re: FEAPPV installation under MAC OS
« Reply #6 on: June 13, 2018, 12:47:30 PM »
It works so far, but is the alias only created for the periode of time im running the same command line ? I tried to close the current command line and open another, but then entering:

%feappv

gives the following error message:

-bash: feappv: command not found

Or do I have to save the created alias somehow ?

You have been so helpfull FEAP_Admin ! Can't thank you enough !

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: FEAPPV installation under MAC OS
« Reply #7 on: June 13, 2018, 08:54:35 PM »
YOu should be able to put the alias in the .bash_rc  - be sure to either restart the window or say "source .bash_rc" to activate the changes.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: FEAPPV installation under MAC OS
« Reply #8 on: June 13, 2018, 10:51:28 PM »
Seems that the current directory is not on your path.  So you should type ./feappv  (if you do not want to put the alias in bash file).

aslide

  • New Member
  • *
  • Posts: 5
Re: FEAPPV installation under MAC OS
« Reply #9 on: June 14, 2018, 02:19:11 PM »
Thank you all ! I put the alias in the .bash_profile and everything is working fine now !