OpenSees on a Mac OS X Leopard

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
hresquivelo
Posts: 40
Joined: Wed Feb 06, 2008 10:53 am
Location: Universidad del Norte

OpenSees on a Mac OS X Leopard

Post by hresquivelo »

How do I compile the source code (OpenSees) on a Mac OS X Leopard? But, please, step by step; I don't know how to do it!

Thanks in advance.

Note: I have the last update: Mac OS X 10.5.2.
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Post by rjaeger »

Hello,

You will need to download the source code first (either from the developer link above, or using CVS - there are CVS instructions if you want to get the latest source code updates).

Once you have the source code, you will also need to download Xcode from Apple. You can find this from a google search.

You will also need a fortran compiler, gfortran, which you can get from here: http://hpc.sourceforge.net/
Be sure to get the compiler which matches your system architecture (intel for intel macs, etc).

Install both Xcode and the fortran compiler. Then you need to follow the compile instructions here (for unix systems, but skip the step for TCL):
http://opensees.berkeley.edu/OpenSees/d ... builds.php
The makefile that you will want to use can be downloaded from here: http://opensees.berkeley.edu/cgi-bin/cv ... text/plain

I know this seems like a complicated process but it's not bad once you get started. Frank has mentioned that he plans to start distributing a binary version for Macs (like he is doing for Windows users) so if you don't feel like going through this, you might be able to get that in the coming weeks.

-Robbie
hresquivelo
Posts: 40
Joined: Wed Feb 06, 2008 10:53 am
Location: Universidad del Norte

Post by hresquivelo »

Ok, thanks for your answer. And yes, I will wait!
rjaeger wrote:Hello,

You will need to download the source code first (either from the developer link above, or using CVS - there are CVS instructions if you want to get the latest source code updates).

Once you have the source code, you will also need to download Xcode from Apple. You can find this from a google search.

You will also need a fortran compiler, gfortran, which you can get from here: http://hpc.sourceforge.net/
Be sure to get the compiler which matches your system architecture (intel for intel macs, etc).

Install both Xcode and the fortran compiler. Then you need to follow the compile instructions here (for unix systems, but skip the step for TCL):
http://opensees.berkeley.edu/OpenSees/d ... builds.php
The makefile that you will want to use can be downloaded from here: http://opensees.berkeley.edu/cgi-bin/cv ... text/plain

I know this seems like a complicated process but it's not bad once you get started. Frank has mentioned that he plans to start distributing a binary version for Macs (like he is doing for Windows users) so if you don't feel like going through this, you might be able to get that in the coming weeks.

-Robbie
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

i have posted the current version at the bottom of the users download page.
hresquivelo
Posts: 40
Joined: Wed Feb 06, 2008 10:53 am
Location: Universidad del Norte

Post by hresquivelo »

Thanks!
fmk wrote:i have posted the current version at the bottom of the users download page.
hellojikir
Posts: 10
Joined: Tue Apr 15, 2008 6:38 am

well

Post by hellojikir »

:D :D :D :D






ImageImageImageImageImageImageImageImageImageImage
hanilou
Posts: 1
Joined: Wed Apr 23, 2008 2:59 am

Post by hanilou »

Hello I am new at this, please excuse my rather basic question...

I have downloaded OpenSees for Mac (from the bottom of the download page). I am not sure if I have to install any additional packages. I have Mac OS 10.5.3.

In Windows, if I have a .tcl file called cantilever.tcl, I would type: "OpenSees cantilever.tcl". However, I get an error message when I use the command "OpenSees" on my Mac, saying that the command does not exist.

Can someone please help?

Thanks so much in advance.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you either need to get the directory that OpenSees is in in your PATH variable (type env in a terminal windows to see the current PATH; these are the directories that are searched when you issue a command from the erminal) or include the full path when you issue the command, e.g. /Users/fmk/bin/OpenSees cantilever.tcl
stuarts
Posts: 6
Joined: Sat Sep 27, 2008 8:00 pm
Location: UW

Post by stuarts »

I have some similar questions. I am trying to run OpenSees on OS X 10.5.5 and am having some difficulty setting everything up. I am relatively new to OpenSees and new to Apple machines.

My first question is how I can change the path that OpenSees runs through? When I run Opensees and try to source a .tcl file it returns saying that there is no such file or directory. I have the OpenSees executable file in the same directory as the .tcl files I am trying to run. I checked the current path using the env command in Terminal.

My second question is how I can create .tcl files on a Mac? I am used to a PC where I could write a file in notepad then change the extension to .tcl, then source the file in Opensees. Right now I cannot find a Mac program that will open or save .tcl files

Thanks for the help.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

as above place the directory containing OpenSees in your PATH .. to do this edit or create your .bash_profile file found in your home directory assuming you are using bash shell. if you don't understand what i am talking about you need to go get a book or browse online to see how to use your mac.

i use the emacs or the vi text editor. there are others. again browse online to see how
to use your mac.
Post Reply