homebrew

new Date(“YYYY-MM-DD”) stopped working in Qt WebKit after removing MacPorts

独自空忆成欢 提交于 2019-12-07 06:36:34
问题 On my OS X 10.7.3 (Lion) laptop, I cannot parse JavaScript date strings with Qt WebKit using the Date constructor. Using either jasmine-headless-webkit or phantomJS, all calls like: new Date("2012-04-10") always return "Invalid Date" instead of a valid Date object. A few weeks back, everything was working fine, and I've checked this on half a dozen computers with a similar setup and cannot reproduce the problem anywhere else. I am fairly certain the problems started when I decided to clear

C++ gmp and homebrew

这一生的挚爱 提交于 2019-12-07 05:07:56
问题 I'm on a mac and I've installed gcc and gmp through homebrew . To test out my installation I've tried out the simple example from here: #include <iostream> #include <gmpxx.h> using namespace std; int main (void) { mpz_class a, b, c; a = 1234; b = "-5678"; c = a+b; cout << "sum is " << c << "\n"; cout << "absolute value is " << abs(c) << "\n"; return 0; } First of all, if I try g++ test.cpp -lgmpxx -lgmp it complains test.cpp:9:19: fatal error: gmpxx.h: No such file or directory #include

How to fix `brew doctor` errors on Mac OSX 10.9 (unlinked kegs in Cellar and Homebrew sbin not found)?

孤街浪徒 提交于 2019-12-07 04:14:20
问题 I'm having some trouble with brew which I'm trying to solve. When I currently run brew doctor I get the following output: Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: autoconf libevent Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting the PATH for

How to remove the shallow clone warning from HomeBrew

杀马特。学长 韩版系。学妹 提交于 2019-12-07 03:38:41
问题 ➜ ~ brew info test Error: No available formula with the name "test" ==> Searching for a previously deleted formula... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow Error: No previously deleted formula found. I have modified the git remote address to mirror address of homebrew before. Maybe it's relevant to this but I don't know. 回答1: Just as what it says To get complete history run: git -C "$(brew --repo homebrew

Trying to install Python3 using brew

北战南征 提交于 2019-12-07 03:25:09
问题 Trying to install Python3 in mac using below command : brew install python3 When i run the command getting below error : Error: python 2.7.14_2 is already installed To upgrade to 3.6.5, run `brew upgrade python` How to keep both python2 and python3 in mac without upgrading... Thanks! 回答1: The python formula is assumed by Homebrew to be Python 3. The formula python3 is thus an alias for python . You need to: brew upgrade python , as told by the error message. It will switch your default

Installing Rails on Mac OS fails with several errors

大城市里の小女人 提交于 2019-12-07 03:24:13
问题 I am trying to install Rails on my Mac OS v10.10.4 system, and it fails when I run brew install rbenv ruby-build . The error is: Error: Permission denied - /usr/local/etc/openssl Warning: Bottle installation failed: building from source. At the end of the process it says: installing man3/d2i_SSL_SESSION.3ssl i2d_SSL_SESSION.3ssl => d2i_SSL_SESSION.3ssl installing man3/ssl.3ssl Cannot create directory /usr/local/etc/openssl: Permission denied Here is the complete log of all what I tried during

Installing older version of imagemagick with homebrew

妖精的绣舞 提交于 2019-12-07 02:10:45
问题 I need to install an older version of imagemagick (6.5.9-3), I can see it in the list of available versions > brew versions 6.6.1-5 git checkout 1c9f04e Library/Formula/imagemagick.rb 6.5.9-8 git checkout 685dbff Library/Formula/imagemagick.rb 6.5.9-3 git checkout 258720c Library/Formula/imagemagick.rb 6.5.6-5 git checkout 7c90d02 Library/Formula/imagemagick.rb 6.5.5-10 git checkout b01c13d Library/Formula/imagemagick.rb but when I checkout that version with > git checkout 258720c Library

Installed GNU grep on OSX, but can't use

主宰稳场 提交于 2019-12-07 01:10:45
问题 I've tried installing GNU grep on OSX, and it seems to be installed, but I can't use it.. I've done so using homebrew, Macports is having some issues currently, so I can't use that. To install: brew tap homebrew/dupes; brew install grep Which returns: Warning: homebrew/dupes already tapped! Warning: homebrew/dupes/grep-2.21 already installed Symlinking seems to work to /usr/local/bin/ggrep. When I add the alias alias grep="ggrep" and do grep --version , I get -bash: ggrep: command not found .

Just installed SASS, but can't get its version

廉价感情. 提交于 2019-12-07 00:21:12
问题 I installed SASS from the terminal, just gem install sass . And I see it says "Successfully installed sass-3.2.9." However, when I then do sass --version or sass --v I get this error: -bash: sass: command not found The only thing I can think of is, when I was doing the Git tutorials on Tuts+ I ran into a local vs. global issue or I had to edit a bash_profile file. This is what is inside the bash_profile file inside my user directory: export PATH="/usr/local/bin:$PATH" Any thoughts or tips on

“Error during sbt execution: No Scala version specified or detected” with SBT from Homebrew

自作多情 提交于 2019-12-06 22:58:43
问题 I have installed Scala 2.10.3 and SBT 0.13.1 . When I execute SBT following Hello, World from the SBT documentation I get the following error message: "Error during sbt execution: No Scala version specified or detected" I've tried to add a build.sbt file with the scalaVersion but the error keeps showing up. Please advise. I've just downgraded sbt to 0.12.3 and it works ... so what's wrong with 0.13.X ? 回答1: Its not an issue with the upgrade of 0.13.* version. Its the repository cache thats