homebrew

How to provide standard library sources for IntelliJ IDEA's Rust project?

一笑奈何 提交于 2019-12-05 16:01:01
问题 I am using Mac for development. I installed Rust 1.13.0 using brew install rust and the Rust plugin 0.1.0.1385 for IntelliJ IDEA. I created my first test project with cargo and while opening it with IDEA I got the message No standard library sources found, some code insight will not work I haven't found any sources installed, nor the Rust sources package in Homebrew. How do I provide sources for the project and what are the practical implication if I ignore this step? 回答1: As commented, the

macos 上npm的安装

给你一囗甜甜゛ 提交于 2019-12-05 15:54:12
1.检查 brew -v 是否安装了 homebrew 这个macOS 缺失的软件包的管理器。如果安装,跳转到第3步,否则跳转到第二步; 2.安装 homebrew 。安装跳转到 官网指导 。等待安装好之后,输入 brew -v ,如果出现版本号说明已经安装好: 3.homebrew update 更新 4.执行命令行 brew install node 安装node。执行 npm -v 即可看到安装好的npm版本 来源: https://www.cnblogs.com/YanJieMao/p/11932955.html

Error when installing Homebrew: dyld: Library not loaded: @rpath/libssl.1.0.0.dylib

六月ゝ 毕业季﹏ 提交于 2019-12-05 15:11:30
I'm trying to install Homebrew on my Mac os (macOS Mojave Version 10.14.3) And I keep getting the following error (the exact message I see in my terminal): dyld: Library not loaded: @rpath/libssl.1.0.0.dylib Referenced from: /Users/[my_machine_name]/anaconda3/lib/libssh2.1.dylib Reason: image not found I see a lot of solutions mentioning some brew related commands as part of their solution, but I'm trying to install brew here so I don't have brew yet. I'm wondering what I need to do? Edit: I'm using the following command to install brew: /usr/bin/ruby -e "$(curl -fsSL https://raw

Python 环境搭建(Win 安装以及Mac OS 安装)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 14:51:05
千里之行始于足下,今天我们先来学习 Python 环境搭建。 注意:本系列教程基于 Python 3.X Python 环境搭建 Win 安装 打开 Python 官网 https://www.python.org/downloads/选择最新版本下载,或者直接打开对应的版本python-374(https://www.python.org/downloads/release/python-374/)。 打开页面会看到有一个列表,如下图: x86是32位,x86-64是64位。 可以通过下面3种途径获取 python: web-based installer 是需要通过联网完成安装的 executable installer 是可执行文件(*.exe)方式安装 embeddable zip file 嵌入式版本,可以集成到其它应用中。 Windows x86 选择下载 :[Windows executable installer(https://www.python.org/ftp/python/3.7.4/python-3.7.4.exe) 下载完成,双击 exe 文件进行安装,如下图,并按照圈中区域进行设置,切记要勾选打钩的框,然后再点击 Customize installation 进入到下一步: 一路选择 Next,直至安装成功。 Mac OS Python 安装 说明:1

Difference between `brew services start mysql` and `mysql.server start`

醉酒当歌 提交于 2019-12-05 14:39:45
问题 I installed MySQL using homebrew brew install mysql , and I noticed that MySQL can be managed with two different methods: brew services start mysql and mysql.server start Is there any difference when starting the service using brew services vs starting it with the normal mysql.server method? Or are they basically the same thing, just a different alias? It appears they both use the same executable: /usr/local/Cellar/mysql/5.7.17/bin/mysqld Thank you for the help! 回答1: According to the help

Homebrew recompile from edited source code

狂风中的少年 提交于 2019-12-05 13:57:06
Is there a way to to recompile from an edited source code via homebrew? I did a change on the source user.hpp of Boost which I now want to recompile Boost with. I tried --build-from-source and --enable-bar but neither works, saying that it is already installed. The only way I can recompile is by reinstall but that simply overwrites the source code I changed. Any idea? First option Download the archive, edit the files, and zip the archive as homebrew does (same name and format). If you kept the original folder structure created by Homebrew, you can put the modified archive in ~/Library/Caches

Lion OSX: How to install libfreetype.6.dylib?

半世苍凉 提交于 2019-12-05 13:44:50
问题 I am trying to install a ruby gem, but the installation process is stopped, because: ld: file not found: /usr/local/lib/libfreetype.6.dylib for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) How can I install this library? I checked the /usr/local/lib/ and the library is missing there. EDIT: I ran locate libfreetype.6.dylib and got: /Applications/MAMP/Library/lib/libfreetype.6.dylib /Applications/VLC.app/Contents/MacOS/lib/libfreetype.6

MongoDB installed via Homebrew not working

大兔子大兔子 提交于 2019-12-05 12:42:26
I installed MongoDB via Homebrew (following http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/ ) but it's not working. Typing "mongod" at shell prompt gives me: -bash: mongod: command not found Not sure if I need to add something for Homebrew to my PATH env var? I can see Mongo is installed under /usr/local/Cellar/mongodb – but am assuming I don't need to add everything I install via homebrew to the path? Also assuming I can run mongod from any directory or am I actually meant to be in install directory? When I run brew doctor I get: Warning: You have unlinked kegs in your Cellar

brew linkapps for homebrew casks (automatically create symlink to /Applications folder)

坚强是说给别人听的谎言 提交于 2019-12-05 11:57:27
I am using homebrew and homebrew cask to manage my installations on my Mac with OS 10.10.5. After installing an app using "brew cask install", no symlink in the /Applications folder shows up. For apps installed via "brew install", a symlink to /Applications can be created by running the command "brew linkapps" – is there something similar for homebrew casks? In this particular case, some features of the LatexTools package for Sublime Text 2 did not work (open pdf viewer automatically and jump to line in pdf) as LatexTools expects the pdf reader used to be located in, e.g. /Applications/Skim

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

寵の児 提交于 2019-12-05 11:10:16
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 out my old supposedly-unused MacPorts installation (I have long since switched to Homebrew and was doing