Issue installing Tiny_tds on OS X 10.8.4 - ruby

It always returns the following error :
Building native extensions. This could take a while...
ERROR: Error installing tiny_tds:
ERROR: Failed to build gem native extension.
freetds is missing.
I've tried several methods found here to install freetds, but they all fail.
Any solution or workaround greatly appreciated!
Edit
Fixed it by installing 'Homebrew', and running
brew install freetds
then
gem install tiny_tds -v '0.5.1'

(Copying your own answer)
Fixed it by installing 'Homebrew', and running
brew install freetds
then
gem install tiny_tds -v '0.5.1'

Related

Unknown command: `repo-art` Cocoapods

I have installed the Cocoapods-art in the bundle using this command:
bundle exec gem install cocoapods-art
This is the success message:
Fetching cocoapods-art-1.0.4.gem
Successfully installed cocoapods-art-1.0.4
Parsing documentation for cocoapods-art-1.0.4
Done installing documentation for cocoapods-art after 0 seconds
1 gem installed
when I execute: bundle exec gem list, I don't see Cocoapods repo-art in the gem list.
When I try to add: pod repo-art add folderNamer, I get:
[!] Unknown command: `repo-art`
Did you mean: repo?
My problem was:
Installing cocoapods by gem in MacOS Catalina + Xcode 12.2, I got the error:
You have to install development tools first
...
checking for ffi.h... * extconf.rb failed *
Then I installed the cocoapods (1.10.1) by homebrew
brew install cocoapods
And the cocoapods-art was installed with gem
gem install cocoapods-art
At that moment, I was with the same error.
For me, its finally worked removing and installing again the cocoapods-art with sudo.
This troubleshooting - https://developer.apple.com/forums/thread/668456 don't resolving to use the last version of cocoapods ;)
I was getting same error with gem install cocoapods-art. Then I used the command sudo gem install cocoapods-art and it worked :)

Error occured while installing unf_ext (0.0.7.4), and Bundler cannot continue

My ultimate goal is to get this to work in an Ubuntu 14.04 Docker container: https://github.com/byalextran/autoluv
When I run
m1#9bdc67007b49:~/autoluv$ bundle install --deployment
It says:
Fetching unf_ext 0.0.7.4
Installing unf_ext 0.0.7.4 with native extensions
Errno::EACCES: Permission denied # rb_sysopen - /home/m1/autoluv/vendor/bundle/ruby/2.4.0/gems/unf_ext-0.0.7.4/.document
An error occurred while installing unf_ext (0.0.7.4), and Bundler cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.4' --source 'https://rubygems.org/'` succeeds before bundling.
But when I run
sudo gem install unf_ext -v '0.0.7.4' --source 'https://rubygems.org/'
unf_ext-0.0.7.4 installs fine?
Building native extensions. This could take a while...
Successfully installed unf_ext-0.0.7.4
1 gem installed
Installing ri documentation for unf_ext-0.0.7.4...
Installing RDoc documentation for unf_ext-0.0.7.4...
I cannot figure out the next step. I've tried installing ruby-dev and gcc, but neither has helped move this along :(
Any and all help is much appreciated!
I had this same problem and the reason was that I did not installed all the dependencies that bundler needs to run
just try to:
sudo apt-get install build-essential
then run again
gem install bundler
and lastly
bundler
There is a difference between running commands with sudo and without. You can get more info about this command here https://kb.iu.edu/d/amyi.
Errno::EACCES usually happens when bunder has no access to a needed folder or it doesn't exist.
Try to gem install unf_ext -v '0.0.7.4' --source 'https://rubygems.org/' without sudo.
I had same issue on Fedora.
I simply had to install the gcc-c++ package.
I solved this error on Debian 10 buster in my ChromeOS Linux container by installing rbenv: sudo aptitude install rbenv or sudo apt install rbenv.
Aptitude package manager seems to be better at resolving dependencies and allowing me to install newer packages more easily than the default apt so I thought it was worth mentioning.
Solved it after using following commands for Xcode 13, BigSur :
softwareupdate --install a
sudo port upgrade outdated
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget
brew install build-essentials
bundler install
If you are an iOS developer who is getting this error, this might be related to your Xcode command line tools selection.
Just run the following command with the path of the Xcode that you are using currently.
sudo xcode-select --switch /Applications/Xcode.app
You need to use the latest version of Ruby.
If you are using MacOS, system Ruby is old and outdated. you can not update the system Ruby, but you can install another version of Ruby and make it default global using rbenv ruby version manager tool.
finally you can install any ruby packages you like.

Gem / Metasploit Install error: An error occurred while installing pg (0.18.4)

Keep getting the attached error when trying to install metasploit dependant gems on OS X EL Capitan. Have tried reinstalling postgres etc, not sure how to fix this is issue.
An error occurred while installing pg (0.18.4), and Bundler cannot continue.
Make sure that `gem install pg -v '0.18.4'` succeeds before bundling.
Error
I had the same issue and following steps worked wonder for me,
First thing is updating your Xcode Tools as you are on Mac OX.
Then install Postgre via Homebrew. (Here is a link on guidelines)
You'll need to uninstall it first,
brew uninstall postgresql
or you can update it with
brew update
And reinstall with
brew install postgresql
Now you can run, gem install pg successfully.
Let me know if I'm missing on something.
1) install postgresql
2) install postgresql-dev
2) install gem install pg

Installing gosu on Mac OS X

I'm trying to install gosu on my Mac. I used the command:
sudo gem install gosu
After I enter my password, I get something that says:
Building native extensions. This could take a while...
However, then it comes up with this error:
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
Does anyone have any ideas to fix this? I don't know why it would be saying this.
You could try
sudo gem install gosu
if that still does not work, then do the following
- install Homebrew (google it)
- run brew install sdl2.
- run sudo gem install gosu
If that still doesn't work, then try to see if you can get an answer from here
Hope that helps!

Bundle install failed getting error occurred while installing unf_ext (0.0.6)

I have tried running bundle install on my Mac but keep getting the following message:
An error occurred while installing unf_ext (0.0.6), and Bundler cannot continue.
Make sure that gem install unf_ext -v '0.0.6' succeeds before bundling.
But when I install unf_ext(0.0.6) I get an error message:
ERROR: Error installing unf_ext:
ERROR: Failed to build gem native extension.
make install failed, exit code 2.
Any help would be appreciated,
Thank you.
I found a solution:
brew install coreutils
installed the missing gmkdir
I had a similar issue on red hat and fixed it by installing gcc-c++
yum install gcc-c++

Resources