error in installing OpenSees 2.3.0 in Ubuntu 11.04

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
tusharkantimandal
Posts: 73
Joined: Fri Jun 17, 2011 7:05 am
Location: IIT Bombay

error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by tusharkantimandal »

system: Ubuntu 11.04
Opensees version: 2.3.0
Makefile modified: Makefile.def.Ubuntu9.04 [modified according to the "readme" file provided with the package]
I found following error :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
In file included from commands.cpp:223:0:
/home/sghosh/sources/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SuperLU.h:48:23: fatal error: slu_ddefs.h: No such file or directory
compilation terminated.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I went to that file SuperLU.h, and line 48 looks for slu_ddefs.h. But don't know where to find it. Can anyone help me in this matter???
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by fmk »

what is in the Makefile.def for SuperLU location .. it should be pointing to SuperLU_4.1
tusharkantimandal
Posts: 73
Joined: Fri Jun 17, 2011 7:05 am
Location: IIT Bombay

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by tusharkantimandal »

Thank you! I've corrected the Makefile.def as you have suggested. I guess the compilation went past the SuperLU. However, I have a new (similar?) error:
-----------------------------------------------------------------------------------------------------------------------------------------
In file included from /home/sghosh/sources/OpenSees/SRC/renderer/OpenGLRenderer.h:43:0,
from TclFeViewer.cpp:50:
/home/sghosh/sources/OpenSees/SRC/renderer/OpenGlDevice.h:33:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
---------------------------------------------------------------------------------------------------------------------------------------

Can you please suggest a fix to this?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by fmk »

it is looking for the opengl header file .. that is smething that is machine specific .. go look for it .. if you don't have it look at Makefile.def.RANGER in MAKES and use similar graphics flags.
tusharkantimandal
Posts: 73
Joined: Fri Jun 17, 2011 7:05 am
Location: IIT Bombay

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by tusharkantimandal »

Thanks so much!
I installed libgl1-mesa-dev and it gave me a gl.h. So the next compilation seems to go past that, but it showed a new error with the FE:
================
make[2]: Entering directory `/home/sghosh/sources/OpenSees/SRC/tcl'
make[2]: Nothing to be done for `tcl'.
make[2]: Leaving directory `/home/sghosh/sources/OpenSees/SRC/tcl'
g++: /home/sghosh/sources/lib/libOpenSees.a: No such file or directory
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/sghosh/sources/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
=================

I will really appreciate your help in this.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by fmk »

do you have the following directories: /home/sghosh/sources/lib/ and /home/sghosh/sources/bin

if not, create them. if you do cd to OpenSees/SRC and type make to find out why it is not compiling.
tusharkantimandal
Posts: 73
Joined: Fri Jun 17, 2011 7:05 am
Location: IIT Bombay

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by tusharkantimandal »

fmk wrote:
> do you have the following directories: /home/sghosh/sources/lib/ and
> /home/sghosh/sources/bin
>
> if not, create them. if you do cd to OpenSees/SRC and type make to find out
> why it is not compiling.

I had the bin and lib directories under ~/sources, so I followed your second suggestion of running make under /OpenSees/SRC/. And this is what I got:
=====================
ContactMaterial2D.cpp: In function ‘void* OPS_NewContactMaterial2DMaterial()’:
ContactMaterial2D.cpp:54:116: warning: deprecated conversion from string constant to ‘char*’
ContactMaterial2D.cpp: In constructor ‘ContactMaterial2D::ContactMaterial2D()’:
ContactMaterial2D.cpp:114:68: error: cannot call constructor ‘ContactMaterial2D::ContactMaterial2D’ directly
ContactMaterial2D.cpp:114:68: error: for a function-style cast, remove the redundant ‘::ContactMaterial2D’
make[2]: *** [ContactMaterial2D.o] Error 1
make[2]: Leaving directory `/home/sghosh/sources/OpenSees/SRC/material/nD'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sghosh/sources/OpenSees/SRC/material'
make: *** [all] Error 2
=====================
Should I delete ‘::ContactMaterial2D’ in the file specified and try recompiling? But where do I type make this time, /OpenSees or /OpenSees/SRC/ ?

Thanks for your help.
tusharkantimandal
Posts: 73
Joined: Fri Jun 17, 2011 7:05 am
Location: IIT Bombay

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by tusharkantimandal »

After editing the ContactMaterial2D.cpp and ContactMaterial3D.cpp in OpenSees/SRC/ (as suggested), I ran ''make'' in the OpenSees directory. Here are the last few lines showing error in compilation:

===========================
make[1]: Leaving directory `/home/sghosh/sources/OpenSees/OTHER/METIS'
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Entering directory `/home/sghosh/sources/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/sghosh/sources/OpenSees/SRC/tcl'
make[1]: Entering directory `/home/sghosh/sources/OpenSees/SRC/modelbuilder/tcl'
make[2]: Entering directory `/home/sghosh/sources/OpenSees/SRC/tcl'
make[2]: Nothing to be done for `tcl'.
make[2]: Leaving directory `/home/sghosh/sources/OpenSees/SRC/tcl'
/home/sghosh/sources/OpenSees/SRC/tcl/tclMain.o: In function `g3TclMain(int, char**, int (*)(Tcl_Interp*), int, int)':
tclMain.cpp:(.text+0x190): undefined reference to `TclFormatInt'
collect2: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/sghosh/sources/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
============================

Could anybody please help me in this?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by fmk »

what version of tcl do you have??
tusharkantimandal
Posts: 73
Joined: Fri Jun 17, 2011 7:05 am
Location: IIT Bombay

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by tusharkantimandal »

fmk wrote:
> what version of tcl do you have??

tcl8.5 (8.5.9-2) [also 8.4, but 8.5 libraries are mentioned in Makefile.def], and
tk8.5 (8.5.9-2).

Thanks for your continuous help.
pallavi
Posts: 53
Joined: Tue Aug 29, 2006 2:56 am
Location: CDAC
Contact:

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by pallavi »

Dear Tushar,

See the version of TCL Tk ........ Install the tcl tk 8.5. version. Got the header files for both tcl and tk include that in TCL_INCLUDES .
Also do change the C, C++ and Fortran flags....... to -D_TCL85.

Regards

Pallavi
tusharkantimandal
Posts: 73
Joined: Fri Jun 17, 2011 7:05 am
Location: IIT Bombay

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by tusharkantimandal »

pallavi wrote:
> Dear Tushar,
>
> See the version of TCL Tk ........ Install the tcl tk 8.5. version. Got the
> header files for both tcl and tk include that in TCL_INCLUDES .
> Also do change the C, C++ and Fortran flags....... to -D_TCL85.
>
> Regards
>
> Pallavi

Dear Pallavi,
Thanks for your help. I could only find the C++ flags and changed these at two places to:
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 \ .....
but for C and Fortran, this is what is there in the Makefile.def, and I did not change this
CFLAGS = -Wall -O2
FFLAGS = -Wall -O

After these, I ran make from sources/OpenSees/ directory and this is the error message that I got:

/home/sghosh/sources/OpenSees/SRC/tcl/tclMain.o: In function `g3TclMain(int, char**, int (*)(Tcl_Interp*), int, int)':
tclMain.cpp:(.text+0x190): undefined reference to `TclFormatInt'
collect2: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/sghosh/sources/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2

Regards,
Siddhartha
pallavi
Posts: 53
Joined: Tue Aug 29, 2006 2:56 am
Location: CDAC
Contact:

Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04

Post by pallavi »

Dear Sir,

As per my knowledge, the problem is with the tcl things, if possible do separate and new installation of tcl tk 8.5 and give the corresponding paths in the Makefile.def.

Regards

Pallavi
Post Reply