Hot answers tagged

27

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 ...


11

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.


7

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 ...


5

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.


5

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 ...


4

You should always use RubyGems to install any kind of Gems (eg. Rails) to reduce confusion. Ruby on Rails: gem install versus apt-get


4

On Ubuntu Hardy, 8.04 I got the apt-get install to work with: sudo apt-get install libmysqlclient15-dev -y


4

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.


2

Look at the Ruby GEM command reference here: -n, -​-bindir DIR - Directory where binary files are located -​-[no-]user-install - Install in user’s home directory instead of GEM_HOME. Effectively, and operationally you—as an end user using Ruby—would not really notice a difference if the file paths are in your $PATH. But each command clearly deals with a ...


2

It seems a unexpected result of cygwin 2.5.2 release https://www.cygwin.com/ml/cygwin/2016-06/msg00378.html As workaround, downgrade cygwin package to 2.5.1


2

The Ruby package has problem loading native libraries (at least kernel32.dll). The problem comes from a call to dns.getresource("_rubygems._tcp.#{host}", Resolv::DNS::Resource::IN::SRV) which probably make a native call to kernel32.dll hence loading the kernel32.dll library. If you specify the full path to the library, it will work correctly. kernel = ...


2

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


2

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.


2

You have to pipe the text you want to have "said by the cow" echo "hello world" | cowsay Another cool thing to do is mixing cowsay and fortune fortune | cowsay


2

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 https://amionrails.wordpress.com/2014/02/10/install-rvm-...


1

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


1

You can also type cowsay "The text you want to say"


1

Required to install ruby-dev and dependencies. As per SO post: `require': no such file to load — mkmf (LoadError).


1

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.


1

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.


1

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 ...



Only top voted, non community-wiki answers of a minimum length are eligible