Showing posts with label Mac OSX. Show all posts
Showing posts with label Mac OSX. Show all posts

Saturday, August 25, 2012

gcc not found in mac terminal

After upgrading to OSX 10.8 Mountain Lion, gcc compiler package was lost and gcc command seems missing. 
When entering 'gcc -v' command in terminal, it displayed gcc command not found. 

To install gcc back, Command line tools in Xcode should be installed.

Open Xcode, go to preferences... Command Line Tools is in Downloads section. 

If Command Line Tools is not installed, just install it or update it.

gcc compiler installed or not can be checked by entering 'gcc -v' or simply 'gcc' command.

Friday, August 10, 2012

Gnuplot stop plotting in Mountain Lion

After upgrading Lion to Mountain Lion, GNUPLOT stop plotting the stuffs. I already downloaded XQuartz as Mountain Lion doesn't include X11 and Aquaterm isn't supported in Mountain Lion. XQuartz can be downloaded from here.

To get plot using Gnuplot, I just added

                               export GNUTERM='x11'

to my .bash_profile
Now Gnuplot start plotting. That's great...助かりました。

Friday, April 6, 2012

Using iCloud as a Dropbox


Here is a method how to share various type of file or folder using iCloud. 

It is not officially proven process but works fine over two macs with same apple id. It is easy, just copy the file or folder to share inside

 /Library/MobileDocument. 

If Library folder is not found, go to the finder, in go menu, click on go to Folder and enter 

~/Library/ 

You can put file or folder upto 5Gb inside 「Mobile Document 」folder for free. Storage can be checked from iCloud in system preference. 

These files can be  accessed from any macs that  signed in with same apple id.  

Thursday, February 23, 2012

Viewing hidden files on mac


Most of the system file in mac are hidden. These hidden files and folder in mac can be viewed by following ways:

1. Open terminal application

2. Execute command: 

defaults write com.apple.finder AppleShowAllFiles -bool true

To hide files and folder

1. Execute command: 

defaults write com.apple.finder AppleShowAllFiles -bool false


These will come into effect after logging out and logging in

Wednesday, February 8, 2012

How to install Seismic Unix on mac OS X

Seismic Unix is a open source seismic processing package supported by Central for Wave Phenomena (CWP) at the Colorado School of Mines. Seismic Unix (SU) package (latest 43R1) can be downloaded from  Seismic Unix Home page

Here is step-by-step installation process in mac OS environment.

1. Download tar file in the path-----Users/You/cwpsu. It is better not to download in root

2. Uncompress or Untar the file using

                tar -xvf cwp_su_all_43R1.tar

3. In home folder, check for .bash_profile and set CWPROOT environment after editing it as

                export CWPROOT=Users/You/cwpsu

                PATH=$PATH:/Users/You/cwpsu/bin: .

                export PATH

4. Insert command - source .bash_profile

               You can check environment by
               echo $CWPROOT

5. In cwpsu/src, edit Makefile.config or you can copy from cwpsu/src/configs as

              cp configs/Makefile.config_Darwin_i386    

$CWPROOT/src/Makefile.config

6. Install by entering command - make install

Install 'command line tool' if not installed previously.
Open Xcode, go to preferences, Downloads ---- Install 'Command line tools'


7. Type command - make xtinstall

8. Check by typing command - suplane | suximage &

For help and tutorials see SU Wiki Guide

Enjoy Seismic Unix !!

Note: 
In 'Makefile.config_Darwin_i386' in folder 'Src/Config', spelling should be corrected. 'T' in the -DCWP_LITTLE_ENDIAN is missing.

LINEHDRFLAG =
XDRFLAG = -DSUXDR
ENDIANFLAG = -DCWP_LITTLE_ENDIAN
LARGE_FILE_FLAG =

CWP_FLAGS = $(LARGE_FILE_FLAG) $(ENDIANFLAG) $(XDRFLAG) $(LINEHDRFLAG)