How to remove SML/NJ 110.75 from Mac OS X Mavericks? - osx-mavericks

I installed SML/NJ 110.75 on Mac OS X Mavericks following these instructions by #MisterSpock. The install initially failed but it was a simple matter of editing a config file, as instructed here, to fix that. After the install, I noticed that a binary for SML/NJ 110.76 is available and I installed that. Now, how do I remove the previous installation of SML/NJ 110.75?

You can remove it by using the terminal to delete the installation directory:
$ sudo rm -rf /usr/local/smlnj
And, after that, installing SML/NJ will put a new copy there.
Note: additionally, you may wish to remove the man pages:
/usr/local/share/man/man1/ml-antlr.1
/usr/local/share/man/man1/ml-build.1
/usr/local/share/man/man1/ml-ulex.1
/usr/local/share/man/man1/ml-makedepend.1
/usr/local/share/man/man1/sml.1
/usr/local/share/man/man7/smlnj.7

Related

How to Start Dropbox After Installing It with Homebrew Cask?

I just started using Homebrew and Cask today to install Unix and OS X applications on my Mac but I don't understand something about Cask. When I run this command,
brew cask install dropbox
I can see that it installs it in /opt/homebrew-cask/Caskroom/dropbox/latest/Dropbox.app and I can see that it has created a symlink ~/Applications/Dropbox.app that points to it, but when I look in Finder at my Applications folder, I don't see it there as I would if I had installed Dropbox from a .dmg file. Also, I don't know how to start Dropbox from this symlink. How do I get Cask to install OS X apps so that I can start them from either the Application folder or via the command line in a terminal session?
just run open ~/Applications/Dropbox.app from your cmd line.
See http://gillesfabio.github.io/homebrew-cask-homepage/ for overview.
Hope that helps
The behavior has changed over the last few months. If you update homebrew to version 1.0 and then run brew cask install dropbox, the application will now be physically moved into /Applications/, and the symlink will be created in ~/Applications/.

Where is ghci.conf if installing GHC using brew cask in mac?

I used homebrew-cask to install haskell-platform in my mac (OS X 10.11.2) by running:
brew cask install haskell-platform
and it is working well until the day I want to enable syntax highlight in GHCi. I found in this post that I should add one line in ghci.conf. But I could not found where this file is.
You will have to create a new file in your user directory; the final path should be ~/.ghci or /Users/<username>/.ghci. The file does not exist by default. See the documentation for the full details.

Run gedit on OSX Mavericks?

The Version of Gedit on the gnome.org site does not seem to run on OSX Mavericks. Is there any way to fix this?
When I tried it, the problem was the version of libxml2 packaged with gedit.
Use the command "brew install libxml2"
then cp /usr/local/Cellar/libxml2/2.9.1/lib/libxml2.2.dylib /Applications/gedit.app/Contents/Resources/lib/.
In the current version of brew, the directory has changed to 2.9.2 so:
then cp /usr/local/Cellar/libxml2/2.9.2/lib/libxml2.2.dylib /Applications/gedit.app/Contents/Resources/lib/.
Having MacPorts installed and comments from above I was able to simply rm /Applications/gedit.app/Contents/Resources/lib/libxml2.2* and it used the system/macports library instead of the bundled one without error.
Just to Revise:
Having macports installed correctly. (If you just updated from e.g. OSX Lion you need to migrate macports to your new Maverics OSX System, https://trac.macports.org/wiki/Migration)
Downloading gedit-3.2.6-3
sudo port install libxml2
and rm /Applications/gedit.app/Contents/Resources/lib/libxml2.2*
Open gedit and start Coding!
For my 13-inch, Early 2011 Macbook pro it worked just fine.
--
If you want to use gedit from Terminal:
add
alias gedit="open -a gedit"
to
~/.bash_profile
Gedit 2.30.2 works.
But your own plugin won't work on Gedit 2.30.2.
I dont know what your goal is, but i found a easier way with another program. If installing all of this starts to get tiersome (that's what i figured out at least, since xcode needed downloading and tampering), i found sublime text 2 to work very nicely.
I found that the version of "libxml2.2.dylib", distributed with Gedit 3.2.6 is outdated.
Install "Xcode" from the App Store (if you have not already done so), then:
$ cp -p /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/libxml2.2.dylib /Applications/gedit.app/Contents/Resources/lib/libxml2.2.dylib
One solution (I'm still interested in others) is the following:
The latest version of Gedit (3.2.6-3)for OSX on the Gnome.org website crashes.
The older Gedit 2.30.2 still runs.
try version 2.26.3 of Gedit – it’s working for me on MOJAVE !
http://ftp.gnome.org/pub/GNOME/binaries/mac/gedit/2.26/
Darek
If I am guessing correctly, your aim is a GUI Text editor for convenience.
open /path/to/file
performs the same action as of double clicking on the file from Finder
Also if you want to use it with a specific application like sublime text
open -a 'Sublime Text' /path/to/file

How do I uninstall subversion on OS X

I did svn --version on command line and it says it is 1.17.10.
I want to uninstall it completely, so I can re-install 1.16.12
How do I do that in OS X?
Thanks
As said Mike Christensen, in order to uninstall it, you just need to delete the binary. Run which svn to know where your binary is installed.
In order to install subversion, you need to:
Download it.
Uncompress it (tar xzf subversion-1.x.y.tar.gz).
Compile it (./configure && make).
Install it (sudo make install).
I’m pretty sure this will install it in /usr/local/bin. So if you want svn to call the subversion you just installed (instead of the one built in XCode), you need to edit your $PATH so that /usr/local/bin is before /usr/bin. On Mac OS X, editing the path is done by editing the file /etc/paths.
Note that steps 3 and 4 requires a compiler and make. The easiest way to get those on Mac OS X is to install XCode.
If you get any error in following Etienne Miret solution so the following
after setp 3
brew install apr
brew install apr-util
/configure --with-apr=/usr/local/Cellar/apr/1.5.2_3/ --with-apr-util=/usr/local/Cellar/apr-util/1.5.4_4 && make
sudo make install
After completion, you can see the new SVN installed here
/usr/local/bin/svn --version

How to install MIT Scheme on Mac?

I want to install MIT Scheme on my Mac, I have downloaded the MacOS X binary(x86-64).
However, I could not make it work using Mac Terminal.
I have tried to follow these articles:
Installing MIT/GNU Scheme on Mac OS X Leopard
Installing MIT Scheme on Mac OS X
but it seems out of date and does not work.
So, I'm looking for a simple method which allows me to write Scheme code using Mac Terminal.
I have struggled for hours to try to install it.
UPDATED FOR EL CAPITAN:
The best way that I've found was from here:
Download either the 32-bit or 64-bit dmg file for Scheme.
Double click the .dmg file, and you'll get this window, in which you should drag the "MIT/GNU Scheme" file into the Applications folder.
For the 32-bit version, run this command:
sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources /usr/local/lib/mit-scheme-i386
Then enter your administrator password, and run this command:
sudo ln -s /usr/local/lib/mit-scheme-i386/mit-scheme /usr/local/bin/scheme
For the 64-bit version, first run this command:
sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources /usr/local/lib/mit-scheme-x86-64
Then enter your administrator password and run this command:
sudo ln -s /usr/local/lib/mit-scheme-x86-64/mit-scheme /usr/local/bin/scheme
And that's it! Now you should be able to use MIT Scheme in your terminal by typing "scheme" into the command line:
Homebrew makes it easy for you. On Terminal, type:
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) ; brew install mit-scheme
Done!
Edit
The install script has been moved:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ; brew install mit-scheme
For Yosemite 10.10.3:
After installing X11.app and homebrew,
$ brew tap homebrew/x11
$ brew install mit-scheme
I found it easier when a maintained package manager such as homebrew covers all the dependency and build stuff.
Edit: simply
$ brew install mit-scheme
would do. X11 is now optional instead of dependence. There is still an --with-x11 option which requires whole Xcode.
You can install scheme using homebrew using the following command
brew install mit-scheme
If you have the latest version of Mac system, El Capitan 10.11.2, You might need to do something different than above.
The first command will be same.
For the 64-bit version, first run this command:
sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources /usr/local/lib/mit-scheme-x86-64
Then enter your administrator password and run this command:
sudo ln -s /usr/local/lib/mit-scheme-x86-64/mit-scheme /usr/local/bin/scheme
Note: The difference is you need to put local between /usr/ and /bin/
Type scheme in the terminal to see if it works. If you get the following screenshot, that means you succeed it.
Success Result
You definitely need to put local there.
The reason is this, Apple improved OS security in OSX 10.10 (rootless), and changes to the general system-wide binaries (such as /usr/bin) is not permitted.
If you are having trouble with the accepted answer from #virgil-ming, try this:
$ brew install Caskroom/cask/xquartz
$ brew install mit-scheme
Same idea, of course, but this got me up and running when brew tap homebrew/x11 responded with multiple conflicts.
As always, remember to brew update then try again when you are having problems, a la Homebrew's troubleshooting guide.
If you are using docker, and I recommend you do:
docker run -it inikolaev/alpine-scheme
will drop you right into a scheme REPL.
UPDATE FOR MAC OS HIGH SIERRA:
Worked for me just by executing (if you are using Homebrew):
brew install mit-scheme
If you are using MacPorts, the command is similar to what others have posted for homebrew -
sudo port install mit-scheme
That set me up pretty well on OS X 10.8.5
I came across a problem that the 10.x versions of the MIT/GNU Scheme do not support Mac OS X 10.11 El Capitan. In fact, it requires Mac OS X 10.13 or higher.
The topmost version supporting older Mac OS X versions is MIT/GNU Scheme 9.2.

Resources