Next  |  Prev  |  Up  |  Top  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

Additional Installs on Mac OS X Mountain Lion

port install bonnie ;; disk benchmarks - would not compile before 9/2012
port install odt2txt
port install time-track-cli ;; time_track.tcl start|stop|status|summary
port install qtoctave-mac ;; trying out front end to octave: qtoctave
;; Work around a bug in the Faust distribution (10/5/12):
cd /usr/local/include/faust/gui/
ln ../audio/meta.h .
ln -s /Applications/Utilities/XQuartz.app /Applications/Utilities/X11.app
port install git-extras
port install lftp ;; how did I only now learn of this?!
port install texlive-pstricks
copy enumitem.sty subfigure.sty boxedminipage.sty epic.sty eepic.sty vmargin.sty from 2010 texlive distribution to personal folder of TeX input files (MacPorts texlive seems not to have them any more)
port install gnome-utils ;; => gnome-panel evolution-data-server gnuregex libgnome-keyring gnome-keyring libgweather libsoup glib-networking libproxy py27-pygtk libglade2 libical nss nspr gnome-desktop gnome-themes gtk-engines2 startup-notification gnome-menus libbonoboui libgnome libgnomecanvas libcanberra libwnck policykit-gnome libgtop
port install imaxima ;; use from Emacs
;; failed: port install wxMaxima
;; workaround:
;; get Portfile patch from 
;; http://trac.macports.org/attachment/ticket/37344/Portfile.diff
;; and put it in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/math/wxMaxima
;; cd there and type
   patch Portfile Portfile.diff
   port install wxMaxima +wxWidgets30
;; This gets it built and installed, but then maxima crashes:
;; > maxima
;; fatal error encountered in SBCL..:
;; can't load .core for different runtime, sorry
;; After reading http://trac.macports.org/ticket/37214
;; and https://trac.macports.org/wiki/howto/InstallingOlderPort
;; and finding https://trac.macports.org/log/trunk/dports/lang/sbcl/Portfile
;; I tried this:
svn co -r 98354 http://svn.macports.org/repository/macports/trunk/dports/lang/sbcl
cd sbcl
port install
port -f uninstall maxima
port install maxima
;; However, this did not work for me. Trying a yet older version (1.0.58):
cd ..
mv sbcl sbcl-1.1.0_0
svn co -r 96403 http://svn.macports.org/repository/macports/trunk/dports/lang/sbcl
;; reinstall maxima as above
;; still no luck
;; Since gdb is haywire in emacs:
;;   sudo port deactivate imaxima
;;   sudo port deactivate emacs
;; (using latest 
port install mplayer2 ;; working on class-video compression
;; pulls in a52dec enca fribidi libass libdca libdv libdvdnav libdvdread libdvdcss libquvi libquvi-scripts mesa xorg-dri2proto xorg-glproto py27-docutils py27-roman
;! sudo port install ffmpeg +nonfree
port install octave-specfun ;; for besseli(alpha,x,opt)
port install swig      ;; for faust2android
port install swig-java ;; for faust2android
port install f2c ;; fortran-to-c translator - for octave build from source
;; tried g95, but it was incompatible with libblas.dylib
;; manually install http://fossies.org/linux/misc/old/fort77-1.18.tar.gz
;;  Had to add the following lines at line 191 or so:
;;    push(@includes, "-I/opt/local/include");
;;    push(@lopts, "-L/opt/local/lib");
port install atlas ;; for octave build - pulled in clang-3.3,llvm-3.3
;;  No luck: 64-bit architecture mismatch - giving up on this path for now..
;;  Next following advice at http://wiki.octave.org/Octave_for_MacOS_X
port install octave-devel +atlas+docs
port install octave-signal ;; pulls in octave-control octave-optim octave-miscellaneous octave-general octave-struct octave-specfun
port install octave-plot ;; not sure this was needed (had a plot problem)
port install octave-audio ;; failed to install
port install octave-data-smoothing ;; looking for butter, actually
easy_install latex2markdown ;; for latex to mathjax conversion
     USAGE: python2.7 -m latex2markdown file.tex file.markdown
;; begin for git:
curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
chmod u+x git-credential-osxkeychain
mv git-credential-osxkeychain /usr/bin 
;; end for git

;; Really need octave-audio now - web search =>
;; Problem appears to be no ObjC support in gcc-mp - must force clang/llvm-gcc:
;; Modified (6/8/13) from http://trac.macports.org/ticket/37761
   mkdir /var/tmp/oct-5kFozQ
   cd /var/tmp/oct-5kFozQ/
   tar -zxvf /opt/local/var/macports/distfiles/octave-audio/audio-1.1.4.tar.gz
   cd audio-1.1.4/src/
   sh autogen.sh
   setenv CC clang
   ./configure
   make
   make install

;; During upgrade, hit warning during octave-devel upgrade:
;;    WARNING: Dependency 'arpack' is installed with the +accelerate
;;    variant, using Apple's Vector Libraries which have known bugs that can
;;    cause Octave to crash if using certain functions in arpack.  The
;;    +atlas variant does not have these issues with Octave, and is
;;    considered by Octave developers a better way to go.
;; Also hit error: arpack: Variant openmpi conflicts with gcc43 =>
port install openmpi +atlas
port uninstall openmpi @1.7.2_0+gcc43
port uninstall gcc43
port install arpack +atlas
port uninstall octave-plot ;; shadows ginput, which is not yet working
port uninstall gnome-utils ;; need to upgrade bison =>
port uninstall libpanel-applet2
sudo port uninstall libgdata webkit-gtk yelp
port uninstall libquvi VLC avahi
port uninstall gnome-panel evolution-data-server gnuregex libgnome-keyring gnome-keyring libgweather libsoup glib-networking libproxy py27-pygtk libglade2 libical nss nspr gnome-desktop gnome-themes gtk-engines2 startup-notification gnome-menus libbonoboui libgnome libgnomecanvas libcanberra libwnck policykit-gnome libgtop
port uninstall gstreamer1 gstreamer010 gstreamer1-gst-plugins-base
port uninstall bison
port uninstall py27-nose py27-roman py27-numpy py27-docutils
port clean all
port install octave-devel +fltk +gcc47
;; Now, FINALLY, "graphics_toolkit fltk" works in octave and I can use uimenu and such in plots
svn checkout http://svn.pyyaml.org/libyaml/branches/stable libyaml ;; need for smsPrint
sudo port install python27 ;; for mercurial
port install py27-docutils ;; for mercurial
svn checkout http://svn.code.sf.net/p/docutils/code/trunk docutils ;; mercurial still not happy
  cd docutils/docutils
  python setup.py install
port install mercurial ;; finally!
hg clone https://code.google.com/p/mat-yaml ;; need for smsPrint
cd mat-yaml/mex-src
  mkoctfile -I/usr/local/include yaml_mex.c yaml_mex_util.c -lyaml
  cp yaml_mex.oct <where needed>
svn checkout svn://svn.code.sf.net/p/freeframe/svn/trunk freeframe-svn ;; messing around
port install tcl
/usr/sbin/apxs -q CC ;; is full of crap - make it work:
cd /Applications/Xcode.app/Contents/Developer/Toolchains
ln -s XcodeDefault.xctoolchain OSX10.8.xctoolchain
sudo touch /var/log/bluetoothAudio.log
sudo chmod 777 /var/log/bluetoothAudio.log
;; flail with bluetooth 
open /var/log/bluetoothAudio.log
defaults delete com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)"
Install Virtual MIDI Piano Keyboard from .dmg: http://sourceforge.net/projects/vmpk/files/
Install SPAN spectrum analyzer AU plugin: http://www.voxengo.com/product/span/
(Previously installed Blue Cat AU plugin "BC Freq Analyst")
port install octave-nan ;; statistics and machine learning toolbox for Octave
;; Resolve lack of llvm-3.0 support in Mavericks:
port install llvm-3.3
port install ld64 +llvm33
port install cctools +llvm33
port uninstall llvm-3.0
port upgrade outdated
;; octave snafu:
port uninstall octave-data-smoothing
port uninstall octave-optim
port uninstall octave-miscellaneous octave-signal
port uninstall octave-general octave-struct octave-specfun
;; more mavericks / MacPorts lossage:
port uninstall mp3blaster
port uninstall openjpeg
;; rebuild as needed:
port install octave-signal
port list installed | grep octave
;; have optim, misc, general, struct, specfun, leaving only
port install octave-data-smoothing
;; MacPorts stuff updated and error-free on 12/15/2013
port install netcdf ;; Network Common Data Form (NetCDF)
port install netcdf-cxx4 ;; NetCDF new C++ library
port install sox ;; how did I get by for so long?
;; download JACK OSX zip from http://www.jackosx.com/download.html
port install readline ;; for SuperCollider
port install emacs-w3m-devel ;; "
port install imaxima ;; GUI front-end for Maxima
;; Make faust2caqt and faust2jaqt et al work:
  cd /opt/local/share/qt4/mkspecs
  ln -s macx-llvm macx-clang
;; Alternative in makefiles: 
;; test `qmake --version | tail -1 | sed -e 's/^.*version \([0-9]*\).*$/\1/'` -gt 4 && echo macx-clang || echo macx-g++
;; -
;; git clone https://github.com/andymcd/cmd-key-happy
;;   and follow INSTALL instructions [LOVE IT!]
;; Bought and installed KeyNote from the Mac Store ($20)
port install qrencode ;; Faust needs this now [discovered 4/9/14]
octave:1> pkg install -forge control ;; otherwise is_real_matrix is undefined
port install octave-control ;; since the above line failed
octave:1> pkg install -forge control ;; fails still
port install guile ;; for radium
port install lame ;; to convert .mp3 to .wav
;; download and unzip: http://www.amazingnoises.com/amz/product/grain-reverser/
mv Grain\ Reverser.amxd /Applications/Ableton\ Live\ 9\ Suite.app/Contents/App-Resources/Misc/Max\ Devices/
port select --set python python27
port install fortune ;; for fun: fortune | say
port install p7zip ;; needed to unpack a .7z file (Mellotron.7z for NI); installs 7z, 7za, 7zr
  ;; Installed in /Applications/Native Instruments/Reaktor 5/Library/Ensembles/Classics/Synthesizer/
port install swig-python ;; needed by CMU Sphinx
port install octave-signal ;; needed by CMU Sphinx
pkg install /opt/local/var/macports/distfiles/octave-signal/signal-1.2.2.tar.gz ;; try to fix .oct path [failed]
port uninstall llvm-3.2 ;; no longer builds - no dependents
port uninstall --follow-dependents octave ;; trying a complete reinstall of Octave
port -u uninstall --follow-dependents ;; more cruft
port install octave-signal ;; brings in octave, octave-control, octave-general
octave
  test('resample')
port install -f octave +fltk +atlas +gcc48 ;; Supplement default = +atlas +gcc48 (needed fltk) [avoid +accelerate]
git clone http://git.code.sf.net/p/guitarix/git guitarix
sudo port install liblrdf ;; needed by guitarix
sudo port install slv2 ;; lv2 support needed by guitarix
;; Resolving headbutts with v3.8.1_2:
port list installed | octave
port uninstall octave-control octave-general octave-signal octave-specfun
port install octave-control octave-general octave-signal octave-specfun
;; did not help
port uninstall octave-control octave-general octave-signal octave-specfun octave
;; Apparently had octave @3.8.1_2+atlas+gcc48
port install -f octave +fltk +atlas +gcc48
pkg install -forge control ;; failed
port uninstall octave-control octave
cd <octave source>
 hg -v pull
 hg -v update
 doit =>
 bootstrap
 ./configure ;; failed - no usable fortran compiler
 ;; download gfortran.pkg from https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
 port install qhull ;; Octave's CONFIGURE wanted it for geometry stuff
 port install ql2ps ;; Octave's CONFIGURE wanted it for Open GL printing
 port install qscintilla ;; Octave's CONFIGURE wanted it for builtin GUI editor
 ;; Octave's CONFIGURE can't see qhull or gl2ps - hacked configure file
 ;; Build failed with 5 errors (generic C++ stuff) - punting
 Download 10.9 binary installer from http://wiki.octave.org/Octave_for_MacOS_X#Binary_installer_for_OSX_10.9.1
 ln -s /Applications/Octave-cli.app/Contents/MacOS/Octave ~/bin/octave
 > octave
  pkg list
  pkg load signal
  pkg load audio
  pkg -forge install control ;; fails
port install octave +fltk +atlas +gcc48
octave
  pkg load signal
  pkg -forge install control ;; fails still
;; downloaded octave-forge control package to /w/octave-forge/control
cd /w/octave-forge/control/src
make ;; fails - clang++ problem, but .oct files build ok it seems, just not the slicot library
port install octave-control ;; appears happy
octave
> tf(1) ;; fails
  not loaded: /opt/local/lib/octave/3.6.4/liboctinterp.1.dylib
sudo port install texlive-fonts-recommended ;; 
updmap ;; 
port uninstall mplayer2 ;; not using it and port upgrade failed - maybe try MPlayer, mplayer-devel instead sometime
port install octave-signal
port install multimarkdown ;; powerdot is dead
port install pandoc ;; for combining multiple files (pulls in a ton of hs-* (Haskell) stuff and ghc)
;; Yosemite upgrade:
xcode-select --install
;; MacPorts dead - website not accessible - trying homebrew:
sh
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
;; cf https://github.com/Homebrew/homebrew/tree/master/share/doc/homebrew#readme
brew doctor
brew install octave ;; pulls in pkg-config, gnu-sed, texinfo, fftw, dotwrp, readline, cmake, tbb, libtool, libpng
  ;; filed to install dependency qrupdate: 
  ;; "Error: no implicit conversion of nil into String"
;; Re-install MacPorts from https://www.macports.org/install.php
;; 
port -v selfupdate
port -cup upgrade outdated
;; scratch that - follow instructions at https://trac.macports.org/wiki/Migration
;; upgrade VMware Fusion Pro for $80 to fix unuseable screen mangling in vm (ouch)
port install octave-signal
git clone https://bitbucket.org/agraef/faust-vst
  mkdir /usr/local/src ;; 
  ln -s /l/fj/vstsdk3 /usr/local/src/vstsdk
  cd faust-vst; make; make install
  cp faust2faustvst /w/scripts/
  cp -p faustvst.cpp /usr/local/lib/faust
sudo port install py-scipy ;; to define pylab - stub - pulls in stuff
;; Follow (adapted) http://sublimated.wordpress.com/2009/01/20/how-to-install-matplotlib-and-scipy-using-macports/
sudo port install py27-scipy py27-ipython ;; trying to get pylab going
sudo port install py27-numpy py27-matplotlib ;; trying to get pylab going
sudo port install py27-wxpython-3.0
;; FAQ: http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
;; Create and add the following to ~/.matplotlib/matplotlibrc
   backend : WXAgg # Use wxpython as the plotting backend.
;; Now this works:
python2.7
>>> import matplotlib.pyplot as plt
>>> plt.plot([1,2,3])
;; works, but no plot visible. The following fixes it somehow (and works):
python simple_plot.py --verbose-helpful
;; where simple_plot.py contains:
   from pylab import *
   plot([1,2,3])
   show()
port install py27-pip ;; seems like a nice tool, though I don't need it now
port select --set pip pip27 ;; continuing with that
pip-2.7 install matplotlib ;; does nothing (already done)
pip-2.7 upgrade matplotlib ;; upgraded python-dateutil from 2.2 to 2.3, so ok!
port install octave-symbolic ;; for newtonsMethod.m
port uninstall octave-symbolic ;; so octave would start
port install faustlive-devel ;; check it out!
port installed | grep octave
  octave @3.8.2_3+atlas+gcc48 (active)
  octave-control @2.6.5_0 (active)
  octave-general @1.3.4_0 (active)
  octave-signal @1.2.2_0 (active)
  octave-specfun @1.1.0_0 (active)
port uninstall --follow-dependents octave
>alias octave /Applications/Octave-cli.app/Contents/MacOS/Octave 
octave> pkg install -forge control ;; fails
octave> pkg load signal
octave> pkg load audio
octave> pkg install -forge statistics ;; fails: "statistics needs io >= 1.0.18"
octave> pkg -verbose install -forge io ;; fails
port install kaffe ;; java - needed to build octave from source - pulls in much stuff - ABORTED
port install automake ;; needed to build octave from source
port install autoconf ;; needed to build octave from source
;; Edit Makefile manually to set AUTOCONF, AUTOHEADER, AUTOMAKE to /opt/local/bin/*
cd /usr/local/Library
git clean -d -f 
brew update
brew tap --repair && brew tap homebrew/science
brew install Caskroom/cask/java
brew link --overwrite gcc
brew install octave
brew install slicot ;; needed by Octave Forge control package
octave> pkg -verbose install -forge control ;; fails
unsetenv CDPATH
octave> pkg -verbose install -forge control ;; fails later in make (Homebrew configure failed)
;; Try to build octave from source (octave-hg)
;; Install Java download: https://www.java.com/en/download/mac_download.jsp?locale=en
port install gcc49 ;; gotta bypass clang to build octave
port select --list gcc
port select --set gcc mp-gcc49
brew install gcc49 ;; gotta bypass clang to build octave from source (parallel front)
brew reinstall octave --with-docs ;; to fix `pkg install -forge control` 
;; FAILS due to ghostscript already being there
port install octave +fltk +atlas +gcc49 ;; getting desparate now
alias octave-cli /Applications/Octave-cli.app/Contents/MacOS/Octave 
alias ohb /usr/local/bin/octave ;; homebrew will collide with source build
alias omp /opt/local/bin/octave
;; remember to try installing things as a new user
octave> pkg -verbose install -forge control ;; WINS!!!
octave> pkg -verbose install -forge general
octave> pkg -verbose install -forge signal
octave> pkg load all
;; octave still crashes and dumps core on exit
sudo port clean --all installed
;; sudo port -f uninstall inactive
;; Declare war on pstricks problem:
cd /l/p/pstricks/
wget http://giraffe.cs.washington.edu/texlive/texlive-pstricks-15485.tar.bz2
;;not needed: wget http://giraffe.cs.washington.edu/texlive/texlive-pstricks-22586-src.tar.xz
port installed | grep texlive
port contents texlive-pstricks > port-installed.txt
diff -rcb /l/p/pstricks/texlive-pstricks-15485/runfiles/texmf-dist /opt/local/share/texmf-texlive > diffs.txt
cat doit
sudo /bin/cp -rp /l/p/pstricks/texlive-pstricks-15485/runfiles/texmf-dist/* /opt/local/share/texmf-texlive/
port install octave-control ;; give MacPorts version a chance once again
port install octave-signal  ;; give MacPorts version a chance once again
;; Others maybe needed:
%% general-1.3.2
%% data-smoothing-1.3.0	miscellaneous-1.2.0	specfun-1.1.0
%% dot-dot-octave_packages	optim-1.2.2		struct-1.0.10
/bin/rm -rf /usr/local/octave ;; clean up old pkg installs etc.
port install octave-miscellaneous
port install octave-optim ;; pulls in octave-struct
/bin/rm -rf /opt/local/lib/octave/packages/<anything old>
...


Next  |  Prev  |  Up  |  Top  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

Download mycomputers.pdf
[Comment on this page via email]

``My Computers'', by Julius O. Smith III, Web document.
Copyright © 2015-03-02 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA