How to uninstall fink from iMac running OS X 10.8? - macos

I made a mistake installing fink on my iMac running OS X 10.8. I typed in a command to uninstall from the fink website http://www.finkproject.org/faq/usage-fink.php?phpLang=en#removing
fink remove --recursive daemonic xinitrc
…but I got the error message:
Failed: no package specified for command 'remove --recursive'!
I have not installed anything with fink, so can I safely skip this command and use the following command instead?
sudo rm -rf /sw

Related

OS X brew: Failure while executing: /usr/bin/otool

On OS X (El Capitan, but likely to be also the case for previous version os OS X) the following error can take place after upgrading OS X and removing OS X beta versions.
Error: Failure while executing: /usr/bin/otool -L
/usr/bin/install_name_tool
In order to fix this type of issue:
Run in Terminal /usr/bin/otool and check the resulting error message.
If you get the following error message:
xcrun: error: active developer path
("/Applications/Xcode-beta.app/Contents/Developer") does not exist,
use xcode-select --switch path/to/Xcode.app to specify
Then simply update the path to Xcode using xcode-select command in terminal:
sudo xcode-select --switch /Applications/Xcode.app
This should fix the issue and let you run all brew commands without any problem.

How do I remove MacPorts on an "unsupported OS" i.e. El Capitan Public beta?

The MacPorts installation that I had on Yosemite doesn't work on the El Capitan since it isn't supported yet. I want to remove the Port installation here but I'm not able to run any of the Port commands. Does anyone have an idea how to clean it up?
On running any port command, I get the following error:
Error: Current platform "darwin 15" does not match expected platform "darwin 14"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
This solution worked for me, without remove it:
xcode-select --install
xcodebuild -license
wget https://distfiles.macports.org/MacPorts/MacPorts-2.3.3.tar.bz2
tar xzvf MacPorts-2.3.3.tar.bz2
cd MacPorts-2.3.3
./configure && make && sudo make install
cd ../
rm -rf MacPorts-2.3.3*
Source
I just went ahead and manually removed the files (using rm):
sudo rm -rf /opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports.* \
/Library/Receipts/DarwinPorts*.pkg \
/Library/Receipts/MacPorts*.pkg \
/Library/StartupItems/DarwinPortsStartup \
/Library/Tcl/darwinports1.0 \
/Library/Tcl/macports1.0 \
~/.macports
It didn't seem to leave any leftovers or break anything.
One thing to note however is that mactex seems to have been installed in the same directory so that got removed as well. I didn't realize that I had that in the same directory. If you're going to repeat the same steps, keep this in mind.
What I did successfully on my El Capitan:
xcode-select --install
xcodebuild -license
Reinstall MacPorts by using the correct *.pkg matching your OSX from https://www.macports.org/install.php
done.
wget is fetching a bz2 file but unzip instructions are for gz.
Try the following instead
tar xjvf MacPorts-2.3.3.tar.bz2
The rest worked fine on El Capitan.
Thanks.

How to remove SML/NJ 110.75 from Mac OS X 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

Command Line Tools on OSX 10.9: Installed, but can't show up?

I am trying to install CLT on OSX 10.9 Mavericks.
Before I ask, I referred to these questons:
Failed to install command line tools on OSX Mavericks
Xcode 4.4 and later install Command Line Tools
I installed XCode 5 via the App Store, with the latest version.
Then, as mentioned in all kinds of tutorials, I typed "xcode-select --install" in the bash, however, there weren't any window telling me to install the CLI, but these outputs:
$ xcode-select --install
Usage: xcode-select -print-path
or: xcode-select -switch <xcode_folder_path>
or: xcode-select -version
Arguments:
-print-path Prints the path of the current Xcode folder
-switch <xcode_folder_path> Sets the path for the current Xcode folder
-version Prints xcode-select version information
I tried to run "/System/Library/CoreServices/Install\ Command\ Line\ Developer\ Tools.app" manually, but nothing showed up.
I opened the package, and tried
"sudo /System/Library/CoreServices/Install\ Command\ Line\ Developer\ Tools.app/Contents/MacOS/Install\ Command\ Line\ Developer\ Tools "
And failed like this:
"2013-11-01 19:48:45.060 Install Command Line Developer Tools[42474:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x6207, name = 'com.apple.dt.CommandLineTools.installondemand'
See /usr/include/servers/bootstrap_defs.h for the error codes."
I enabled root account and try to run it under root, same output.
Unknown of what that means, I tried "--pkg-info=com.apple.pkg.DeveloperToolsCLI"
It seems that CLI is not working, the outputs are:
"No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'."
I went to Apple 's site, downloaded and installed this file:
command_line_tools_os_x_mavericks_for_xcode__late_october_2013.dmg
Everything goes smoothly, no error reported during the installation.
However, when I try to find the CLI in XCode, it is not there.
Another time "--pkg-info=com.apple.pkg.DeveloperToolsCLI", still "No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.".
Now I am completely puzzled...how can I install this CLI?
Thank you very much in advance.
Make sure that you have updated to the most recent version of Mavericks, then reboot. Run xcode-select --install again. Otherwise, uninstall XCode and reinstall again from App Store.
I called sudo rm -rf /Library/Developer/CommandLineTools and then xcode-select --install.
sw_vers:
ProductName: Mac OS X
ProductVersion: 10.15.2
BuildVersion: 19C57

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