w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Stopping "php-fpm" ( homebrew installation ) Mac OSX 10.8.2
I got it : The method to do it was as follows : 1. To checkout php-fpm, use : php-fpm php54-fpm 2. To stop the service, we have to use Apple's SystemStarter, like so : SystemStarter php54-fpm restart

Categories : PHP

Gem installation error during MYSQL gem installation in ruby
You need to install mysql before installing mysql gem. Follow this link on how to install mysql on windows

Categories : Mysql

Homebrew: Python version still 2.7.4 after homebrew install
I think I found the answer in a similar question. I was able to use @akauppi's answer to fix my problem. I'm guessing the symlink in /usr/bin/local/ was pointing to the system python or maybe just another older version I have on my system somewhere instead of the version installed by Homebrew. By running brew link --overwrite python, I was able to replace those old symlinks and I now show version 2.7.5 when I run python.

Categories : Python

mysql2 gem fails to compile with MySQL 5.6.12 on OS X with Homebrew
I had the same problem, I managed to fix it. I did a lot of things, and I don't know for sure what it was, but going to MySQL 5.6.10 seems to have worked. Uninstall MySQL 5.6.12: brew unlink mysql brew uninstall mysql Go to the homebrew directory: cd /usr/local Go to version 5.6.10 (you can find a list of versions by running brew versions mysql: git checkout 48f7e86 Library/Formula/mysql.rb Then install mysql again: brew install mysql And now gem install mysql2 works for me. I've also installed mysql from source (brew install mysql --build-from-source), but that didn't solve it, but might be part of the solution.

Categories : Mysql

Change mysql db location when installed with homebrew
If you have MySQL running a simple ps ax | grep mysql will yeld the process path. Otherwise search your fs for mysqld it will take some time but will get the job done: sudo find / -type f -name "mysqld" A find / | grep mysql will print every file containing mysql in its name. Use MySQLWorkbench, it has a nice GUI which lets you configure INNODBs data path and will also help you managing your instances. Otherwise edit /etc/my.cnf (or create it if you don't have any) insert a [mysqld] section and set innodb_data_home_dir = /path/to/where/you/moved/your/data [mysqld] innodb_data_home_dir = /path/to/where/you/moved/your/data

Categories : Mysql

Connect to old mysql installation using python-mysql,
You probably need to use an other connector. MySQL-python seems to support MySQL3.23+. mysql-connector-python simply can't connect using old authentication.

Categories : Python

MySQL 5.6.10 installation error
http://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_log The --log option was removed in MySQL 5.6.1 (along with the log system variable). Instead, use the --general_log option to enable the general query log and the --general_log_file=file_name option to set the general query log file name. In fact, the log option has been deprecated since MySQL 5.1.29 (circa October 2008). You don't have to remove your my.cnf, but you cannot use the log option anymore. You must change it according to the instructions above, and it will work on all your other instances of MySQL 5.1 and greater.

Categories : Mysql

MySQL Gem installation error on Rails
It sounds like you don't have a compiler. On a debian/ubuntu system, you can get everything you need to compile and build packages with: sudo apt-get install build-essential On Fedora/Red Hat I think it should be: sudo yum groupinstall “Development Tools”

Categories : Mysql

MySQL Server - Installation & Configuration Slilenly
Just for answer to question of this topic , I should say for CHECK Enable root access from remote machines option you just need to add SkipNetworking=no to batch file configuration lines. Above command allow to all clients connect to root user and it's not a wisely way. As @MikeBrant said on comments it's worst way to sharing MySQL databases. Instead that insecure way, we need to create a user and make GRANT ACCESS to that, like so : @echo off echo Installing MySQL Server. Please wait... msiexec /i "mysql-5.5.32-win32.msi" /qn echo Configurating MySQL Server... "%ProgramFiles%MySQLMySQL Server 5.5inmysqlinstanceconfig.exe" -i -q ServiceName=MySQL RootPassword=mysql ServerType=DEVELOPER DatabaseType=MYISAM Port=3306 Charset=utf8 echo MySQL has been installed successfully setx PATH

Categories : Mysql

How to Backup mysql db from Remote to local without mysql local installation?
Solved it!, I forget to specify the HostIP & port with the mysqldump command Changed my executeCmd parameter as following: executeCmd = PathToMySqlDumpFile+"mysqldump -h "+HOSTIP+" -P "+PORT+" -u "+USER+" -p"+PASS+" "+database+" -r "+path; along with the mysqldump file path. We only need the mysqldump file to take the backup from remote server to local. No need for mysql client installation.

Categories : Java

Php - Your PHP installation appears to be missing the MySQL extension which is required by WordPress
The php mysql api is deprecated. It's kaput --- going away -- not to be used, finito. Your php installation probably reflects this. Rather than attempting to resurrect something that php no longer supports, just patch your wordpress: http://wordpress.org/plugins/mysqli/

Categories : PHP

Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress
its not mySQL that is the issue you need to enable the mySQL extensions required by Wordpress in the php.ini file or install them if they don't exist. When you removed MySQL it probably removed or diabled the extensions for it in PHP, atleast that is what it sounds like. You should be able to just install or enable the extensions back in without reinstalling all of mySQL

Categories : Mysql

Your PHP installation appears to be missing the MySQL extension which is required by WordPress on Windows Server 2008 R2
I had an issue like this on a windows install and it was down to this. If you don't have the extension_dir uncommented on you php.ini, it wont default to the 'ext' directory (which is where all extension dlls are on windows). Therefore, even uncommented extensions are ignored (and you wont see them on your phpinfo()) http://php.net/manual/en/install.windows.extensions.php

Categories : PHP

WiX Toolset - check for all installation prerequisites at once (conditional installation)
The WiX Condition element when used under a Fragment or Product element represents an entry in the LaunchCondition Table and is processed by the LaunchConditions Action. The behavior you see is a limitation of that underlying feature. Here's a blog article I wrote about this 7 years ago: Short Comings of LaunchConditions Sadly, Microsoft has never taken my recommendations for improvement. So instead of using the Condition element you'll have to write your own custom table and custom action to do the processing. I have sample code for this in InstallScript and C# but I've never written it in C/C++. Here is a stripped down example in InstallScript. Read it as pseudocode for refactoring in C/C++. You'll need to also create the custom table used by the SQL query, define and schedule

Categories : Wix

homebrew update git on mac
Well, git-completion.bash probably didn't change that much anyway, but since you're updating git to use the newer version, getting the newer version of that script should be no problem.

Categories : GIT

Mac - Can’t install Homebrew
What was the message given when it didn't install correctly the first time? Is the brew binary present in /usr/local/bin ? If so, you probably just need to add it to your path, see: Error Installing Homebrew - Brew Command Not Found

Categories : Osx

Can't get Homebrew and git to work the way I want them to
I know it's super frustrating and some what confusing to get this all to work. Been there, done that. There are a couple things at play here, so take them one at a time (in fact. I'm just guessing some stuff so I'm happy to update this answer as you let me know more) Let's start with: Warning: Experimental support for using Xcode without the "Command Line Tools". You have only installed Xcode. If stuff is not building, try installing the "Command Line Tools" package provided by Apple. Installing command line tools is highly recommended. It's going to install gcc and other tools that help compile the code that homebrew downloads. Open Xcode. Open Preferences. On the top bar, choose "Downloads" Install "Command line tools" Second, I'm not sure how you quite blew away your path. I wou

Categories : Ruby On Rails

Cannot install gcc48 with homebrew
This isn't restricted to Homebrew. There's a problem with the configure script if cloog-0.18.0 uses the bundled sub-package of isl-0.11.1. The VERSION string is not correctly substituted, and is set to "UNKNOWN" in the isl_version() function call - the value that the gcc configure script is testing. You might have to build (or install) ISL first, and then add --with-isl-prefix=$SOME_DIR to the cloog configure options, so it uses the external ISL installation. I built gcc-4.8.1 for AVR recently from source, and used: ## isl-0.11.1 @ ftp://gcc.gnu.org/pub/gcc/infrastructure/ > ../configure --prefix=$CROSSDIR --with-gmp-prefix=$CROSSDIR > make [check]; make install; rehash and now build cloog-0.18.0 with the installed 'system' ISL: > ../configure --prefix=$CROSSDIR --with-isl-pr

Categories : Osx

Can I use homebrew's qt5 with capybara-webkit?
I suggest to brew update, brew remove qt5 and brew install qt5, because I find on my system, that: xcrun otool -L /usr/local/Cellar/qt5/5.0.2/lib/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets [snip] /usr/local/Cellar/qt5/5.0.2/src/qtwebkit/lib/QtWebKit.framework/Versions/5/QtWebKit (compatibility version 5.0.0, current version 5.0.2) So Qt5 does link against QtWebKit and the link is valid on my system in contrast to yours. Therefore the suggestion to reinstall. If homebrew installs the prebuilt bottle and still has this issue, please report on Homebrew's issue tracker on github. I installed mine from source. However, I guess an upstream issue (a minor one) is that the link points into src which should probably lib. But that is up to Qt to fix.

Categories : Qt

MAC homebrew php pdo firebird driver
Pdo Firebird from pecl is deprecated , i will updated it soon that i get access to it you need to download the source code for php extract it and then build only the pdo_firebird extension cd ext/pdo_firebird phpize ./configure (you might need to pass the firebird framework dir --with-pdo-firebird=/Library/Frameworks/Firebird.framework ) make sudo make install after that you need to copy the extension in your brew build php extensions folder and add it to php.ini extension=pdo_firebird.so I also recommend firebird 2.5.x is more recent and well supported on recent macosx versions

Categories : PHP

Homebrew's Git 1.8.3.2 causes an 'unlink loop'
This issue is fixed in the b1ad9b8 commit to the GitHub repository. I've since learned that it is not Git specific, so keep this in mind if you are working with formulae that are "Keg Only".

Categories : GIT

How can I use Homebrew to install both Python 2 and 3 on Mac?
I would use pyenv You can install it: $ brew install pyenv Once you have it, you can install different versions of python and choose which one you can use. Example: $ pyenv install 2.7.5 You can check the versions you have installed with: $ pyenv versions And you can switch between python versions with the command: $ pyenv global 3.3.1 Also you can set a python version for the current directory with: $ pyenv local 2.7.5

Categories : Python

Installing Git with Homebrew not working
It looks like there's a conflict with GitHub's app. I would remove it, you don't need it. A few people I spoke with about it said it was kind of buggy and that you're better off just using the terminal (which I agree with). edit: brew update brew upgrade followed by brew doctor might give more clues.

Categories : GIT

Versioning policy of homebrew formula?
Homebrew doesn't support this (yet), what other packaging systems might call a revision. Either you create a fake version number, as you propose, but that isn't recommended for public packages. Or you manually uninstall and reinstall the package.

Categories : Misc

HomeBrew -bash: $: command not found
It looks like you copied a line from a website or other source. Generally, terminal commands are prefixed by a sample terminal prompt in documentation. For example, if you're instructed to run the ls command, you'll often see it printed as $ ls in documentation. That $ is not part of the command, it merely represents a terminal prompt. So run brew install pyqt without the $.

Categories : Osx

How can I make my default python homebrew?
Homebrew puts things in a /usr/local/Cellar/<appname> directory, if I'm not mistaken. You should find the bin of the python in there and put it in your path before hitting /usr/bin. For example, on my 10.8, python is located at /usr/local/Cellar/python/2.7.5/bin and I put that directory before /usr/bin/python in my PATH variable. I do that similarly for other instances of me wanting to use homebrew version of an app, another example being sqlite.

Categories : Python

HomeBrew Mac change Python Path
You should edit ~/.bash_profile (create the file if it does not exist) to set the PYTHONPATH environment variable: export PYTHONPATH=`brew --prefix`/lib/python2.7/site-packages:$PYTHONPATH

Categories : Osx

Error installing hadoop with homebrew
It seems that Homebrew formula for Hadoop is outdated, it points to 1.1.2 instead of 1.2.1. Until the guys from Homebrew fix the bug you can do the following steps in order to install Hadoop 1.1.2: Download manually version 1.1.2 from http://archive.apache.org/dist/hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz to any folder in your computer Then move the file hadoop-1.1.2.tar.gz to homebrew's temporary folder, if you have not changed it before, it should be located in /Library/Caches/Homebrew Finally you can install Hadoop using Homebrew, now brew will find that the file has already been downloaded and will proceed with installation as follows: $ brew install hadoop ==> Downloading http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar. Already downloaded:

Categories : Osx

Error Installing CMake on Mavericks using Homebrew
I solved this by manually editing the source file in question & removing that line with the error. Edit the MD5 of the new archive file you create, then run brew install -v cmake. It should work.

Categories : Osx

tclstub issue while using homebrew to install graphviz
Following the answer in here, it seems like remove tcl-tk brew -v install tcl-tk --with-tk sudo ln -s /usr/local/Cellar/tcl-tk/8.6.0/lib/libtcl8.6.dylib /usr/local/lib/libtcl8.6.dylib sudo ln -s /usr/local/Cellar/tcl-tk/8.6.0/lib/libtk8.6.dylib /usr/local/lib/libtk8.6.dylib sudo ln -s /usr/lib/libtclstub8.5.a /usr/lib/libtclstub8.6.a sudo ln -s /usr/lib/libtkstub8.5.a /usr/lib/libtkstub8.6.a brew update brew upgrade brew -v reinstall graphviz does the trick. The last two linking where done as suggested here. I hope this helps other folks.

Categories : Osx

log4j warning after `homebrew install zookeeper`
To be clear, there are two log4j.properties files involved. One is created by Homebrew and gets written to /usr/local/etc/zookeeper/log4j.properties. This file is not the cause of the error message above. The other log4j.properties file is particular to your (my) application. So, to answer part 1 of the question, create a log4j.properties file on the classpath of the Clojure app, such as in the src directory. log4j.rootLogger=WARN, A1 log4j.logger.user=DEBUG log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d %-5p %c: %m%n log4j.logger.org.apache.zookeeper=WARN I built this by starting with https://github.com/clojure/tools.logging and adding the last line. To answer part 2, Homebrew d

Categories : Java

Installing Older version of OpenCv 2.4.4 with HomeBrew
I am running into this issue as well. To switch to the specific branch (2.4.4, or 2.4.3), you have to navigate to the correct git folder. In this case you want to go to homebrew-science subfolder. cd /usr/local/Library/Taps/homebrew-science git checkout d85d011 opencv.rb to checkout branch 2.4.4 brew install opencv (You may need to run brew unlink opencv if you have already installed some other versions)

Categories : Opencv

Homebrew's formula-like object creation in Ruby
Note that your attr_reader methods are on instance level. To call them you'd need to do this Somepackage.new.version which obviously was not your intent. You can promote them to class level like this: class Formula class << self attr_reader :version, :homepage end def version(version) @version = version end end But here's a problem as well. Your second version of version overwrites version from attr_reader. As a result, you have a method which can set values, but not return. After some experiments, you'll end up with something like this: class Formula def self.version(version = nil) if version @version = version end @version end end class Somepackage < Formula version "2.8" end Somepackage.version # => "2.8" Make your own ver

Categories : Ruby

Can't install GCC48 via Homebrew - curl error (auth?)
It seems that curl isn't giving the proper error thereby misleading you into thinking that it is some sort of auth issue. The real issue is that the specified directory doesn't exist on the ftp server. Maybe this is a homebrew issue. $ wget ftp://gcc.gnu.org/pub/gcc/snapshots/4.8.0-RC-20130316/gcc-4.8.0-RC-20130316.tar.bz2 --2013-07-19 15:16:06-- ftp://gcc.gnu.org/pub/gcc/snapshots/4.8.0-RC-20130316/gcc-4.8.0-RC-20130316.tar.bz2 => `gcc-4.8.0-RC-20130316.tar.bz2' Resolving gcc.gnu.org (gcc.gnu.org)... 209.132.180.131 Connecting to gcc.gnu.org (gcc.gnu.org)|209.132.180.131|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD (1) /pub/gcc/snapshots/4.8.0-RC-20130316 ... No such directory

Categories : Gcc

parallel installion of Python 2.7 and 3.3 via Homebrew - pip3 fails
I was having the same problem as you were and I had export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH" in my ~/.bash_profile. Removing that line solved the problem for me. If you have that or something like it in your ~/.bashrc or ~/.bash_profile, try removing it.

Categories : Python

xcode command line tools homebrew warning
You don't need to reinstall Xcode. Go to Xcode preferences menu and click on downloads. You will see option to install "Command Line Tools" under Components. After that's installed homebrew stops complaining.

Categories : Xcode

Homebrew update fail: "Please, commit your changes or stash them before you can merge"
I was able to resolve the issue myself. What tipped me off is running "git status" did not show that file. Instead of using the common solution: cd $(brew --repository) git reset --hard FETCH_HEAD I had to do: cd [directory of the file in question] git reset --hard FETCH_HEAD That resolved the problem.

Categories : Osx

Stop Homebrew Pip putting virtualenv in /usr/local/share/
I also had the same problem, but I was able to fix it using the following solution (suggested by DistributionNotFound error after upgrading pip) and an additional command: go to /usr/local/lib/python2.7/site-packages and remove: easy-install.pth pip-1.2.1-py2.7.egg or other versions of pip you have. distribute-0.6.34-py2.7.egg or other versions brew rm python brew uninstall python (for some reason brew rm python only removed python 2.7.3 in my Homebrew folder. brew uninstall python allows me to remove the newest python installation in the folder) brew install python pip install --upgrade virtualenv Virtualenv should be installed to /usr/local/bin if you've followed the steps. *If you have Macvim installed, it might crashes the setup. Just reinstall with brew install macvim --overri

Categories : Python

"please check gdb is codesigned - see taskgated(8)" - How to get gdb installed with homebrew code signed?
I made gdb work on OSX 10.9 without codesigning this way (described here): Install gdb with macports. (may be you can skip it) sudo nano /System/Library/LaunchDaemons/com.apple.taskgated.plist change option string from -s to -sp at line 22, col 27. reboot the computer. Use gdb. If you installed it with mac ports then you must use 'ggdb' command. Or made an alias in your config file: alias gdb='ggdb' and use 'gdb' command then.

Categories : C++

Adding /usr/local/bin (homebrew) to QtCreator search path for pkg-config on Mac OSX
The way I have done it so far is, in the qmake project file I hardcoded the pkgconfig path mac { PKG_CONFIG = /usr/local/bin/pkg-config } I'm hoping there's a more elegant solution that someone can provide.

Categories : Osx



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.