LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2009, 03:29 PM   #1
zosta
LQ Newbie
 
Registered: Dec 2003
Posts: 5

Rep: Reputation: 0
Question Installing Seismic Unix on Fedora 10


I have been trying to install Seismic Unix on Fedora 10 and got stuck.
I have just installed Fedoora from DVD with all default options.
I am now trying to set Makefile.config for Seismic Unix and have suuch problems:
1. what path should I put instead of following:
/usr/X11R6/LessTif/lib
/usr/X11R6/include
/usr/X11R6/lib
/usr/local/lesstif/lib
.../
2. How to install g77 compiler or get around that?

Maybe somebody went through the Seismic Unix instalation and can help me?

zbigniew
 
Old 05-27-2009, 04:33 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

1) Assume 'cwp_su_all_41.tgz' from
http://timna.mines.edu/cwpcodes/
The download from that site is extremely slow,
will have a look at it tomorrow.

2) g77 install :
'su' .... enter password
# 'yum install compat-gcc-34-g77
.....

Last edited by knudfl; 05-27-2009 at 04:34 PM.
 
Old 05-27-2009, 05:35 PM   #3
zosta
LQ Newbie
 
Registered: Dec 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks.
Yes, codes come from CWP site.
Many thanks for g77 package name. I have been unsuccessfuly googling for hours...
In the instalation instructions (http://www.cwp.mines.edu/cwpcodes/In...n_Instructions) there are listed several steps. I followed them down to:
" make install (to install the basic set of codes)
make xtinstall (to install the X-toolkit applications)
"
other steps required g77 and motif. I did not want to try them since Makefile.config was incorrectly set.
I maneged to install lesstif via yum, but have no idea what acctually happened and where all the liraries went. Is there a way to check that?

z.
 
Old 05-27-2009, 07:05 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
rpm -V lesstif

should help.
 
Old 05-28-2009, 02:22 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
I don't think, 'rpm -V lesstif' will show anything at all.
man rpm .....
rpm {-V|--verify} [select-options] [verify-options]
....
The package required for building someting is always
<package>-devel, so you need to install 'lesstif-devel' too.
# yum -y install lesstif-devel
Also required : libX11-devel mesa-libGL-devel freeglut-devel

The install result of lesstif, lesstif-devel :
'rpm -ql <package> <package>' :
> > the required /usr/lib/libXm.so , etc.etc.
( libXm.a is not required.)
.....
http://www.cwp.mines.edu/cwpcodes/In...n_Instructions
.....
The choises I made : 'mkdir seismic'
cd /home/"username"/seismic
tar xvf cwp_su_all_41.tgz
exit
Result : seismic/src/

Edit files :

Makefile , line 30
CWPROOT = /home/"username"/seismic/
.....
Makefile.config , line 84
CWPROOT = /home/"username"/seismic/

line 301, uncomment the line with a hash mark ( # )
# LD_LIBRARY_PATH..

line 455, edit to
IX11 = /usr/include/

line 458, edit to
LX11 = /usr/lib

484
IMOTIF = /usr/include/Xm

487
LMOTIF = /usr/lib

499
IGL = /usr/include

502
LGL = /usr/lib
.....
And I did : 'cd seismic/src/'
'export CWPROOT=/home/knudfl/seismic'

'make install' and when finished compiling ......
'make xtinstall' and next
'make finstall' and ...
'make mglinstall' .... the last one
'make xminstall'
..... It all compiles with no errors !
The edited Makefile.config is attached,
remember to edit CWPROOT to your path. ( line 30.)

Good luck !
.....
Attached Files
File Type: txt Makefile.config.txt (18.8 KB, 42 views)

Last edited by knudfl; 05-28-2009 at 04:04 PM.
 
Old 05-28-2009, 02:23 PM   #6
zosta
LQ Newbie
 
Registered: Dec 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Hi again,

I managed to compile most programs but I am stuck with those depending on lesstif and mesa.
I cannot get the following right.

########################################################################
# under SUN OS make sure that your load library path is consistent with
# your choice of C compiler above. Be sure to include any other library
# paths (for example X windows). Set LD_LIBRARY_PATH as a shell environment
# variable or hard set here. An example:
#LD_LIBRARY_PATH = /usr/lang/SC2.0.1patch:/usr/lib/X11R5

# under SUN OS and Linux uncomment the next line
#LD_LIBRARY_PATH += $(CWPROOT)/lib:/usr/local/lesstif/lib

# under AIX on IBM uncomment the next line
#LD_LIBRARY_PATH = $(CWPROOT)/lib:/usr/X11R6/LessTif/lib

# under SUN OS and RedHat (and other) Linux uncomment the next line
LD_LIBRARY_PATH += $(CWPROOT)/lib:/usr/lib

#############################################################################
#####################################################################
#
# X-windows related materials:
#
# The paths to X11 include files and X11 libraries are not
# consistent between vendors. The following are generic paths.
# You may need to change these, if the include files and libraries
# are not in these locations on your machine.
# The default paths should work on many systems, for example,IBM RS6000.
# Examples of the path SUN are given here.
#
# Troubleshooting: Make sure that your machine really has the X-windows
# libraries and include files. Make sure that these files really
# are where you think they are.

#####################################################################
# X11 include and library paths
####
# Generic (RS6000, SGI)
# X11 include path
IX11 = /usr/local/include

# X11 library path
LX11 = /usr/local/lib
####

####
## The following X11 include and X11 lib paths are recommended for
## SUN, provided that the standard X11 stuff is really /usr/openwin.

# X11 include path
#IX11 = /usr/openwin/include

# X11 library path
#LX11 = /usr/openwin/lib
####

####
## The following paths would be used under Linux
## and possibly under SCO Unix installs
# X11 include path
IX11 = /usr/X11R6/include

# X11 library path
LX11 = /usr/lib


####
## Additional X libraries that may be needed for some systems

## Example: uncomment for CYGWIN32 installs
#XLFLAGSADD = -lSM -lICE


####
# Motif
#
# Note: Your machine can be running the Motif Window Manager, but not have the
# Motif Developers Package (include files with names like Xm.h
# and libraries with names like libXm.a). You can only do the xminstall
# if you have these include files and libraries.
#
# include path
IMOTIF = /usr/local/include

# library path
LMOTIF = /usr/lib

# Example of Lesstif usage:
# include path
IMOTIF = /usr/local/lesstif/include

# library path
LMOTIF = /usr/local/lesstif/lib

#### Example of Lesstif usage under RedHat
# include path
IMOTIF = /usr/include

# library path
LMOTIF = /usr/lib


#### Open GL/Mesa include and library paths (generic example)
# Open GL/Mesa include path
IGL = /usr/local/include

# Open GL/Mesa library path
LGL = /usr/local/lib

## GLUT include and library paths
# include path
IGLUT = /usr/local/include

# library path
LGLUT = /usr/local/lib

#### examples for SGI with glut installed in /usr/local/glut-3.3
## GLUT include and library paths
#IGLUT = /usr/local/glut-3.3

# Open GL/Mesa library path
#LGLUT = /usr/local/glut-3.3/lib/glut.n64
####

#### Old Red Hat Linux example
## GLUT include and library paths
#IGLUT = /usr/X11R6/include

# Open GL/Mesa library path
#LGLUT = /usr/X11R6/lib
###

#### Red Hat 7.2 Linux example
## GLUT include and library paths
IGLUT = /usr/include

# Open GL/Mesa library path
LGLUT = /usr/lib
###

################################################################
### CFLAGS lines (Don't change the next line)
include $(CWPROOT)/src/Rules/cflags.rules

######################################################################
### Linking Flags for Experimental 3D graphics
# The choice here is between the free Mesa package, and the
# Open GL (hardware-based) package.
#
### MESA / OPEN GL Linking Flags
# Uncomment the next line for installations using the free Mesa package
include $(CWPROOT)/src/Rules/newmesa.rules

# Uncomment the following line for installations using Open GL (eg. SGI)
include $(CWPROOT)/src/Rules/opengl.rules

######################################################################


######################################################################
# Suffix rules for library maintenance
#
# If your version of 'make' does not support suffix rules,
# you should install GNU make (often called 'gmake') and use that.
# Gmake is available from prep.ai.mit.edu (18.159.0.42)
# and other GNU mirror sites.

# standard suffix rules (do not change the next line)
include $(CWPROOT)/src/Rules/suffix.rules

include $(CWPROOT)/src/Rules/misc.rules
 
Old 05-28-2009, 03:12 PM   #7
zosta
LQ Newbie
 
Registered: Dec 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Many thanks,

Not that I know what I have done but everything was compiled successfully.
Now it is just to learn how to use it...

Could you please briefly explain what is mesa, glut and other required packages? What on earth are all those libraries?

I have extracted the su archive to /usr/local/src. Is that directory meant for such purpose or I got it totally wrong?

They say there are no stupid questions...

cheers,
Zbigniew
 
Old 05-28-2009, 04:06 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Mesa is the the free version of OpenGL, providing
/usr/lib/libGL.so.** , libGLU.so.** etc.

GLUT - The OpenGL Utility Toolkit
http://www.opengl.org/resources/libraries/glut/

And all the other 2,000 libs in /usr/lib/ :
just use Google for information.
.....
'rpm -qi <package>' : Also useful for information.
( Try 'rpm -qi freeglut' )
..............

'/usr/local/src' is OK, is never used for anything,
except your choices.
.....

Last edited by knudfl; 05-28-2009 at 04:19 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Reading And Writing SAC (Seismic Analysis Code) Data Files in Fortran codes lengyue Linux - Software 2 12-03-2008 01:39 PM
LXer: China Petroleum & Chemical Corporation Deploys Panasas ActiveStor Parallel Storage Clusters to Improve Seismic Analysis LXer Syndicated Linux News 0 05-17-2007 05:31 PM
Phillips Seismic Edge 706 not recognized be operating system. jrgnd Linux - Hardware 0 05-15-2004 05:20 PM
Phillips Seismic Edge 706 not recognized be operating system. jrgnd Linux - Hardware 0 04-25-2004 09:13 AM
Philips Seismic Edge Drivers fake Slackware 5 09-02-2003 09:39 AM


All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration