Skip to content

Mac OS Installation Instructions

jhaack edited this page Apr 20, 2015 · 1 revision

// If you are not running bash, start bash by typing /bin/bash // Install Homebrew : $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Output: [mymachine:~] myuser% bash

bash-3.2$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

==> This script will install:

/usr/local/bin/brew

/usr/local/Library/...

/usr/local/share/man/man1/brew.1

==> The following directories will be made group writable:

/usr/local/.

/usr/local/bin

/usr/local/lib

==> The following directories will have their group set to admin:

/usr/local/bin

Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/lib

Password:

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin

==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew

==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew

==> Downloading and installing Homebrew...

remote: Counting objects: 234788, done.

remote: Total 234788 (delta 0), reused 0 (delta 0), pack-reused 234788

Receiving objects: 100% (234788/234788), 30.28 MiB | 7.66 MiB/s, done.

Resolving deltas: 100% (176071/176071), done.

From https://github.com/Homebrew/homebrew

  • [new branch] master -> origin/master

HEAD is now at 3473a4b lightning: update 2.1.0 bottle.

==> Installation successful!

==> Next steps

Run brew doctor before you install anything

Run brew help to get started

bash-3.2$ brew doctor

Please note that these warnings are just used to help the Homebrew maintainers

with debugging if you file an issue. If everything you use Homebrew for is

working fine: please don't worry and just ignore them. Thanks!

Warning: Unbrewed dylibs were found in /usr/local/lib.

If you didn't put them there on purpose they could cause problems when

building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:

/usr/local/lib/libecomlodr.dylib

bash-3.2$

// Install Python 3 : $ brew install python3

Output:

bash-3.2$ brew install python3

==> Installing dependencies for python3: xz, pkg-config, readline, sqlite

==> Installing python3 dependency: xz

==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.1.yosemite.bottle.ta

######################################################################## 100.0%

==> Pouring xz-5.2.1.yosemite.bottle.tar.gz

?? /usr/local/Cellar/xz/5.2.1: 59 files, 1.7M

==> Installing python3 dependency: pkg-config

==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.28.yosemite.bo

######################################################################## 100.0%

==> Pouring pkg-config-0.28.yosemite.bottle.2.tar.gz

?? /usr/local/Cellar/pkg-config/0.28: 10 files, 612K

==> Installing python3 dependency: readline

==> Downloading https://homebrew.bintray.com/bottles/readline-6.3.8.yosemite.bot

######################################################################## 100.0%

==> Pouring readline-6.3.8.yosemite.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X provides similar software, and installing this software in

parallel can cause all kinds of trouble.

OS X 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.

Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:

LDFLAGS:  -L/usr/local/opt/readline/lib

CPPFLAGS: -I/usr/local/opt/readline/include

==> Summary

?? /usr/local/Cellar/readline/6.3.8: 40 files, 2.1M

==> Installing python3 dependency: sqlite

==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.8.8.3.yosemite.bot

######################################################################## 100.0%

==> Pouring sqlite-3.8.8.3.yosemite.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in

parallel can cause all kinds of trouble.

OS X provides an older sqlite3.

Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:

LDFLAGS:  -L/usr/local/opt/sqlite/lib

CPPFLAGS: -I/usr/local/opt/sqlite/include

==> Summary

?? /usr/local/Cellar/sqlite/3.8.8.3: 9 files, 2.1M

==> Installing python3 dependency: gdbm

==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.11.yosemite.bottle.2

######################################################################## 100.0%

==> Pouring gdbm-1.11.yosemite.bottle.2.tar.gz

?? /usr/local/Cellar/gdbm/1.11: 17 files, 532K

==> Installing python3 dependency: openssl

==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2.yosemite.bott

######################################################################## 100.0%

==> Pouring openssl-1.0.2.yosemite.bottle.tar.gz

==> Caveats

A CA file has been bootstrapped using certificates from the system

keychain. To add additional certificates, place .pem files in

/usr/local/etc/openssl/certs

and run

/usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in

parallel can cause all kinds of trouble.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:

LDFLAGS:  -L/usr/local/opt/openssl/lib

CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary

?? /usr/local/Cellar/openssl/1.0.2: 459 files, 18M

==> Installing python3

==> Downloading https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz

######################################################################## 100.0%

==> ./configure --prefix=/usr/local/Cellar/python3/3.4.3 --enable-ipv6 --dataroo

==> make

==> make install PYTHONAPPSDIR=/usr/local/Cellar/python3/3.4.3

==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python3/3.4.3/sh

==> Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-

######################################################################## 100.0%

==> Downloading https://pypi.python.org/packages/source/p/pip/pip-6.0.8.tar.gz

######################################################################## 100.0%

==> Caveats

Pip has been installed. To update it

pip3 install --upgrade pip

You can install Python packages with

pip3 install

They will install into the site-package directory

/usr/local/lib/python3.4/site-packages

See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md

.app bundles were installed.

Run brew linkapps python3 to symlink these to /Applications.

==> /usr/local/Cellar/python3/3.4.3/bin/python3 -s setup.py --no-user-cfg instal

==> /usr/local/Cellar/python3/3.4.3/bin/python3 -s setup.py --no-user-cfg instal

==> Summary

?? /usr/local/Cellar/python3/3.4.3: 5899 files, 100M, built in 2.6 minutes

bash-3.2$

// Clone OpenEIS repository : $ git clone "https://github.com/volttron/openeis"

Output:

bash-3.2$ git clone "https://github.com/volttron/openeis"

Cloning into 'openeis'...

remote: Counting objects: 9934, done.

remote: Total 9934 (delta 0), reused 0 (delta 0), pack-reused 9934

Receiving objects: 100% (9934/9934), 12.76 MiB | 7.62 MiB/s, done.

Resolving deltas: 100% (6713/6713), done.

Checking connectivity... done.

bash-3.2$

// Bootstrap OpenEIS (using Python 3) : $ cd openeis :openeis $ python3 bootstrap.py

Output:

bash-3.2$ git clone "https://github.com/volttron/openeis"

Cloning into 'openeis'...

remote: Counting objects: 9934, done.

remote: Total 9934 (delta 0), reused 0 (delta 0), pack-reused 9934

Receiving objects: 100% (9934/9934), 12.76 MiB | 7.62 MiB/s, done.

Resolving deltas: 100% (6713/6713), done.

Checking connectivity... done.

bash-3.2$ cd openeis/

bash-3.2$ python3 bootstrap.py

Ignoring indexes: https://pypi.python.org/simple

Collecting setuptools

Collecting pip

Installing collected packages: pip, setuptools

Successfully installed pip-6.0.8 setuptools-12.0.5

Obtaining file:///Users/myuser/openeis/lib/openeis-ui

Obtaining file:///Users/myuser/openeis

Collecting python-dateutil (from openeis==0.1)

Downloading python_dateutil-2.4.0-py2.py3-none-any.whl (175kB)

100% |################################| 176kB 2.7MB/s

Collecting django<1.7,>=1.6 (from openeis==0.1)

Downloading Django-1.6.10-py2.py3-none-any.whl (6.7MB)

100% |################################| 6.7MB 81kB/s

Collecting django-filter (from openeis==0.1)

Downloading django_filter-0.9.2-py2.py3-none-any.whl

Collecting djangorestframework<2.4,>=2.3 (from openeis==0.1)

Downloading djangorestframework-2.3.14-py2.py3-none-any.whl (298kB)

100% |################################| 299kB 1.7MB/s

Collecting django-rest-swagger<0.2,>=0.1 (from openeis==0.1)

Downloading django-rest-swagger-0.1.14.tar.gz (150kB)

100% |################################| 151kB 2.4MB/s

Collecting jsonschema (from openeis==0.1)

Downloading jsonschema-2.4.0-py2.py3-none-any.whl

Collecting pytest-django (from openeis==0.1)

Downloading pytest_django-2.8.0-py2.py3-none-any.whl

Collecting django-pytest (from openeis==0.1)

Downloading django-pytest-0.2.0.tar.gz

Collecting pytz (from openeis==0.1)

Downloading pytz-2014.10-py2.py3-none-any.whl (477kB)

100% |################################| 479kB 936kB/s

Collecting numpy (from openeis==0.1)

Downloading numpy-1.9.2-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.7MB)

100% |################################| 3.7MB 107kB/s

Collecting six>=1.5 (from python-dateutil->openeis==0.1)

Downloading six-1.9.0-py2.py3-none-any.whl

Collecting pytest>=2.5 (from pytest-django->openeis==0.1)

Downloading pytest-2.6.4.tar.gz (512kB)

100% |################################| 516kB 860kB/s

Collecting py>=1.4.25 (from pytest>=2.5->pytest-django->openeis==0.1)

Downloading py-1.4.26.tar.gz (190kB)

100% |################################| 192kB 2.2MB/s

Installing collected packages: py, pytest, six, openeis, numpy, pytz, django-pytest, pytest-django, jsonschema, django-rest-swagger, djangorestframework, django-filter, django, python-dateutil, openeis-ui

Running setup.py install for py

Running setup.py install for pytest

Running setup.py develop for openeis

Running setup.py install for django-pytest

Running setup.py install for django-rest-swagger

Running setup.py develop for openeis-ui

Successfully installed django-1.6.10 django-filter-0.9.2 django-pytest-0.2.0 django-rest-swagger-0.1.14 djangorestframework-2.3.14 jsonschema-2.4.0 numpy-1.9.2 openeis-0.1 openeis-ui py-1.4.26 pytest-2.6.4 pytest-django-2.8.0 python-dateutil-2.4.0 pytz-2014.10 six-1.9.0

bash-3.2$

// Activate virtual environment :openeis $ . env/bin/activate

Output: bash-3.2$ . env/bin/activate

(openeis)bash-3.2$

// Start OpenEIS server (openeis):openeis $ openeis runserver

Output:

(openeis)bash-3.2$ openeis runserver

Validating models...

0 errors found

March 04, 2015 - 14:29:46

Django version 1.6.10, using settings 'openeis.server._settings'

Starting development server at http://127.0.0.1:8000/

Quit the server with CONTROL-C.

// Now start a web browser and connect to http://127.0.0.1:8000/

Home

Tables of contents:

Clone this wiki locally