How can I install GNU Octave on Mac with Fink ? - macos

I tried to install GNU Octave on my Mac using Fink by this instruction
http://wiki.octave.org/Octave_for_MacOS_X
I think I have followed all the instructions but I can't run Octave.
How can I check if it is installed correctly?
I tried typing 'octave' in the terminal but it says 'command not found'
Or, is there any easy instruction for Octave installation?
I've found many install guides but they are all different and assumes some knowledge.

Incidentally, I have installed Octave GNU today twice on two different machines (both running Lion).
I needed the latest version of Octave (3.6.4), and used Homebrew.
I already had XCode installed, so the rest:
Install Homebrew
Based on the instructions in this page, I ran:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Install Octave
Following this guide, I ran:
brew tap homebrew/science
brew update && brew upgrade
brew install gfortran
brew install octave
Install AquaTerm
Notice that you need this before you install gnuplot (or gnuplot won't see aqua as a valid terminal and you may get 'unknown or ambiguous terminal type' error).
Simply downloaded the latest version (1.1.0) dmg from SourceForge.
Install gnuplot
brew install gnuplot

You could try installing it with Home Brew. Once you download and install Home Brew, use this guide to get Octave installed.

Easiest option would be using the precompilled .app
I've tried the precompiled .app, but had issues with certain functions (like sound),
whereas the macports version always worked.
I usually install it using macports:
sudo port install octave
for the basics.
You might need other port variants/octave modules installed:
sudo port install octave octave-signal octave-plot octave-image octave-signal
Need to have XCode with Command Line Tools first and Macports with this route though

How to know if a Fink package is installed
By default (and this should be your case too if you didn't changed it), Fink installs everything under /sw, i.e. the binaries you are looking for should be in /sw/bin/.
Run ls /sw/bin/octave*and, depending on the output, you then have two choices :
Either the Octave binary is inside /sw/bin, in that case run echo $PATH and learn more about PATH Variable to fix your problem.
Otherwise, if there is nothing inside, there might have been a problem with the install. Try running fink install octave once more, look closely at the output and update your post if necessary.

This is simply an update on the instruction provided by Izhaki (that I ran on Mac OSX 10.8.4).
You may be required to update XCode to 4.6.3. This can be done through the AppStore.
If you encounter the error:
Error: Download failed: http://threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20130613oss_src.tgz
during
brew install octave
Then invoke:
brew update
brew install octave
and the install will pick up where it left off. Other than that, the instruction worked seamlessly.

Related

pdf2swf not installed through Homebrew – but the rest of swftools are

Environment OSX 10.9.5
I am trying to install swftools so that I can use pdf2swf. I am installing through HomeBrew. I've seen various notes about pdf2swf failing to install if its dependencies have not been previously installed. So using the command at the link I use:
$ brew install freetype libjpeg giflib swftools
And it completes without error – except pdf2swf is not installed. When I look in usr/local/bin, I see the other swftools are installed successfully.
Does anyone know what might be wrong?
Update: For completeness if anyone comes across this question looking to use pdf2swf in an AIR desktop app: you can't. Apparently pdf2swf compiles the swf with certain "AllowDomain" security settings and there is no option to not do that. Short of editing the source code and compiling pdf2swf oneself, it seems a deadend.
If you look at the brew formula: brew edit swftools, PDF support comes via xpdf and this is not included by default as XQuartz needs to be installed:
brew instal swftools --with-xpdf
swftools: XQuartz is required to install this formula.
You can install with Homebrew Cask:
brew install Caskroom/cask/xquartz
You can download from:
https://xquartz.macosforge.org
Error: An unsatisfied requirement failed this build.
So:
Install XQuartz
brew install swftools --with-xpdf

Is it possible to install Erlang R16 on OSX 10.9 via homebrew?

I have a clean OSX 10.9 box and I have tried to install R16 erlang via homebrew:
brew install erlang
Unfortunately, that installs R17. So I tried to install it via "versions" recipes:
brew tap homebrew/versions
brew update
brew doctor
brew install erlang-r16
Surprisingly, this fails with error:
Error: No available formula for erlang-r16
Is it any way to install Erlang R16 right now via homebrew or I need to wait a few months before recipes/repository/whatever is correctly updated and synchronized?
I'd advise you to download source of any release you like/need the most.
I installed Erlang/OTP r17(otp_src_17.0) from sources on OSX 10.9.3.
Everything works ok. Even GUI observer.
However you might need to install graphical libraries needed by observer. If I did so, I used sources as well.
Good luck!

How to install ImageMagick in Mac for simple task (R)

I have a simple task I want to carry out and after exhausting all resources on google I'm stumped. I think whats hindering me most is installing ImageMagick. When I used my terminal I get errors. All I want to do is make some plots on R and make a GIF out of them. Is there anyone way to confirm ImageMagick is installed?
In general you will need either MacPorts or Homebrew installed first to install ImageMagick. As you stated above it sounds like you don't have Macports installed.
If you don't have either installed, I'm a big fan of homebrew, and so I'll walk your through install with homebrew.
Step 1. First install homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
as per the homebrew website here.
Once that's done installing you'll then be able to use commands like brew install foo where foo is something you'd like to install. In your example you see port install imagemagick which is the Macports way of installing image magick.
Step 2. Install imagemagick. As per ImageMagick Mountain Lion instructions here:
brew install imagemagick
That command should install imagemagick. A super handy tool with homebrew is brew doctor which analyses all the installs you've done with homebrew to make sure they'll properly setup.

Port install ruby stuck in Building gettext

I've just installed Mavericks OSX, loosing my previous ruby versions which I used to work in several Redmine based projects. Not to say I'm currently not happy with apple.
Anyway, I'm following #RyanWilcox steps described here to install a ruby version prior 2.0.-
Trouble downgrading Ruby on OS X Mavericks
which looks promising, but sadly I'm stuck installing ruby through macports. When I run
sudo port install ruby
everything seems ok, but then it get stuck in
---> Building gettext
step. I'm not a macports user and have no idea what's happening here nor even where should I start looking. Anyone could point me in the right direction to fix this issue?
Did you install the xcode command line tools? Try xcode-select --install first.
I also suggest you to use Homebrew instead of MacPorts. Here are the steps to install rbenv via Homebrew: https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x
brew install rbenv ruby-build
rbenv init
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile && source ~/.bash_profile
rbenv install 1.8.7-p374 # or any version listed in `rbenv install -l`
rbenv local 1.8.7-p374
Now 1.8.7 is the default Ruby version for your user.
In my case, I had to switch to Xcode5 command-line tools, using xcode-select -s <Xcode5 Developer folder path>, because I had two versions of Xcode (4.6 and 5) on my machine and at the time of building ports I was using Xcode4 command-line tools.
Also, I enabled multi-core build in /opt/local/etc/macports/macports.conf by setting buildmakejobs field to:
buildmakejobs 2
This made the build process much faster, so that there are smaller chances that it would give you false impressions that it got stuck elsewhere.

Ruby on Rails install trouble on OSX with dependencies

I'm trying to install RoR on Mountain Lion. I have the following installed:
Xcode from the App Store with command line tools
RVM
homebrew
In terminal I verified that gcc is installed.
When I type in "rvm requirements" I get a message saying that I'm missing a number of dependencies including OpenSSL, autoconf, automake, libxslt and many more. RVM also says to install these with brew. So I do and rvm no longer complains about the missing dependencies.
But when I try to install ruby 1.9.3 via "rvm install 1.9.3", at the end of the compile I receive a message "ruby was built using clang -but it's not (fully) supported, expect errors."
I'm stumped at this point. I'm trying to figure out:
Why are dependencies missing when I've installed Xcode command line tools?
Why am I still getting a compile error after using brew to install the dependencies?
Help please. :)
Try using gcc compiler instead i.e
rvm install 1.9.3 --with-gcc-4.2
Reference: https://github.com/wayneeseguin/rvm/issues/1480
So here's the order I usually go through before installing any Rubies.
1st thing: Install XCode and the Command Line Tools for Mountain Lion (you can also install these from the Preferences > Downloads window).
2nd: Make sure you have Homebrew installed.
3rd: Once that's set up, run brew tap homebrew/dupes
4th: Then brew install openssl autoconf apple-gcc42 automake
I had issues with RVM and have long since switched to RBenv/Ruby-Build. There are various differences, but really running through the above steps should fix any issues you had, and lots of people use one or the other. Both are great.
Then, just try to install Ruby however you choose to.

Resources