I've tried to find a way to install freetds on windows, but i just cannot find that.
I'm trying to install tiny_tds but i got the error:
gem install tiny_tds
ERROR: Error installing tiny_tds:
The last version of tiny_tds (>= 0) to support your Ruby & RubyGems was
2.1.1. Try installing it with gem install tiny_tds -v 2.1.1
tiny_tds requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
I've tried 'gem install tiny_tds -v 2.1.1', same error.
My ruby version is ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32]
I asked for my friend try to use my project on his machine(MAC) and he got the same error. So he just installed FreeTds and after that he could install tiny_tds.
I thought the gem Tiny_tds includes Freetds, but it is not happening. I believe i need to install FreeTds on windows.
Could someone explain how to install FreeTds on Windows? which tool is necessary? if it is command lines, which command should i use? Something complete.
It looks like TinyTDS requires an earlier version of Ruby than you have, lower than 2.5. You are running greater than 2.5, version 2.5.1p57.
I'd recommend installing the latest Ruby version of the 2.4 release and trying again. Good luck!
PS: If you need to install the FreeTDS Windows binaries directly, you can find them here: https://sourceforge.net/projects/freetdswindows/
Related
When I try the following, after installing Ruby 3.0 from snap on Ubuntu 18.04::
gem install rails
I get this error:
/snap/ruby/201/lib/ruby/3.0.0/x86_64-linux/rbconfig.rb:13:in `<module:RbConfig>': ruby lib version (3.0.0) doesn't match executable version (2.5.1) (RuntimeError)
It was right after using
rails new rest-api-messages --api --database=postgresql
and trying to install PostGRES
gem install pg -v '1.2.3' --source 'https://rubygems.org/'
How could I solve this? is Ruby on Rails only for version 2.5.1 and lower?
edit: Then I got
Can't find the 'libpq-fe.h header when trying to install pg gem
Solved with
sudo apt-get install libpq-dev
Duplicate from Can't find the 'libpq-fe.h header when trying to install pg gem
My guess is you already had Ruby 2.5 installed and they are stepping on each other. Ruby versions don't overwrite each other. You need to uninstall Ruby 3.0 and 2.5 and install a Ruby version manager then install Ruby using it. This will also give you a path to move forward easily. Check out Ruby version manager like rbenv or RVM. Take a look at both. For what it's worth. I have used both and finally settled on rbenv.
I am trying to install XSpear 1.4.1 and I have ruby version 2.7.1 32-bit as seen by running the ruby -v command:
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [i686-linux]
But still on running the command sudo gem install XSpear-1.4.1.gem in the XSpear directory, I get an error message saying:
ERROR: Error installing XSpear-1.4.1.gem:
rubyzip requires Ruby version >= 2.4.
Why is this happening? Please help.
Thank you.
Ok so... After further investigation I got to know that I had Ruby 1.3.0 pre-installed in my computer and I had installed Ruby 2.7.1 over it. I don't know why but during the installation process of Ruby 2.7.1, I wasn't shown any error or warning saying that ruby was already installed (strange). So I guess the computer took Ruby 2.3.0 as the default Ruby version while Ruby displayed the newer version as its default.
I had to remove rbenv, Ruby 2.3.0 and 2.7.1 completely and then reinstall rbenv and Ruby 2.7.1 and then I could install XSpear.
I don't know if it is a bug or just my foolishness but I'm happy this got solved.
Thank you for your time.
I installed Ruby many moons ago but never use it. Perhaps I inadvertently broke it as I seem to be having troubles with getting it working with the sass command.
After running the brew install sass/sass/sass I get the following error with sass command:
rbenv: sass: command not found
The `sass' command exists in these Ruby versions:
2.1.10
2.5.0
ruby -v yields:
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
which I'm guessing is the stock version of Ruby on a mac.
The rbenv command prints out help so it looks like I have that installed. brew list shows I have the ruby package installed. I upgraded ruby with brew but that didn't help (it reported I upgraded from 2.6.1 to 2.6.2. I don't appear to have rvm installed.
If you're using RVM you shouldn't need to brew install anything, in fact you shouldn't.
See documentation here https://github.com/sass/ruby-sass which is deprecated and will refer you to use https://github.com/sass/sassc-ruby instead.
brew uninstall any ruby and ruby packages and just use rbenv to manage your ruby versions.
Once you set your ruby version with rbenv global 2.6.1 for example or whatever version you want, then just do
gem install sassc
Or in your Gemfile add
gem 'sassc`
and run
bundle install
I tried installing github-pages using gem:
sudo gem install 'github-pages'
However, I get the following error:
ERROR: Error installing github-pages:
public_suffix requires Ruby version >= 2.0.
But when I checked my ruby version using ruby --version, it shows:
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
So, my understanding is that gem is somehow referencing an older version of Ruby(previous was 1.9.3). How can I fix this problem? My OS is Ubuntu 14.04 and I upgraded ruby using ruby-install.
I believe you do not need to install github-pages globally, as you are trying.
Just removing sudo in front of your command will do the trick:
gem install 'github-pages'
I got problems when trying to install gem ruby-debug-ide. Then, I try to install gem ruby-debug-base first. However, I got an error:
Error installing ruby-debug-base:
rb-threadframe requires Ruby version ~> 1.9.2frame.
The same error occured when installing ruby-debug.
I'm using Ubuntu v10.4, Ruby Enterprise v1.8.7, Rubygems v1.8.15.
Thanks for your help!
The problem is in new version (0.0.6) of rbx-require-relative that requires rb-threadframe >= 0
Try this:
gem install rbx-require-relative -v 0.0.5
gem install linecache ruby-debug-base --ignore-dependencies
Seems pretty self explanatory.
You need a Ruby version greater than 1.9.2 and you have v1.8.7, will need to get a newer version.