w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Should I use brew or pip for installing matplotlib?
Since you need compile many of these packages, it is not the simplest task on the Mac. I would recommend to use a distribution like Anaconda. It is free, comes with all the things you need and has a simple installer. It will save you a lot of hassle because all components work together.

Categories : Python

Error in installing node.js module using npm
You need to add VCBuild.exe to your path. Check out this answer on how to do it: Testacular install failes, no vcbuild.exe

Categories : Node Js

"The installer has encountered an unexpected error installing this package...". Is it possible to install Node.js (v0.10.15) on Windows XP?
So, I figured out how to install it :) I did a double click on node-v0.10.15-x86.msi file in order to install Node. And that caused an error. .msi files shouldn't be installed that way. I found a solution on this page http://thebackroomtech.com/2007/08/23/howto-extract-files-from-a-msi-file-using-the-windows-command-line/ So my steps in Windows command line. I pointed a directory where to unpack node-v0.10.15-x86.msi to: C:>msiexec /a "C:DownloadsProgramsNode.js ode-v0.10.15-x86.msi" /qb TARGETDIR="C:Program Files odejs" And now it works. It unpacked Node.js and all its dependencies to C:Program Files odejs. I just added the directory to PATH. I'm glad I can use Node on Windows. Working under Ubuntu is a pain.

Categories : Node Js

Rails installing mysql - Error installing mysql2: ERROR: Failed to build gem native extension
I've been so annoyed by the same problem, and finally succeeded in installing mysql2. Kudos to odiszapc@github. It appears any other solution I've found via Google than below doesn't work to me. Copied and pasted from here. So no credit to me. gem uninstall mysql2 Download last MySQL connector from http://cdn.mysql.com/Downloads/Connector-C/mysql- connector-c-noinstall-6.0.2-win32.zip Extract it to C:connector-6.0.2 gem install mysql2 --platform=ruby -- '--with-mysql-lib="C:connector-6.0.2lib" --with-mysql-include="C:connector-6.0.2include" --with-mysql-dir="C:connector-6.0.2"' Additional info on mine. ruby 1.9.3p392 (2013-02-22) [i386-mingw32] Rails 3.2.13 MySQL Server 5.6 mysql2-0.3.13 P.S Even if you successfully installed mysql2, you may still need some work (e.g. mysql2

Categories : Mysql

brew update: Error in terminal mac
I've seen this a few times and don't know what causes it; but if you're sure you haven't made any modifications to those files that you want to save, you can go into /usr/local (or wherever you keep the Homebrew installation) and type git reset --hard HEAD. Then try updating again.

Categories : Osx

How To Require Node Module In Node REPL Without Installing Globally?
Printing undefined is normal behavior for both the browser console and the node repl. Try typing: express. (tab key) - you should get something like this: > var express = require('express'); undefined > express. express.__defineGetter__ express.__defineSetter__ express.__lookupGetter__ express.__lookupSetter__ express.constructor express.hasOwnProperty express.isPrototypeOf express.propertyIsEnumerable express.toLocaleString express.toString express.valueOf express.apply express.arguments express.bind express.call express.caller express.constructor express.length express.name express.toString

Categories : Node Js

Error when running brew cask install
brew cask install was working earlier in the day, so I hoping that it was just a change in the load path affected the shell's ability to find and run the brew cask install command. So, I did an exhaustive search: $ find / ( -name "brew-cask*" -type f ) -or ( -ilname "*brew-cask*" ) 2>/dev/null | grep brew-cask | xargs ls -l -rw-r--r-- 1 lex admin 0 Sep 1 16:42 /Library/Caches/Homebrew/Formula/brew-cask.brewing -rwxr-xr-x 1 lex admin 193 Aug 31 20:35 /Library/Caches/Homebrew/brew-cask--git/bin/brew-cask.rb -rw-r--r-- 1 lex admin 470 Aug 31 20:35 /Library/Caches/Homebrew/brew-cask--git/brew-cask.rb -rwxr-xr-x 1 lex wheel 197 Sep 1 16:39 /usr/local/Cellar/brew-cask/0.15.0/bin/brew-cask.rb lrwxr-xr-x 1 lex admin 32 Aug 31 20:35 /usr/local/Library/Formula/brew-cask.rb

Categories : Osx

Home brew failing on “command ‘gcc’ failed with exit status 1″ error
I found a workaround on SO, I can't find the original post but similar info is given on this one : Installing Scipy on Mac OS X Lion 10.7.5 So I added the following lines to my .bashrc and I then managed to brew install gdal. export CC=gcc export CXX=g++ Be aware that this did not solved my problem entirely as I still have config issue with geodjango, but at least I have gdal installed.

Categories : Gcc

Installing a specific Node version in ubuntu
Chris Lea has 0.8.23 in his ppa repo. This package let you add a repository to apt-get: (You can also do this manually) sudo apt-get install software-properties-common Add Chris Lea's repository: sudo apt-add-repository ppa:chris-lea/node.js-legacy Update apt-get: sudo apt-get update Install Node.js: sudo apt-get install nodejs=0.8.23-1chl1~precise1 I think (feel free to edit) the version number is optional if you only add node.js-legacy. If you add both legacy and ppa/chris-lea/node.js you most likely need to add the version.

Categories : Node Js

Node.js - installing johnny five library on windows
I am not sure about your specific error but I had a lot of different node-gyp related errors with npm install on windows until I uninstalled all Visual Studio products and followed the instructions on https://github.com/TooTallNate/node-gyp to a T. That includes specifically Visual Studio 2010 (not 2012 which didn't work), the SDK, and the SDK update. After I followed those steps exactly I stopped getting errors (including a successful test installation of Johnny Five a few minutes ago. Maybe worth a try if you haven't followed these steps already.

Categories : Node Js

Installing the correct environment for Angular with Compass and all other Node dependencies
The error is quite clear, a grunt-plugin require that file... /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb Anyway ruby components are needed usually if you plan to use compass, if not, you can comment the "compass" sub-task in the "server" task in Gruntfile.js

Categories : Ruby

ERROR: Error installing jquery-rails: activesupport requires Ruby version >= 1.9.3. in Ubuntu 10.04
sudo gem install jquery-rails is probably using your system's built-in Ruby (which is likely 1.8, or 1.9.2). This is because you're using sudo. With RVM, get rid of the sudo and it'll use RVM instead: gem install jquery-rails

Categories : Ruby On Rails

Error installing Ruby on Rails 4.0.0 - error compiling atomic_reference.c
I had this exact same problem today. I was able to fix it, but I'm not entirely sure what caused the problem initially, or even how I solved it. What I do know is it finally worked after I updated ruby gems to the latest version, instead of getting version 2.0.0 as the tutorial suggests. gem update instead of gem update --system 2.0.0 Try that and let me know if it helps.

Categories : Ruby On Rails

Error installing Ruby on Rails 4.0 - atomic_reference.c Error 71
Had the very same problem, coming from that same tutorial. Got it to work following this post. Ran a few command to compare gemsets with the post but what seem to fix the problem was gem update --system (without the "2.0.0" from tutorial, updated me to 2.0.3) gem update gem install rails (again without specifying the version) And finally it installed properly

Categories : Ruby On Rails

Error while writing a Google CCS server in node using node-xmpp
The important part is to send the message in the required format : <message id=""> <gcm xmlns="google:mobile:data"> { "to":"REGISTRATION_ID", // "to" replaces "registration_ids" "message_id":"m-1366082849205" // new required field "data": { "hello":"world", } "time_to_live":"600", "delay_while_idle": true/false } </gcm> </message> It doesn't matter if you use a template or not. I don't know python nor javascript, but the purpose of the template in the python example seems to be simply to avoid the need to write the xml tags that wrap the JSON every time you send a message. You can append them to the JSON when you send the message.

Categories : Javascript

Creating the first web page via brew
OK, I think my problem is an operator error. I should have been testing the function with POST instead of GET which is, of course, the method used when you use a browser. I don't get this message if I POST with curl - for instance. My apologies for wasting anyone's time. Peter One more observation: don't use init as a function name; it seems to use some other namespace and complains about lazy-loading a database named 'P'

Categories : Misc

Brew just stays and never returns
I fixed it thanks to @mistym on #machomebrew IRC channel. You'll want to run xcode-select -switch and point it at your Xcode.app. E.g. xcode-select -switch /Applications/Xcode.app

Categories : Osx

Can not brew install gcc48 on Mac
I've just done precisely this install. Be patient – that step does take a long time and is very CPU intensive. On my (admittedly old) Macbook Pro it took over 30 minutes to complete. I suggest you try running it again and just leaving it until it's done.

Categories : Osx

Unable to 'brew link' imagemagick
You need to remove the imagemagick file in /usr/local/etc so that brew can write a new one there. The old file was placed there by something else than brew. Possibly another package manager. UPDATE 2015.03.07: as Chords indicated in a comment above it may be necessary to remove the folder entirely. (Although setting the correct permissions and groups may be an equivalent measure.)

Categories : Ruby

Brew disabled by merge conflicts
chmod -R 777 is extremely bad for security. This makes every file and directory under it world readable writable and executable meaning everybody can do what they like with it. At the very most directories should have permissions of 775 - better 755 and files should either be 664 or 644 unless they are executable files as exists in /usr/local/bin in which case they should be 755 again. The recursive change to /usr/local/ means that every file listed in the status / commit had permission changes to it which is why brew has complained. Might not look like much but it means the world to git and the security of your system. The only way to get this back is to reset the permissions on each file / directory under /usr/local/ and then remove your commit entirely with git reset --hard origin/ma

Categories : GIT

Can't figure out why brew version of python is not being used
You didn't link python properly. If you type brew install python on your terminal, it may output as Warning: python-2.7.5 already installed, it's just not linked. If then, you need to link your python install by typing brew link python. If you face any conflict because of some earlier site-packages, just type as brew link --overwrite python. Now it should work fine.

Categories : Python

Can not install opencv using brew or make on mac osx
I have recently encountered a similar problem building OpenCV using brew. The central issue was that OpenCV would not build properly when building against ffmpeg (it will try to do this if ffmpeg is also installed.) As suggested here, the problem can be resolved by using the following brew command to build OpenCV, which forces an alternative version of the build environment (one of the top troubleshooting suggestions for brew): brew install opencv --env=std Hope this works for you too!

Categories : Opencv

"brew install osm2pgsql" failed
I don't know anything about brew but according to the error message you are missing the zlib library. Try to install it first. And you should keep to osm2pgsql because it is the standard tool to import OSM data into a PostgreSQL database.

Categories : Osx

Error installing PIL on Mac OS 10.8.4
I somewhat remember this exact problem. Have you installed the Xcode command line tools? That cured my headaches. You can find it here.. https://developer.apple.com/xcode/ From Xcode's Preferences menu, install the Command Line Tools (Downloads/Components tab). supporting references: gcc-4.2 failed with exit status 1 I can't install 'pip install pil' in Osx

Categories : Python

brew doctor throwing loads of errors?
The stuff in /usr/local/Cellar was put there by MacPorts, an earlier package manager for mac. You probably want to remove that. https://guide.macports.org/chunked/installing.macports.uninstalling.html

Categories : Laravel

GTK+ installed with brew is not found when I try to compile other applications
I had smiliar issues with after brew install gtk+. Specifically, I got: Package xcb-shm was not found in the pkg-config search path. Perhaps you should add the directory containing `xcb-shm.pc' to the PKG_CONFIG_PATH environment variable Package 'xcb-shm', required by 'cairo', not found app.c:1:10: fatal error: 'gtk/gtk.h' file not found #include <gtk/gtk.h> ^ 1 error generated. make: *** [app] Error 1 while running make for my app and this command solved my problem: export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig The extended answer on this problem has been already answered here: http://stackoverflow.com/a/23988317/4694621. This might be an issue since gtk+ depends on these libraries (source): Glib Pango ATK GDK GdkPixbuf Cairo

Categories : Osx

Error installing OpenCV: Error 1, 2
Looks like you can't install it on Snow Leopard, at least without some additional manipulations with sources.The reason is OpenCL version. Take a look at this thread for additional info

Categories : Osx

Error while installing Cyberlink for C++
FileInputStream.h is listed on that command line twice. install appears to be balking at that. That appaers to be a makefile error of some sort. That repository certainly seems to be out of date. The subversion repo however appears to match that changelog.

Categories : C++

Error while installing spree
If you're using Rails 3.2 you should use all gems with that branch too, i.e.: Gemfile: gem https://github.com/rails/sass-rails.git, branch: '3-2-stable' You can see branches listed on GH next to green compare button (with new layout). What if specific gem doesn't have branches? Well, you can fork it, modify the gemspec,see what fails and fix it.

Categories : Ruby

Error installing heroku
You should install the heroku gem directly into the RVM environment and gemset you want to use it in: gem install heroku If you do not have RVM this is a linux command to install the heroku Toolbelt! wget -qO- toolbelt.heroku.com/install-ubuntu.sh | sh If you do not have a Ruby Version manager I would install one.

Categories : Ruby On Rails

Error installing rails-4.0.0
Can't tell you where that error comes from, but considering how useless installing ri and rdoc actually is, I would just do: gem install rails --no-ri --no-rdoc You'll also get a much faster install by skipping the docs. In fact, this is what the official release page recommends: http://weblog.rubyonrails.org/2013/6/25/Rails-4-0-final/

Categories : Ruby On Rails

"pip list" error 124 - Installing on Mac OS x
Try the solution suggested here on GitHub: It happens when you install distribute using http://python-distribute.org/distribute_setup.py script. Running pip install -U distribute fixes the problem. The bug reproduces only in pip==1.4.

Categories : Python

GCC error when installing ncurses on OS X 10.8
--no-cpp-precomp is an obsolete Apple GCC option it should generate a warnning not an error but if -Werror flag is passed to the compiler it will fail on warnings, either way, you will have to remove it manually from the build scripts and then run autoreconf or you could just remove it from the configure script directly.

Categories : Gcc

Error Installing binding_of_caller-0.6.8 Gem
You need to update to v0.7.1 to get Ruby 2.0.0 support. https://github.com/banister/binding_of_caller/issues/16#issuecomment-14028817 This comment would be a solution.

Categories : Ruby On Rails

Error installing phonegap via npm on Mac OS X
Looks like this was an issue with node version 0.10.14 but was fixed at 0.10.15 as can be seen here: https://github.com/isaacs/npm/issues/3703

Categories : Cordova

Installing OpenCV on mac error
If you use default settings, opencv files will be inside /usr/local/lib and /usr/local/include, there should be no doubt about that. For Xcode settings, I use: create command line tool project. add code as you did. add lib files, right click your project name, select "Add files to..", when the new dialog window appears, press key "/", then input "/usr/local/lib", select dylib files as you need (I select all for simplicity). add lib: double click you project name for project settings, in "Build Settings", add "/usr/local/lib" (recursive) for "Library Search Paths". add header: add “/usr/local/include” (non-recursive) for "Header Search Paths" also in "Build Settings" tab, filter by "c++ standard library", and set this parameter to libstdc++ (GNU C++ standard library). If you follo

Categories : Xcode

Error Installing Atomic
The error messages don't give the slightest clue as to what the real problem is. Bundler or a component it calls does not properly handle directory names with spaces in them. In my case it was .../Data RAID/... that caused the problem. Once I moved the project to a different drive where there would be no spaces in the path, everything worked fine. It appears it may be only the location of the gems that are the issue. In an earlier attempt, I created a project where the gems weren't located in a path containing spaces, but the project was. It didn't have any problems as far as I went with it. Notice also that the gem install atomic was successful.

Categories : Ruby

error in installing DotNetNuke
I have resolved this issue. Here's what I found. I was attempting to connect to a SQL Server instance where case-sensitivity is enforced. The script files provided with DNN 7.00.06 have a number of inconsistencies in regards to case. An example is the parameter @ParentId, which is declared @ParentID. I was not permitted to alter the settings on the remote SQL Server so I ended up installing a local SQL Express (with case-sensitivity off) as a work-around. I hope my experience helps if anyone else comes across this issue.

Categories : Sql Server

Error installing symfony CMF
You get a Generic document when no specific document is at that position in the content repository. PHPCR being a tree, there sometimes are nodes added in between so that a child node can have a parent. Those nodes do not map to any document, in which case the Generic document is used. If you simply installed the sandbox from git and followed all the steps in order, this should not happen. You first set up the repository, then load the fixtures. If this is what you did, please open an issue at https://github.com/symfony-cmf/cmf-sandbox

Categories : Symfony2

Why do I get a 404 error installing Ruby 1.9.3?
The Ruby-Lang.Org service is currently down. Status is at http://www.ruby-lang.org/en/news/2013/08/06/status-issue/ EDIT: More timely updates and use of mirrors guidance at https://github.com/ruby/www.ruby-lang.org/issues/259 FINAL EDIT: The status page indicates the service is back up. I also just successfully ran rvm install 1.9.3

Categories : Ruby On Rails



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