homebrew

Yosemite / El Capitan php-gd + mcrypt installation

£可爱£侵袭症+ 提交于 2019-12-17 03:53:19
问题 How to install/enable php-gd and mcrypt in Yosemite 10.10 - PHP 5.5.14 build? note that following steps install newest PHP 5.5.x To check if you have gd and mcrypt installed use $ php -m to display compiled in modules, continue if you are missing desired modules and please see accepted answer . GD So, Apple installed GD (and you're using their build of PHP, which is fine), but did not include support for PNG. You are definitely missing "full" gd (with png support) module if:

mac 安装brew跟node

Deadly 提交于 2019-12-17 03:46:29
1. 安装 Homebrew    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2. Homebrew的基本命令   brew -v   brew search 例如:brew search node   brew list 例如:brew list node@10    brew install   brew uninstall 3. 因为配置环境变量引起的cd, vim等命令用不了,可以使用下面这个命令另命令临时生效,然后修改环境变量等配置文件    export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 4. 安装node    brew install node@10   brew install -g node@10 (全局安装) 5. 查看node跟npm命令是否可用   node -v   npm -v 6. 若已安装node,但是node命令没有用等解决方法    vim ~/.bash_profile (若没有可用使用touch ~/.bash_profile创建)   文件内容:export PATH=/usr/local/Cellar/node@10

Homebrew: Could not symlink, /usr/local/bin is not writable [closed]

你。 提交于 2019-12-17 03:46:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . While installing tig , HomeBrew is displaying the following issues while installing a dependency: Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/a2x /usr/local/bin is not writable. You can try again using: brew link

Homebrew: Could not symlink, /usr/local/bin is not writable [closed]

痴心易碎 提交于 2019-12-17 03:45:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . While installing tig , HomeBrew is displaying the following issues while installing a dependency: Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/a2x /usr/local/bin is not writable. You can try again using: brew link

macbook git 版本升级

风流意气都作罢 提交于 2019-12-16 11:53:18
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1. 背景 有商城提示 小于 2.24.1 的版本 git 有安全漏洞,要求升级 git 客户端 那么 mac 自带的 git 如何升级呢? 2. 升级步骤 2.1 在终端中输入以下命令, 检查当前的版本 ➜ ~ git version git version 2.21.0 (Apple git-122.2) 2.2 升级 git brew install git 2.3 重新链接 git brew unlink git && brew link git 2.4 关闭终端, 重新查看 Git 版本 ➜ ~ git version git version 2.24.1 收工完成 3.参考 Git 官网: https://git-scm.com/ Homebrew官网链接: https://brew.sh/ 来源: oschina 链接: https://my.oschina.net/venusdrogon/blog/3143498

MacOS 下搭建esp8266环境

大憨熊 提交于 2019-12-15 04:04:48
MacOS 下搭建esp8266交叉编译环境 自己是搞ARM嵌入式开发的,但手头又是一台Mac,对于Mac里面跑window虚拟机已是家常便饭。但如果可以直接用Mac开发,我是一定要尝试的,毕竟体验好这么多。这次,一个偶然机会,在参考网上教程后,顺利搭建成功,故记录一下。 总体步骤和网上众多Linux安装步骤类似。 不知道esp8266是什么? 请看这里 1.安装Homebrew Homebrew是Mac下的软件包管理工具。如果安装了的就跳过这步。 /usr/bin/ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install ) " 1 2.安装所需依赖 brew install binutils coreutils automake autoconf wget gawk libtool help2man gperf gnu-sed --with-default-names grep 1 3.准备交叉编译包 toolchain来源(找到的最新编译好的Mac版是2.3.0): https://github.com/esp8266/Arduino/releases sudo mkdir -p /opt/esp8266 sudo chmod 777 /opt

Using rbenv install throws an error

风格不统一 提交于 2019-12-14 03:53:04
问题 I'm using Homebrew rbenv. brew doctor comes out fine. rbenv install 2.0.0-p451 gives the following error message: user$ rbenv install 2.0.0-p451 Downloading ruby-2.0.0-p451.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/9227787a9636551f1749ee8394b5ffe5 Installing ruby-2.0.0-p451... BUILD FAILED Inspect or clean up the working tree at /var/folders/4h/ty8nj6c144b5cmhcrt0hd3cw0000gn/T/ruby-build.20140501101240.6245 Results logged to /var/folders/4h/ty8nj6c144b5cmhcrt0hd3cw0000gn/T/ruby-build

Build of py2cairo fails in Mac OS X with Homebrew

感情迁移 提交于 2019-12-14 03:13:00
问题 I've made the debatable decision to do some network analysis directly in Python instead of R. However, I'm having trouble getting all the igraph dependencies installed, ultimately failing with py2cairo. After updating Xcode to latest, installed cairo with Homebrew: brew install cairo A few warnings there for dependent libraries, and the brew link step failed. After chowning a few directories, I ran brew link again and it worked. Then, I uninstalled and re-installed python-igraph using pip .

Rails CarrierWave versions are not created for some reason

别说谁变了你拦得住时间么 提交于 2019-12-14 02:15:42
问题 I have the following file uploader class ItemImageUploader < CarrierWave::Uploader::Base include ::CarrierWave::Backgrounder::Delay include CarrierWave::MiniMagick include Sprockets::Helpers::RailsHelper include Sprockets::Helpers::IsolatedHelper def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end # Provide a default URL as a default if there hasn't been a file uploaded: def default_url asset_path("fallback/" + [version_name, "image.png"].compact.join('_'))