osx-yosemite

How do I edit $PATH (.bash_profile) on OSX?

你说的曾经没有我的故事 提交于 2019-11-26 04:58:16
问题 I am trying to edit an entry to PATH, as I did something wrong. I am using Mac OS X 10.10.3 I have tried: > touch ~/.bash_profile; open ~/.bash_profile But the file editor opens with nothing inside. My problem: I am trying to install ANDROID_HOME to my PATH I misspelled it, but when I closed the terminal and went back it was gone, so I tried again: export ANDROID_HOME=/<installation location>/android-sdk-macosx export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools This time, I

Yosemite and Valgrind

送分小仙女□ 提交于 2019-11-26 03:08:35
问题 Can you tell me how to install valgrind on yosemite? When I try to install it i get \" checking for the kernel version... unsupported (14.0.0) configure: error: Valgrind works on Darwin 10.x, 11.x, 12.x and 13.x (Mac OS X 10.6/7/8/9) \" There is no official path or update, and I didn\'t found anything (except http://comments.gmane.org/gmane.comp.kde.devel.bugs/1553705 , but they didn\'t resolve that problem). 回答1: As there's no stable release that supports Yosemite, you can install the latest

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