Author Topic: installation error on ubuntu-v8.6.1j  (Read 4468 times)

jimmy_hyun

  • New Member
  • *
  • Posts: 4
installation error on ubuntu-v8.6.1j
« on: August 31, 2021, 01:29:42 PM »
I have tried 'make install' and got the error messages after some building. I cannot find the same issue in the forum.
Any help would be appreciated.
ubuntu  20.04.1
feap v8.6.1j

a - cpair02.o
a - celmt19.o
--->/home/jimmy/codes/fe/FEAP/feap-8.6.1j/contact/util objects now up-to-date<---
make[2]: Leaving directory '/home/jimmy/codes/fe/FEAP/feap-8.6.1j/contact/util'
make[1]: Leaving directory '/home/jimmy/codes/fe/FEAP/feap-8.6.1j/contact'
--> Feap Archive updated <--
(cd main; make feap)
make[1]: Entering directory '/home/jimmy/codes/fe/FEAP/feap-8.6.1j/main'
make[1]: *** No rule to make target 'feap'.  Stop.
make[1]: Leaving directory '/home/jimmy/codes/fe/FEAP/feap-8.6.1j/main'
make: *** [makefile:12: feap] Error 2

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: installation error on ubuntu-v8.6.1j
« Reply #1 on: August 31, 2021, 07:08:12 PM »
Did you copy main/makefile_default  to main/makefile?

Also comment out the line "dsymutil feap".

Are these instructions missing in the installation documentation?  We'll need to update them.  Sorry about that.


jimmy_hyun

  • New Member
  • *
  • Posts: 4
Re: installation error on ubuntu-v8.6.1j
« Reply #2 on: September 01, 2021, 03:34:24 PM »
What you said are not in the installation manual.
Anyway, I did as you said.

It went through then blas and lapack library seemingly missing.
I did not have them already so I use the lines as in  feap-8.6.1j/makefile.in:
# Local lapack library (use if you do not have lapack already)
  LAPACKLIB = $(FEAPHOME8_6)/packages/lapack/liblapack.a

# Local blas library
  BLASLIB   = $(FEAPHOME8_6)/packages/blas/libblas.a   

I tried again but it still gives the same error:
r - cpair02.o
r - celmt19.o
--->/home/jimmy/codes/fe/FEAP/feap-8.6.1j/contact/util objects now up-to-date<---
make[2]: Leaving directory '/home/jimmy/codes/fe/FEAP/feap-8.6.1j/contact/util'
make[1]: Leaving directory '/home/jimmy/codes/fe/FEAP/feap-8.6.1j/contact'
--> Feap Archive updated <--
(cd main; make feap)
make[1]: Entering directory '/home/jimmy/codes/fe/FEAP/feap-8.6.1j/main'
gfortran-10 -c -g -O2 -Wall -ffpe-trap=invalid,zero -I/home/jimmy/codes/fe/FEAP/feap-8.6.1j/include -I/home/jimmy/codes/fe/FEAP/feap-8.6.1j/modules -I/usr/local/include  feap86.f -o feap86.o
ranlib /home/jimmy/codes/fe/FEAP/feap-8.6.1j/Feap8_6g.a
gfortran-10 -o feap feap86.o  \
/home/jimmy/codes/fe/FEAP/feap-8.6.1j/Feap8_6g.a -L/opt/X11/lib -L/usr/local/lib -lX11 -lm -lblas -llapack
/usr/bin/ld: cannot find -lblas
/usr/bin/ld: cannot find -llapack
collect2: error: ld returned 1 exit status
make[1]: *** [makefile:7: feap] Error 1
make[1]: Leaving directory '/home/jimmy/codes/fe/FEAP/feap-8.6.1j/main'
make: *** [makefile:12: feap] Error 2

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: installation error on ubuntu-v8.6.1j
« Reply #3 on: September 01, 2021, 04:57:00 PM »
You have bit of corner case here.

The easiest and best thing to do is to NOT use the BLAS/LAPACK that we provide. 
Rather you should install blas and lapack.
For ubuntu, I think you want to run "sudo apt install blas lapack" .

Notwithstanding, if you want to use the provided blas and lapack, you should add $BLASLIB and $LAPACKLIB into main/makefile;
you parrot the commented out format shown for the optional arpack libraries.  Ubuntu makes this a giant pain.  Let us know if
it is still giving you trouble and we can try to spin up an Ubuntu machine without blas and lapack and figure out the install details for you.
« Last Edit: September 01, 2021, 11:06:17 PM by Prof. S. Govindjee »

jimmy_hyun

  • New Member
  • *
  • Posts: 4
Re: installation error on ubuntu-v8.6.1j
« Reply #4 on: September 05, 2021, 11:38:42 AM »
Finally I have succeeded to build feap after installing lapack and blas separately into /usr/local/lib/.
Seemingly works well with example cases.
Thanks.