Hot answers tagged gem
Thanks to this thread I found out that the reason it fails to install is because of ... a path pointing the wrong way when the package was compiled. Thankfully the solution is very simple: sudo gem uninstall mysql sudo apt-get install libmysqlclient-dev -y sudo gem install mysql Note: I got an error message trying to uninstall mysql, but that's ...
Struggled with the same problem for a few hours. In debian lenny, you can fix it by adding Defaults exempt_group=<your group> to the sudoers file. This is the only way to go around the compiled --secure-path option, (as far as I know). Notably, this will also exempt users from needing to enter their password when they sudo.
You should use apt-get If you care about uninstalling gems with their dependencies. RubyGems will not uninstall unused dependencies. See do-i-have-to-manually-uninstall-all-dependent-gems. If you care about uninstalling gems as a group, rvm is also an option (see below). If that gem would or should install executables in /usr/bin. If you want to upgrade ...
You should always use RubyGems to install any kind of Gems (eg. Rails) to reduce confusion. Ruby on Rails: gem install versus apt-get
First, you'll need to create a soft link to the subl command. If you haven't already, create a personal bin directory: mkdir ~/bin then create the soft link: ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl Next, open your .zshrc and add the following to the end: export PATH=$PATH:~/bin Now restart Terminal.app (or ...
You do not really need that gem to use MySQL in Ruby. There is a package in Debian/Ubuntu that already has same code already compiled and prepared. Just type sudo apt-get install libmysql-ruby.
On Ubuntu Hardy, 8.04 I got the apt-get install to work with: sudo apt-get install libmysqlclient15-dev -y
If you have secure_path set in /etc/sudoers, you can play with env_reset / env_keep all you like and it won't make any difference to the path. If you see something like this, comment it out. Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
I wrote instructions on how to install Watir on Windows: https://github.com/watir/watirbook/blob/master/installation/windows.md It is not fully up to date, but it should work.
As the error points out, the problem is that configure can't find libpq-fe.h. As Backtrack is based on Debian you can get that header installing libpq-dev package. So install it before $ sudo apt-get install libpq-dev and try again.
Required to install ruby-dev and dependencies.
I installed Xcode and re-build libxml2 and libxslt manually like described here tar xzvf libxml2-2.7.3.tar.gz cd libxml2-2.7.3 ./configure --with-python=/System/Library/Frameworks/Python.framework/Versions/2.3/ make sudo make install cd /usr/local/src curl -O ftp://xmlsoft.org/libxslt/libxslt-1.1.20.tar.gz cd libxslt-1.1.20 ./configure ...
I can see you're trying to build that with cygwin gcc and in my experience there's not much chance that will work. You should try the ruby + devkit from rubyinstaller.org, I have successfully installed watir for Win7x64 that way before.
Only top voted, non community-wiki answers of a minimum length are eligible