Programming at MacBook (an old collection)
“Will update soon”
This is just a rough draft of the post. Will write it properly later. However, this post in current form will help in understanding the steps to follow before coding on MacBook. Some of the software installations may need permission on a proxy network. So whenever, you face any problem on proxy site just export your proxy IP and port properly and install. I have tested all these things on my MAC over a proxy server and almost all of them have worked. If you face any problem in doing so, kindly ping me. I would love to help. 😀 😀 😀 😀
In this post, I will give a step by step things to do before starting to do programming on Macbook. You need to have following software/packages on your Macbook-
Xcode, Python, Gnuplot, MPI , Xquartez.
Xcode
Xcode can be installed from the App store of your mac. To open the App store, click Launchpad, then search “App Store“. App store will be opened. Then search Xcode. Click on “Get“. It may ask your icloud password. Xcode is an integrated development environment (IDE) for macOS containing a suite of software development tools developed by Apple for developing software for macOS, iOS, watchOS, and tvOS. If you are familiar with the “gedit” of the Ubuntu Linux platform, then this works perfectly like it. After becoming used to xcode, you will find some of the most interesting features of the xcode. You also find xcode from the browser using the following link https://developer.apple.com/xcode/ .
Python
Python is an interpreted, high-level, general-purpose programming language. To install it, go to the following site- https://www.anaconda.com/download/ . Download the latest version of the anaconda python and by double-clicking the downloaded package, you can install easily. You can install it by giving a simple terminal command. I will discuss this later. To know python in more details, go to https://www.python.org/.
https://matplotlib.org/users/installing.html
Before installing homebrew, install
1). xcode
2). xcode select xcode-select — install
xcode-select -p =====> installed in /Applications/Xcode.app/Contents/Developer
4). /usr/bin/ruby -e “$(curl -x Proxy-IP:port -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Installing any software using homebrew (proxy server)-
1). homebrew install packagename for example .
export ALL_PROXY=Proxy-IP:port first run this then next one
brew install xquartz (brew cask install xquartz)
brew install gnuplot
brew install wine (https://www.davidbaumgold.com/tutorials/wine-mac/ follow here )
or
http_proxy=https://username:password@IP_address:port https_proxy=https://username:password@IP_address:port brew install gnuplot
Install xquartex before installing the gnuplot given at https://www.xquartz.org/
2). SOMEOTHER THINHGS
https://www.wikihow.com/Open-Applications-Using-Terminal-on-Mac . OPEN ANY APP VIA TERMAINAL
*****************************************************************
FOR GNUPLOT after installation following things may come:
If you need to have gettext first in your PATH run:
echo ‘export PATH=”/usr/local/opt/gettext/bin:$PATH”‘ >> ~/.bash_profile
For compilers to find gettext you may need to set:
export LDFLAGS=”-L/usr/local/opt/gettext/lib”
export CPPFLAGS=”-I/usr/local/opt/gettext/include”
==> libffi
libffi is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of libffi.
For compilers to find libffi you may need to set:
export LDFLAGS=”-L/usr/local/opt/libffi/lib”
==> icu4c
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).
If you need to have icu4c first in your PATH run:
echo ‘export PATH=”/usr/local/opt/icu4c/bin:$PATH”‘ >> ~/.bash_profile
echo ‘export PATH=”/usr/local/opt/icu4c/sbin:$PATH”‘ >> ~/.bash_profile
For compilers to find icu4c you may need to set:
export LDFLAGS=”-L/usr/local/opt/icu4c/lib”
export CPPFLAGS=”-I/usr/local/opt/icu4c/include”
==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
For compilers to find readline you may need to set:
export LDFLAGS=”-L/usr/local/opt/readline/lib”
export CPPFLAGS=”-I/usr/local/opt/readline/include”
Install openmpi via homebrew
brew install openmpi
just run all the red lined command in the terminal.
open -a mathematica (from any location of the installation)
open mathematica (from home directory of the installation)