homebrew

Mac从拆箱到入门

可紊 提交于 2019-12-08 08:54:40
Mac从拆箱到入门 记录首次使用Mac的我的历程,不是专业的Mac使用教程,只是简单的记录。还有我在使用过程中一些用到的功能都一些小提示吧。 1. 首次开机配置 ,对于一个完全的新手来说(也就是我)是完全懵逼的一个状态,幸亏啊,幸亏这个语音提示挺给力,光开机配置我就慢慢研究了接近20分钟吧,使用这个语音助手一个字一个字的将所有的文字都理解了一遍,也发生了一些比较尴尬的事情,比如啊键盘上有一个Esc键,然后指示里面提示的escape,我竟然不知道这个键在哪,过了一会之后才恍然大悟过来,这原来不就是esc键嘛,我也通过这一个简单的小插曲认识到:我的英语原来是这么的差,因为我反应过来知道是esc键之后,我就翻译了一下这个escape单词的意思,这个意思有‘逃避,避开,避免’的意思,这也就是这个键盘表示的实际功能。总的来说,就是下一步,下一步,下一步,按照正确的选项,进入系统就行了。没有任何的技巧。 2. 关于输入法中英文的切换 ,在window里面使用shift键就可以直接切换中英文的输入状态,在Mac里面呢,我按了几下shift没有反应之后就去百度了,因为当时是让我输入邮箱的账号,里面的符号是中文符号的,所以当时也着急找到解决方法,我问二娃呢,二娃也在摸索。突然间,看到了键盘上(以前的大小写切换键盘)上面写着这样‘中/英’的字样,点了一下,成了。 3. 关于下载软件 ,我听说可以使用

Missing the OpenSSL lib?

末鹿安然 提交于 2019-12-08 08:01:51
问题 I have been trying to install ruby 2.1.1 but when I run it in the terminal, this is what i get: $rbenv install 2.1.1 Downloading yaml-0.1.6.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e Installing yaml-0.1.6... Installed yaml-0.1.6 to /Users/nthulanemakgato/.rbenv/versions/2.1.1 Downloading ruby-2.1.1.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2 Installing ruby-2.1.1... BUILD FAILED Inspect or clean up the working tree

brew - permission denied

折月煮酒 提交于 2019-12-08 06:35:53
问题 My system is OSX 10.11.6. I'm running into this error: System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:959:in `read': Permission denied - /Library/Ruby/Gems/2.0.0/specifications/terminal-notifier-1.6.0.gemspec (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:959:in `load' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification

git pull always returns “not something we can merge”

情到浓时终转凉″ 提交于 2019-12-08 04:11:30
问题 No matter what repository I am in I get this response from git pull " merge: 012012012012012012012012012012012012012012012012012012012012012012012012012012012012012012012012 - not something we can merge ". I have tried uninstalling git and re-installing with no luck. git fetch origin and git merge origin/master work fine. I could very well use those commands instead of git pull but Homebrew uses git pull and now it is broken too. [UPDATE] This apparently was related to pyenv . Once I removed

Why does Homebrew say “no git repository”?

和自甴很熟 提交于 2019-12-08 03:07:57
问题 Running brew --config gives HOMEBREW_VERSION: >1.0.0 (no git repository) ... Why is this happening? What can I do to fix it? HOMEBREW_VERSION: >1.0.0 (no git repository) ORIGIN: https://github.com/Homebrew/brew.git HEAD: bbed7246bc5c5b7acb8c1d427d10b43e090dfd39 Last commit: 4 hours ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: ba0aa68066a89c0654152aba22819736b06987af Core tap last commit: 77 minutes ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr

Add SDL to my path

血红的双手。 提交于 2019-12-08 02:43:49
问题 I install SDL via brew on my mac but I can't include it! Here is my too easy code: #include <SDL.h> int main(){ return 0; } when I compile it with cc, CC could not find SDL.h I found that brew install SDL in Cellar but cc did not check this folder Could you help me? 回答1: I know this post has 9 months old but if someone, somewhere in the internet try to find out how to use SDL with mac, just follow this. DL .dmg file on the SDL website (V2). Put SDL2.framework in /Library/Frameworks In your

Installing Tomcat 8 on OS X 10.11 El Capitan

£可爱£侵袭症+ 提交于 2019-12-07 21:30:49
By far the easiest way to install and configure an Apache Tomcat server on a mac is using the homebrew package management suite. If you’re not already using homebrew, you should be. It can be installed via the instructions on their website, it makes open source package management on mac 100 times easier than doing it manually. There is a good tutorial here on installing homebrew if you do already not have it. First install with the brew install in terminal: $ brew install tomcat This will take care of the downloading, installation and configuration of not only Tomcat but any dependencies as

How to pass arguments to homebrew service

馋奶兔 提交于 2019-12-07 17:31:54
问题 I have installed beanstalkd using homebrew but am unable to increase the maximum job size. This is normally done by passing the -z argument as "-z byte_size" All attempts to edit the formula for myself have failed to increase the job size as needed. How do I successfully pass the -z argument in homebrew to increase the maximum job size. I have tried using "brew edit beanstalkd" and modified the file adding a second "string" value with the -z 10000000 but this didn't seem to help. 来源: https:/

How do I restore my Haskell setup to the bare Homebrew configuration?

人走茶凉 提交于 2019-12-07 15:30:39
I have a system setup of Haskell that I've maintained with Homebrew and subsequent cabal install invocations for various packages. I would like to take this back to the bare installation created with brew install haskell-stack . How do I do this? Right now I seem to have a bunch of stuff lying around (e.g. old docsets, executables like ghc-mod etc.) at the system level, even after deleting all installed packages with rm -r ~/.ghc . Is there a reliable way to get back to the basic configuration that brew install haskell-stack creates? 来源: https://stackoverflow.com/questions/41369064/how-do-i

GNU ls from Coreutils missing OS X ACL implementation

不羁岁月 提交于 2019-12-07 15:04:25
I'm using brew to retrieve and install common GNU versions of terminal commands and utils with brew install coreutils . Then in my .bash_profile I'm including their PATH with if [ -d $(brew --prefix coreutils)/libexec/gnubin ]; then PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH" fi so far so good, I can use use the GNU version of coreutils. The problem comes from ls . Apple implement ACL that is not implemented on GNU ls . I discovered this by banging my head many times and not understanding why (for example) ls -le@ would give me error ls: invalid option -- 'e' . So now I understood