Install .tar.gz on MAC

Viewed 13682

I failed to understand the INSTALL.md file. I know few programming knowledge. I appreciate anyone can give me a thorough explanation or instruction.

The software I wanna install is https://sourceforge.net/projects/scidavis/

Information in INSTALL.md

Mac OS X - MacPorts instructions

These notes refer to use MacPorts. Using other build environments such as HomeBrew is presumably equally as viable, but you may need to hack the config files a bit.

  1. Install MacPorts.

  2. Install XCode and XCode command line tools

  3. If you want to be able to run your build on an earlier version of MacOSX than your build machine, see How to build a Macintosh executable that will run on older versions of MacOSX.

  4. Install the prerequisites for scidavis.

  • port install qt4-mac qwt52 qwtplot3d boost gsl py27-pyqt4 py-pyqwt py27-sip muparser
    Sadly, you may need to do this step multiple times before eveything is installed
  1. link sip-2.7 share directory to where sip expects it to be:
ln -sf /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/sip /opt/local/share/py27-sip
  1. Add qt's bin directory to your PATH
  • PATH=/opt/local/bin:/opt/local/libexec/qt4/bin:$PATH
  1. Configure scidavis
  • qmake CONFIG+=osx_dist
  1. Build scidavis
  • make qmake
  • make
  1. Create the installable package
  • sh mkMacDist.sh

Thanks in advance

2 Answers

If you are trying to install a tar.gz files you must first run gunzip on the file. gunzip filename. This should give you a .tar file. To open the tar file run: tar -x filename.tar.


NOTE: if you're trying to install a unix executable, it's sometimes easier to use homebrew. Search the internet for the application you're trying to install and the term homebrew, and it might bring up a page on homebrew and give you a simple install command which you can run in the mac terminal.


Steps to install tar.gz on macOS

  1. Double click it the tar.gz file open it
  2. Its contents (e.g. directories/files it contained) should appear in the same directory the tar.gz file is in (to prevent clutter, consider placing the tar.gz file in a new, empty directory before double clicking on it)
  3. One of the new files might be a unix executable that looks like this: enter image description here
  4. Open another finder window (command + n), navigate to this location /usr/local/bin, and place the executable file you found in the previous step in this new location (you can do this using the mac terminal if you prefer - here's a random example showing show)
  5. At this point, open a new terminal tab, and type the name of the program (the file you moved in steps 4), terminal should recognise the program. However, if you see this there is one more step:

enter image description here

  1. Go to System Preferences -> Security & Privacy -> General tab. Click the lock icon, type password if it asks for it, and then click on 'Allow'.

enter image description here

Related