MAC OSX El Capitan: Airport Sym link not permitted - symlink

I tried making a symbolic link to the airport command in MAC OS X El Capitan, using the command:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
It returned the following error:
ln: /usr/sbin/airport: Operation not permitted
Is this due to the El Capitan's "rootless" feature? The sym link worked fine in MAC OS X Yosemite.

The target directory should be /usr/local/bin/airport
See the article on System Integrity Protection for more information as to why the directories have changed.
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport

Related

Permission denied error while trying to uninstall Anaconda

My computer: Mac Book Pro, OS X Yosemite
I am trying to uninstall anaconda with the following command.
rm -rf ~/anaconda
However I get many many lines of Permission denied that looks like this
rm: /Users/myname/anaconda/lib/python2.7/site-packages/oauthlib/__init__.py: Permission denied
I would appreciate your suggestions.
On my OS X El Capitan,
sudo rm -rf //anaconda
worked. Note that #AustinKildoff already answered this question above.

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 to uninstall fink from iMac running OS X 10.8?

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

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.

MongoDB Insecure Startup for Mac OS X

I installed MongoDB via Brew and now I get this error:
“/Library/StartupItems/MongoDB” has not been started because it does not have the proper security settings
I've repaired permissions, reinstalled, and it doesn't go away. Any help?
Recent versions of OS X (since Snow Leopard IIRC) are pickier about the permissions on things like startupitems, and will disable them if it thinks they're inappropriate. This should set the permissions it's looking for:
sudo chown -R root:wheel /Library/StartupItems/MongoDB
sudo chmod -R u=rwX,go=rX /Library/StartupItems/MongoDB
sudo chmod -R -N /Library/StartupItems/MongoDB
If you'd like to remove the Startup item, here is a solution: Apple Support Site

Resources