homebrew

Mac OS Sierra virtualenv (python 2.7) pip install mysqlclient error

こ雲淡風輕ζ 提交于 2019-12-04 21:14:15
问题 On Mac OS Sierra, created virtualenv using python2.7 and trying to install mysqlclient to use Django w/ MySQL. I installed MySQL 5.6 via homebrew. Running "pip install mysqlclient" gives these errors: Running setup.py bdist_wheel for mysqlclient ... error ... 13 warnings generated. cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.12-intel-2.7/_mysql.o -L/usr/local/Cellar/mysql56/5.6.32/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.12-intel-2

mac安装mysql 两种方式

落花浮王杯 提交于 2019-12-04 20:37:20
方式一: 下载 mysql dmg: https://downloads.mysql.com/archives/community/ 双击打开安装文件 双击pkg文件安装 ==一路向下,记得保存最后弹出框中的密码(它是你mysql root账号的密码)== 配置 此时只是安装成功,默认情况下不需配置: 进入系统偏好设置,最下方有个mysql 点击mysql,开启mysql服务 此时我们在命令行输入mysql -uroot -p命令会提示没有commod not found,我们还需要将mysql加入系统环境变量 # 进入/usr/local/mysql/bin,查看此目录下是否有mysql vim ~/.bash_profile export PATH=$PATH:/usr/local/mysql/bin # 修改新的密码 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass'); 方式二: 使用homebrew安装mysql及遇到的问题: $ brew install mysql 正常情况下,用上面的命令安装MySQL后,就能直接启动。但启动时会报错误(或者报没有权限错误Permission denied),打开数据目录下以.err为后缀的错误日志文件: 2016-12-11T10:47:25.772003Z 0

使用Homebrew安装一个Formula的多个不同版本

丶灬走出姿态 提交于 2019-12-04 20:19:31
Homebrew是mac os x系统下一个非常优秀的软件包管理工具,个人认为比macports好用,本文介绍了使用homebrew如何安装一个软件包的多个版本并随意切换。 例如已经使用brew install gradle安装了最新版本1.9,现在我要安装gradle1.8并切换到1.8,那么进行如下操作: 1. brew versions gradle 2. homebrew本身就是一个git仓库,这里我们看到了gradle各个版本的记录,于是我们需要checkout出1.8版本,进入/usr/local目录下,执行 3. 然后先使用brew unlink gradle,删除对1.9的引用,继而再使用 brew install gradle即可,brew会自动下载1.8版本的gradle代码进行安装; 4. 完成之后gradle1.8分支是没有用了,我们可以将其删除: 当然了,,不删除也没什么影响,楼主自己不太喜欢没用的东西放在系统里 5. 这样我们就同时安装上了gradle1.8和1.9版本,可以使用ls查看: 使用brew info gradle可以很清楚的看到有两个版本的gradle,而且1.8版本后面有个*号,表示当前使用 6. 使用brew switch gradle 1.8/1.9随意切换版本: 7. 另外最后还给出一个使用homebrew的小技巧:

Use librsvg / rsvg to convert SVG images with ImageMagick

纵然是瞬间 提交于 2019-12-04 18:17:09
问题 I know this question has several answered version here (like this: ImageMagick convert SVG to PNG not working with RSVG enabled ), but actually I can't find a real solution to my exact problem. My problem is: I have a specific SVG file (and I will generate more) that ImageMagick inside SVG>PNG convertor process doesn't convert perfectly. So I need to change it to librsvg , because it does, I tested these 2 lines with different result: convert test.svg test.png // ( img: http://tinyurl.com

Error setting up the tesseract OCR in gem in rails

会有一股神秘感。 提交于 2019-12-04 16:54:45
I'm trying to setup the tesseract-ocr gem in my rails environment. I have ran brew install tesseract and then ran a bundle install on the app and that all runs without errors however when starting the app ( rails s ) the following error is throw: /Users/xxxx/.rvm/gems/ruby-1.9.2-p290@xxxx/gems/ffi-inline-0.0.4.3/lib/ffi/inline/compilers/gcc.rb:35:in `compile': compile error: see logs at /var/folders/66/pm_j0lp94gvcj0qnlcnsx9pw0000gn/T/.ffi-inline-501/4239dac38f2a721e0dc5b3750d71ce2e6fa4acb6.log (CompilationError) It reference the following log file: g++ -dynamic -bundle -fPIC -L/usr/local

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo cannot run git after OS update [duplicate]

假如想象 提交于 2019-12-04 16:43:23
问题 This question already has answers here : “Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.” when using GCC (10 answers) Closed 2 years ago . The IDE is giving an error message that it can't start git: /usr/bin/git , however the path is correct, and it was working before. idea.log contains the following error: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. 回答1: This generally occurs after the mac OS

Can't install Ruby on Mountain Lion with rvm

早过忘川 提交于 2019-12-04 16:33:52
Have tried to install Ruby on Mountain Lion using rvm, but got this error message: ruby-1.9.3-p362 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p362 ruby-1.9.3-p362 - #configuring Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr', please read /usr/local/rvm/log/ruby-1.9.3-p362/configure.log There has been an error while running configure. Halting the installation. ruby-1.9.3-p362 is not

Problems installing imagemagick

别来无恙 提交于 2019-12-04 16:20:17
问题 Im trying to start my first refinery cms project, and am already having trouble. I am trying to get imagemagick going, and am getting errors. I looked on stackoverflow about changing permissions to my profile, or the directories that have problems, also uninstalling and reinstalling, but so far no luck. I was hoping maybe someone could walk me through fixing this. Thanks so much. Mac-Pro:local user$ brew install imagemagick Error: You must `brew link jpeg' before imagemagick can be installed

Two versions of git installed, currently using old one, how do I switch?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 16:00:49
I need some help, I had a version of git installed a while back (not sure how) not using homebrew. I just installed with homebrew and I'm not sure how to use the new one instead of the old one. Ideas? Thanks in advance $ which -a git /usr/local/bin/git /usr/bin/git /usr/local/bin/git $ which git /usr/local/bin/git $ /usr/bin/git --version git version 1.7.5.4 $ /usr/local/bin/git --version git version 1.8.4 $ git --version git version 1.7.5.4 export PATH=/usr/local/bin:$PATH 来源: https://stackoverflow.com/questions/19231747/two-versions-of-git-installed-currently-using-old-one-how-do-i-switch

Should I _really_ remove dylibs after installing homebrew?

泪湿孤枕 提交于 2019-12-04 15:42:25
问题 I just installed homebrew and saw a message from the install script that said I should consider removing the following "evil" dylibs as they might break builds. Has anyone done this? And if so, did you later find out that you actually needed them? Here's the dylib list: /usr/local/lib/CHBrowserView.dylib /usr/local/lib/libgnsdk_musicid_file.dylib /usr/local/lib/libgnsdk_sdkmanager.dylib /usr/local/lib/libjson.0.0.1.dylib /usr/local/lib/libmusicid_osx.dylib /usr/local/lib/libpcre.0.0.1.dylib