Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing ruby/version.h when installing on CentOS. #3

Closed
metaskills opened this issue Nov 9, 2010 · 3 comments
Closed

Missing ruby/version.h when installing on CentOS. #3

metaskills opened this issue Nov 9, 2010 · 3 comments

Comments

@metaskills
Copy link
Contributor

My co-workers said they could not get the gem to compile on our dumb old dev servers, centos. Here is the error we see.

gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -DHAVE_SQLFRONT_H 
-DHAVE_SYBDB_H -DHAVE_SYBERROR_H  -D_FILE_OFFSET_BITS=64 -fPIC -O2 
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic 
-fasynchronous-unwind-tables -fno-strict-aliasing  -fPIC  -c tiny_tds_ext.c

In file included from tiny_tds_ext.c:2:
./tiny_tds_ext.h:6:26: error: ruby/version.h: No such file or directory
make: *** [tiny_tds_ext.o] Error 1

Erik, I remember we put that check in for the 1.8.6 fix, commit here b4c4e51

I just did a local search for that file out of curiousity. It's odd that I do not have one in my 1.8.6 space.

∴ find ~/.rvm -name "version.h" | grep "ruby/version.h"
/Users/kencollins/.rvm/repos/ruby-1.9.2-head/include/ruby/version.h
/Users/kencollins/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/version.h
/Users/kencollins/.rvm/src/ruby-1.9.2-p0/include/ruby/version.h

∴ sudo find /opt -name "version.h" | grep "ruby/version.h"
/opt/local/include/ruby-1.9.1/ruby/version.h
@mcmoyer
Copy link

mcmoyer commented Nov 12, 2010

I get the same type error when trying to install on Ubuntu 10.10:

gcc -I. -I. -I/home/mmoyer/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/x86_64-linux -I. -DHAVE_SQLFRONT_H -DHAVE_SYBDB_H -DHAVE_SYBERROR_H -fPIC -g -O2 -c client.c
In file included from client.c:2:
./tiny_tds_ext.h:6: fatal error: ruby/version.h: No such file or directory
compilation terminated.

@metaskills
Copy link
Contributor Author

I just published version 0.2.3 which removes ruby/version.h include. Should be much easier to install now. Lemme know!

@metaskills
Copy link
Contributor Author

Confirmed that this is addressed.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants