osx-elcapitan

“restricted” folder/files in OS X El Capitan

…衆ロ難τιáo~ 提交于 2019-11-26 08:48:49
问题 After upgrading from OS X Yosemite to OS X El Capitan Developer Preview, I tried to edit /System/Library/LaunchDaemons/ssh.plist to change the default SSH port to a custom one. This is the process I\'ve been using for a couple of years. The problem is that El Capitan doesn\'t allow me to change anything in this folder (not even with \"sudo\"). The folder and its files are marked as \"restricted\" when I list the contents with \"ls -lO\" . The same folder listing in previous versions of OS X

`Apache` `localhost/~username/` not working

岁酱吖の 提交于 2019-11-26 07:52:55
问题 UPDATE : The following answer will also work for El Capitan. For people who just start, the file mentioned below is under /etc/apache2 For the answer below, the file that also need to be changed is /etc/apache2/extra/httpd-userdir.conf ORIGINAL : So I just recently upgrade to Mac OS X Yosemite and I need to set up my Apache again. I create a folder \"Sites\" under /user/kevin and change file permission to 777 and uncomment the php5module line in /etc/apache2/httpd.conf just like before.

Link Spark with iPython Notebook

半世苍凉 提交于 2019-11-26 06:37:18
问题 I have followed some tutorial online but they do not work with Spark 1.5.1 on OS X El Capitan (10.11) Basically I have run this commands download apache-spark brew update brew install scala brew install apache-spark updated the .bash_profile # For a ipython notebook and pyspark integration if which pyspark > /dev/null; then export SPARK_HOME=\"/usr/local/Cellar/apache-spark/1.5.1/libexec/\" export PYSPARK_SUBMIT_ARGS=\"--master local[2]\" fi run ipython profile create pyspark created a

OSX El Capitan: sudo pip install OSError: [Errno: 1] Operation not permitted

可紊 提交于 2019-11-26 02:27:24
问题 When I run: sudo pip install ipython I get the following error OSError: [Errno: 1] Operation not permitted: \'/System/Library/Frameworks/Python.framework/Versions/2.7/share\' The last command executed tries to create the directory given above. Also, the following command fails to install iPython without providing any errors. sudo pip install --user python (I am on Mac OS X El Capitan in case other folks on this OS see the same issue.) 回答1: Instructions telling sudo pip install are inherently

Command Line Tools not working - OS X El Capitan, Sierra, High Sierra, Mojave

谁都会走 提交于 2019-11-26 01:56:25
问题 I just upgraded from Yosemite to El Capitan (and replicated the problem upgrading from El Capitan to Sierra), and when I try to type for example git status inside a terminal, I get the following error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun I don\'t have Xcode installed, never did. Anyone have a solution? 回答1: Found the fix for the problem here. xcode-select --install This will

Setting environment variables via launchd.conf no longer works in OS X Yosemite/El Capitan/macOS Sierra/Mojave?

本小妞迷上赌 提交于 2019-11-25 23:35:49
问题 It looks like the launchd.conf does not load my environment variable anymore. Has anyone else noticed that? Is there another solution to permanently set environment variables? 回答1: Create an environment.plist file in ~/Library/LaunchAgents/ with this content: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>my.startup</string> <key>ProgramArguments

Operation Not Permitted when on root - El Capitan (rootless disabled)

会有一股神秘感。 提交于 2019-11-25 20:13:11
I am trying to move something to /usr/bin on OS X El Capitan. I have disabled rootless using the following commands: sudo nvram boot-args="rootless=0"; sudo reboot , but I keep getting the same error: MacBook-Air:~ Mark$ sudo cp class-dump /usr/bin Password: cp: /usr/bin/class-dump: Operation not permitted MacBook-Air:~ Mark$ sudo mv class-dump /usr/bin mv: rename class-dump to /usr/bin/class-dump: Operation not permitted Mark Bourke Nvm. For anyone else having this problem you need to reboot your mac and press ⌘+R when booting up. Then go into Utilities > Terminal and type the following