homebrew

Getting Fabric Python Library to Work

馋奶兔 提交于 2019-12-23 03:07:11
问题 I installed Fabric via Pip, which was installed via Homebrew (OS X 10.6.6). The Fabric library is where pip says it should be, however I cannot get a basic fabfile going. I've tried the simple hello world example found here: http://docs.fabfile.org/en/1.0.1/tutorial.html Bash gives me the following error when I try fab hello : -bash: fab: command not found Paths: Python 2.7.1: /usr/local/bin/python pip libraries: /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages I'm probably

ld: library not found for -lboost_python on MacOS

删除回忆录丶 提交于 2019-12-23 02:59:16
问题 On Mac, I want to build the example Boost.Python code hello.cpp #include <boost/python.hpp> char const* greet() { return "hello, world"; } BOOST_PYTHON_MODULE(hello_ext) { using namespace boost::python; def("greet", greet); } I installed the Boost.Python with brew install boost-python --with-python3 And I compiled the hello.cpp by g++ -fpic -c -L/usr/local/Cellar/boost/1.67.0_1/lib `python3.6m-config --includes --libs --ldflags` hello.cpp There is a hello.o file generated. And generate .so

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

久未见 提交于 2019-12-23 02:58:17
问题 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

$PATH is not properly set up

倖福魔咒の 提交于 2019-12-23 02:43:12
问题 I just ran 'rvm get stable' to be given the below error; Warning! PATH is not properly set up, '/Users/jamesbkemp/.rvm/gems/ruby-2.2.1/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-2.2.1'. Previous to running 'rvm get stable' I ran 'brew upgrade ruby' to Ruby 2.2.2. 'echo $PATH'

GNU ls from Coreutils missing OS X ACL implementation

别来无恙 提交于 2019-12-23 02:41:48
问题 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

PHP72 MongoDB driver with Homebrew on OSX

老子叫甜甜 提交于 2019-12-23 02:39:26
问题 I have a question that might point to a misunderstanding I have with Homebrew in relation to MongoDB: I am running XAMPP (version) with PHP 7.2.1 (which I want to use) on Mac OSX 10.12.6 (Sierra). I installed MongoDB and created configuration and data storage folder. It runs fine on command line (when using mongod and mongodb by terminal). Now, I want to install the PHP driver for PHP 7.2.1. I followed the instructions on http://php.net/manual/en/mongodb.installation.homebrew.php and adapted

Why is pyplot giving me a TclError on osx?

拟墨画扇 提交于 2019-12-23 02:08:27
问题 UPDATE 2: I uninstalled and reinstalled with pip and now this happens. It seems like tk is not installed right. $ ipython Python 2.7.11 (default, Dec 21 2015, 14:13:54) Type "copyright", "credits" or "license" for more information. IPython 4.0.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: from matplotlib

-bash: pg_dump: command not found

穿精又带淫゛_ 提交于 2019-12-22 18:12:30
问题 I'm trying to pull a production database locally for my rails app. My local postgres version was too low so I needed to update to Postgresql 9.6.5 from 9.4.1. I installed Postgres 9.6.6 via Homebrew as such: brew install postgresql@9.6 Then ran: brew services start postgresql@9.6 However, when I try to do pg_dump I get -bash: pg_dump: command not found . I also tried updating my path as such: export PATH="/usr/local/Cellar/postgresql\@9.6/9.6.6/bin:$PATH" Any idea what I need to do to get pg

How do I get Sublime Text 2 to work with Ruby on Rails?

╄→尐↘猪︶ㄣ 提交于 2019-12-22 15:26:54
问题 I'm new to Ruby on Rails. Here’s what I’ve done so far: I’ve installed XCode, Homebrew, RVM, Ruby and Rails. Now how do I get Sublime Text 2 to work with Ruby on Rails? 回答1: First thing you should do is install Package Control if you haven't already. This will make downloading packages and plugins way easier. Then you can look at some of the Rails specific packages to make your life easier when coding with Sublime Text. Sublime Text has native support for syntax coloring in .rb files, so you

How do I get Sublime Text 2 to work with Ruby on Rails?

心已入冬 提交于 2019-12-22 15:24:20
问题 I'm new to Ruby on Rails. Here’s what I’ve done so far: I’ve installed XCode, Homebrew, RVM, Ruby and Rails. Now how do I get Sublime Text 2 to work with Ruby on Rails? 回答1: First thing you should do is install Package Control if you haven't already. This will make downloading packages and plugins way easier. Then you can look at some of the Rails specific packages to make your life easier when coding with Sublime Text. Sublime Text has native support for syntax coloring in .rb files, so you