Installation on Mac OSX Mojave to Big Sur: Difference between revisions

From Flooxs
Jump to navigation Jump to search
(Created page with "'''The preparation you need do: ''' 1. Download the software and put it on your hard drive in a directory called flooxs. 2. Get the Developer Package for Mac and installed. XCo...")
 
No edit summary
Line 17: Line 17:


1. With macports, install: Plplot, Tcl-tk, Aquaterm, and Suitesparse by opening the terminal and using the command:
1. With macports, install: Plplot, Tcl-tk, Aquaterm, and Suitesparse by opening the terminal and using the command:
     sudo port install plplot tcl tk suitesparse
     sudo port install plplot tcl tk suitesparse cmake


3. Go to the [Your Location]/flooxs directory and run:  
3. Go to the [Your Location]/flooxs directory and run:  

Revision as of 16:51, 9 November 2023

The preparation you need do:

1. Download the software and put it on your hard drive in a directory called flooxs.

2. Get the Developer Package for Mac and installed. XCode is free on the App Store. Once in xcode, enable the command line tools by going to preferences/locations and selecting the command line tools in the option list.

3. Make sure you have the X11 or terminal.

4. If possible get a good text editor, like smultron.

5. Download macports.


Installing & Compiling FLOOXS on Mac:

1. With macports, install: Plplot, Tcl-tk, Aquaterm, and Suitesparse by opening the terminal and using the command:

   sudo port install plplot tcl tk suitesparse cmake

3. Go to the [Your Location]/flooxs directory and run:

  export FLXSHOME=`pwd`/flooxs
  export PL_LIBRARY=/opt/local/share/plplot5.15.0/tcl/

4. To build flooxs, go to [Your Location]/flooxs/src and run :

  make ARCH=macosx new

5. You need a start up file to set up environments, this can be put in your shell's rc file. Below is an example of text in the start up file:

  export FLXSHOME=[Your Location]/flooxs
  export PL_LIBRARY=/opt/local/share/plplot5.15.0/tcl/
  alias flooxs=$FLXSHOME/src/flooxs.new

6. You can source the start up file from Step 5 and when you run the command flooxs, it should run FLOOXS. Below is how to run FLOOXS without the start up file.


How to run the simulation on the Mac:

1. Go to Application --> Utilities, open X11.

2. Make sure you are working at the csh, if it is bash, please type csh, it will directly change to the csh.

3. Find the floops software where you put it, if you put it at the desktop, please type the following,

  & ls
  & cd Desktop
  & cd floops

4. Now you are at the floops directory, when you type cd, you will see NewExpr this file.

5. Then type the following commands,

  & setenv FLXSHOME `pwd`
  & cd src
  & ls
  & ./flooxs.new -device 

After these steps, when you see the following commands, that means you successfully launching the flooxs.


  argc 2
  i 0 argv ./flooxs.new
  i 1 argv -device
  i 0 argv ./flooxs.new
  i 1 argv -device
  i 0 argv ./flooxs.new
  i 1 argv -device
  Copyright 1993 University of Florida
  Copyright 1995, 1996, 1998, 2000, 2003 University of Florida
  Copyright 1995, 1996, 1998 University of Texas at Austin
                    _.---._     .---.
           __...---' .---. `---'-.   `.
       .-__.--' _.'( | )`.  `.  `._ :
     .'__-'_ .-- ._`---'_.-.  `.   `-`.
            ~ -._ -._``---. -.    `-._   `.
                 ~ -.._ _ _ _ ..-_ `.  `-._``--.._
                              -~ -._  `-.  -. `-._``--.._.--.
                                   ~ ~-.__     -._  `-.__   `. `.
                                         ~~ ~---...__ _    ._ .` `.
                                                     ~  ~--.....--~`
  Alagator Scripting Enabled!