Compiling Error in Ubuntu 14.04 LTS, 64 bit
Moderators: silvia, selimgunay, Moderators
Compiling Error in Ubuntu 14.04 LTS, 64 bit
Dear all,
I tried to compile OpenSees (2.4.4, rev 5760) in Ubuntu 14.04 LTS and got the following error:
====================
make[1]: Leaving directory `/home/sukumar/OpenSees/OTHER/Triangle'
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
/bin/sh: 1: ./OSverCreate.sh: Permission denied
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
/bin/sh: 1: ./OSverRemove.sh: Permission denied
make: *** [all] Error 126
====================
When I invoke make in OpenSees/SRC or OpenSees/SRC/tcl no error is shown.
my makefile.def is the same as that of Ubuntu 12.04, where I had successfully compiled. Also note that I have write permission in /my_home/OpenSees and also I have the bin and lib directories. All the libraries are already built.
Kindly help
Thanks and regards.
I tried to compile OpenSees (2.4.4, rev 5760) in Ubuntu 14.04 LTS and got the following error:
====================
make[1]: Leaving directory `/home/sukumar/OpenSees/OTHER/Triangle'
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
/bin/sh: 1: ./OSverCreate.sh: Permission denied
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
/bin/sh: 1: ./OSverRemove.sh: Permission denied
make: *** [all] Error 126
====================
When I invoke make in OpenSees/SRC or OpenSees/SRC/tcl no error is shown.
my makefile.def is the same as that of Ubuntu 12.04, where I had successfully compiled. Also note that I have write permission in /my_home/OpenSees and also I have the bin and lib directories. All the libraries are already built.
Kindly help
Thanks and regards.
----------------------------------
With Regards,
sb1966
With Regards,
sb1966
Re: Compiling Error in Ubuntu 14.04 LTS, 64 bit
not quite sure why you need this file .. you must be using some very old version or Makefile.def
anyway
cd OpenSees/SRC/tcl
chmod 'a+x' *.sh
and re-run
ps. the best Makefile.def to use are the ones with EC2 in the name
anyway
cd OpenSees/SRC/tcl
chmod 'a+x' *.sh
and re-run
ps. the best Makefile.def to use are the ones with EC2 in the name
Re: Compiling Error in Ubuntu 14.04 LTS, 64 bit
Dear fmk,
Thanks for your reply. I tried as you suggested and got the following error:
===========================
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/modelbuilder/tcl'
make[2]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[2]: Nothing to be done for `tcl'.
make[2]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
g++: error: unrecognized command line option ‘-Wl’
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
=======================
It appears that it has something to do with gcc compiler. BTW I am having gcc 4.8.2 installed my system.
Please suggest the way out for present compilation in ubuntu 14.04. Further, my makefile.def is adopted from the one *.EC2 only.
Meanwhile, I want to share another information which might help in supplying OpenSees binaries: I have copied the libs and OpenSees binary from my Ubuntu 12.04 to Ubuntu 14.04 (in ~/lib and in ~/bin) and it is working without any issue. I have tested it with few of my earlier scripts related to beam and soil-wall models.
Regards
Thanks for your reply. I tried as you suggested and got the following error:
===========================
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/modelbuilder/tcl'
make[2]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[2]: Nothing to be done for `tcl'.
make[2]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
g++: error: unrecognized command line option ‘-Wl’
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
=======================
It appears that it has something to do with gcc compiler. BTW I am having gcc 4.8.2 installed my system.
Please suggest the way out for present compilation in ubuntu 14.04. Further, my makefile.def is adopted from the one *.EC2 only.
Meanwhile, I want to share another information which might help in supplying OpenSees binaries: I have copied the libs and OpenSees binary from my Ubuntu 12.04 to Ubuntu 14.04 (in ~/lib and in ~/bin) and it is working without any issue. I have tested it with few of my earlier scripts related to beam and soil-wall models.
Regards
----------------------------------
With Regards,
sb1966
With Regards,
sb1966
Re: Compiling Error in Ubuntu 14.04 LTS, 64 bit
Dear fmk,
I have succeeded compilation by doing the following:
i) changing the permission of OpenSees/SRC/tcl/*.sh to "a+x" as you suggested.
ii) by changing the LINKFLAGS from " -rdynamic -Wl" to "-rdynamic"
iii) by adding path to libX11.so in the path to graphic library, although the graphic option for me is "GRAPHICS = UsingOpenGL"
Thanks for your support.
Also please comment on the point I raised about porting OpenSees binaries among different boxes.
Regards
I have succeeded compilation by doing the following:
i) changing the permission of OpenSees/SRC/tcl/*.sh to "a+x" as you suggested.
ii) by changing the LINKFLAGS from " -rdynamic -Wl" to "-rdynamic"
iii) by adding path to libX11.so in the path to graphic library, although the graphic option for me is "GRAPHICS = UsingOpenGL"
Thanks for your support.
Also please comment on the point I raised about porting OpenSees binaries among different boxes.
Regards
----------------------------------
With Regards,
sb1966
With Regards,
sb1966
Re: Compiling Error in Ubuntu 14.04 LTS, 64 bit
why the need for the comment?
Re: Compiling Error in Ubuntu 14.04 LTS, 64 bit
Dear fmk,
Because I believe, this may lead to easier installation for the user by having precompiled binaries with the libs bundled together. The pain of compilation by the user might be avoided. I am not sure if this would work for other Linux distributions as well. The SCILAB people are doing the same. So I just wanted to know what is your opinion on this, and if this kind of approach may be adopted by your team.
Regards.
Because I believe, this may lead to easier installation for the user by having precompiled binaries with the libs bundled together. The pain of compilation by the user might be avoided. I am not sure if this would work for other Linux distributions as well. The SCILAB people are doing the same. So I just wanted to know what is your opinion on this, and if this kind of approach may be adopted by your team.
Regards.
----------------------------------
With Regards,
sb1966
With Regards,
sb1966