error in installing OpenSees 2.3.0 in Ubuntu 11.04
Moderators: silvia, selimgunay, Moderators
-
- Posts: 73
- Joined: Fri Jun 17, 2011 7:05 am
- Location: IIT Bombay
error in installing OpenSees 2.3.0 in Ubuntu 11.04
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???
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???
Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04
what is in the Makefile.def for SuperLU location .. it should be pointing to SuperLU_4.1
-
- 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
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?
-----------------------------------------------------------------------------------------------------------------------------------------
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?
Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04
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.
-
- 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
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.
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.
Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04
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.
if not, create them. if you do cd to OpenSees/SRC and type make to find out why it is not compiling.
-
- 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
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.
> 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.
-
- 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
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?
===========================
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?
Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04
what version of tcl do you have??
-
- 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
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.
> 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.
Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04
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
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
-
- 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
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
> 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
Re: error in installing OpenSees 2.3.0 in Ubuntu 11.04
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
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