Showing posts with label OS X. Show all posts
Showing posts with label OS X. Show all posts

Saturday, September 10, 2016

macOS Sierra: Homebrew Installation Error: Permission Problem

Command:

$ brew install tree


Result:

Error: /usr/local is not writable. You should change the ownership
and permissions of /usr/local back to your user account:
  sudo chown -R $(whoami) /usr/local
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
Error: Your Xcode (7.3.1) is outdated
Please update to Xcode 8.0.
Xcode can be updated from
  https://developer.apple.com/xcode/downloads/
If 8.0 is installed, you may need to:
  sudo xcode-select --switch /path/to/Xcode-beta.app

Wednesday, September 7, 2016

OS X: GNU Fortran

Command:

$ brew install gfortran


Result:

Error: No available formula with the name "gfortran" 
GNU Fortran is now provided as part of GCC, and can be installed with:
  brew install gcc


Command:

$ gfortran --version


Result:

GNU Fortran (Homebrew gcc 5.3.0) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

OS X: Installing Clozure CL

Command:

$ brew install clozure-cl


Result:

==> Downloading http://ccl.clozure.com/ftp/pub/release/1.11/ccl-1.11-darwinx86.tar.gz
######################################################################## 100.0%
🍺  /usr/local/Cellar/clozure-cl/1.11: 1,568 files, 178.5M, built in 1 minute 46 seconds
$ ccl --version
Version 1.11-r16635  (DarwinX8632)

Tuesday, July 26, 2016

GSL (GNU Scientific Library): Installing on OS X

Command:

$ cd /tmp && mkdir gsl && cd gsl
$ curl ftp://ftp.gnu.org/gnu/gsl/gsl-latest.tar.gz > gsl.tgz
$ tar xf gsl.tgz && cd gsl-*
$ ./configure && make && sudo make install

Polyworld: OS X: Installation, Configuration, and Execution

Requre:

  • Install Qt
  • Install GSL

Command (Download source):

$ git clone https://github.com/polyworld/polyworld.git


Command (Configure):


$ cd ~/polyworld
$ ./configure -q ~/Qt/5.7/clang_64/bin/qmake

Result:

Operating System: darwin
CXX: clang++
Toolchain: llvm
QMake: /Users/username/Qt/5.7/clang_64/bin/qmake
Optimization: optimized
OpenMP Supported: False
Configure complete.


Command (Run):

$ ./Polyworld worldfiles/hello.wf

Result:

hello.wf

Qt: Downloading for OS X

Qt

Download link:

http://download.qt.io/official_releases/online_installers/qt-unified-mac-x64-online.dmg


File name:

qt-unified-mac-x64-2.0.3-2-online.dmg

Monday, July 18, 2016

CentOS: Quick Fixing the Locale Problem When Terminal.app Failed to Set Locale Environment Variables on Startup

Command:

$ locale

Result:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: LC_ALL??????????????????: ??????????????????????
LANG=ja_JP.utf8
LC_CTYPE=UTF-8
LC_NUMERIC="ja_JP.utf8"
LC_TIME="ja_JP.utf8"
LC_COLLATE="ja_JP.utf8"
LC_MONETARY="ja_JP.utf8"
LC_MESSAGES="ja_JP.utf8"
LC_PAPER="ja_JP.utf8"
LC_NAME="ja_JP.utf8"
LC_ADDRESS="ja_JP.utf8"
LC_TELEPHONE="ja_JP.utf8"
LC_MEASUREMENT="ja_JP.utf8"
LC_IDENTIFICATION="ja_JP.utf8"
LC_ALL=


Command:

$ LC_CTYPE=ja_JP.utf8
$ locale

Result:

LANG=ja_JP.utf8
LC_CTYPE=ja_JP.utf8
LC_NUMERIC="ja_JP.utf8"
LC_TIME="ja_JP.utf8"
LC_COLLATE="ja_JP.utf8"
LC_MONETARY="ja_JP.utf8"
LC_MESSAGES="ja_JP.utf8"
LC_PAPER="ja_JP.utf8"
LC_NAME="ja_JP.utf8"
LC_ADDRESS="ja_JP.utf8"
LC_TELEPHONE="ja_JP.utf8"
LC_MEASUREMENT="ja_JP.utf8"
LC_IDENTIFICATION="ja_JP.utf8"
LC_ALL=


Command:

$ date

Result:

2016年  5月 18日 水曜日 03:47:01 JST

Friday, June 10, 2016

Nmap (Network Mapper): Scanning for Open Ports of Remote Server from Local Machine (OS X)

Command (Scanning open ports of a LAN server):

$ sudo nmap -sT -P0 -p 1-65535 192.168.0.6
Password:

Result:

Starting Nmap 7.12 ( https://nmap.org ) at 2016-07-16 16:34 JST
Nmap scan report for 192.168.0.6
Host is up (0.0064s latency).
Not shown: 65534 closed ports
PORT   STATE SERVICE
22/tcp open  ssh

Nmap done: 1 IP address (1 host up) scanned in 34.09 seconds


Command (Scanning open ports of a remote server):

$ sudo nmap -sT -P0 -p 1-65535 remote.servername.com

Result:

Starting Nmap 7.12 ( https://nmap.org ) at 2016-07-16 16:36 JST
Nmap scan report for remote.servername.com (150.000.000.00)
Host is up (0.053s latency).
rDNS record for 150.000.000.00: ik1-000-00000.vs.hostingservice.ne.jp
Not shown: 65533 filtered ports
PORT   STATE  SERVICE
22/tcp open   ssh
80/tcp closed http

Nmap done: 1 IP address (1 host up) scanned in 436.18 seconds