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 ...
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 ...
The solution for this error was (and is for all such errors) to have a look at the mkmf.log file (for me, /cygdrive/d/d/Documents/.gem/ruby/extensions/x86_64-cygwin/ffi-1.9.8/mkmf.log) and see which libraries are missing. In my case, -lcrypt and -lgmp were failing, so I had to "cygwin-setup" libcrypt-devel and libgmp-devel.
You should always use RubyGems to install any kind of Gems (eg. Rails) to reduce confusion. Ruby on Rails: gem install versus apt-get
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
You have to pipe the text you want to be "say by the cow" echo "hello wolrd" | cowsay an other cool thing to do. Is mixing cowsay and fortune fortune | cowsay
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. As per SO post: `require': no such file to load — mkmf (LoadError).
This gem is a joke with all this hype with the node.js project. It only includes the eventmachine gem and adds a new alias to it. https://github.com/rafaelfranca/node run sudo apt-get update sudo apt-get install nodejs or brew update brew install node
After 2 days of trial and error, I found a solution, follow the steps below but try it on a vm first. This worked for me on Kali linux hope it works for you. Before going ahead update your machine. git clone https://github.com/rapid7/metasploit-framework "folder_name" follow these steps to update ruby ...
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