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

ree install fails, even with "--without-tk" set #267

Closed
arnab opened this issue Jan 9, 2013 · 9 comments
Closed

ree install fails, even with "--without-tk" set #267

arnab opened this issue Jan 9, 2013 · 9 comments

Comments

@arnab
Copy link

arnab commented Jan 9, 2013

Trying to install ree-1.8.7-2011.12.

Attempt 1: vanilla install with rbenv install

$  rbenv install ree-1.8.7-2011.12

Downloading ruby-enterprise-1.8.7-2011.12.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/1e5f3059d52a67ab5d91d472b756de08
Installing ruby-enterprise-1.8.7-2011.12...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/ly/2wwzcgtn1kddwrg4t6h6811h0000gp/T/ruby-build.20130109120559.61953
Results logged to /var/folders/ly/2wwzcgtn1kddwrg4t6h6811h0000gp/T/ruby-build.20130109120559.61953.log

Last 10 log lines:
/usr/include/tkDecls.h:1420: error: expected declaration specifiers or '...' before 'XColor'
/usr/include/tkDecls.h:1448: error: expected declaration specifiers or '...' before 'Pixmap'
/usr/include/tkDecls.h:1524: error: expected ')' before '*' token
/usr/include/tkDecls.h:1621: error: expected declaration specifiers or '...' before 'Drawable'
/usr/include/tkDecls.h:1656: error: expected ')' before '*' token
/usr/include/tkDecls.h:1661: error: expected ')' before '*' token
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before 'XColor'
make[1]: *** [stubs.o] Error 1
make: *** [all] Error 1

Looking into the log I see: /usr/include/tk.h:78:23: error: X11/Xlib.h: No such file or directory

Looking at StackOverflow answers like this and this, I try...

Attempt 2: without tcl and tk

$  CC=/usr/local/bin/gcc-4.2 CONFIGURE_OPTS="--without-tcl --without-tk" rbenv install ree-1.8.7-2011.12

ownloading ruby-enterprise-1.8.7-2011.12.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/1e5f3059d52a67ab5d91d472b756de08
Installing ruby-enterprise-1.8.7-2011.12...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/ly/2wwzcgtn1kddwrg4t6h6811h0000gp/T/ruby-build.20130109121446.71121
Results logged to /var/folders/ly/2wwzcgtn1kddwrg4t6h6811h0000gp/T/ruby-build.20130109121446.71121.log

Last 10 log lines:
x ruby-enterprise-1.8.7-2011.12/rubygems/lib/rubygems/commands/update_command.rb
x ruby-enterprise-1.8.7-2011.12/rubygems/lib/rubygems/commands/which_command.rb
x ruby-enterprise-1.8.7-2011.12/rubygems/lib/rbconfig/datadir.rb
x ruby-enterprise-1.8.7-2011.12/rubygems/hide_lib_for_update/note.txt
x ruby-enterprise-1.8.7-2011.12/rubygems/bin/gem
x ruby-enterprise-1.8.7-2011.12/rubygems/bin/update_rubygems
/var/folders/ly/2wwzcgtn1kddwrg4t6h6811h0000gp/T/ruby-build.20130109121446.71121/ruby-enterprise-1.8.7-2011.12 /var/folders/ly/2wwzcgtn1kddwrg4t6h6811h0000gp/T/ruby-build.20130109121446.71121 ~
invalid option: --without-tcl

Please see '--help' for valid options.

The main problem here is invalid option: --without-tcl. I have tried multiple ways to supply the configure-options in various ways (set it as an env var, prepend like above, try to pass as command-arg) but it keeps failing with the same error. What am I doing wrong?

Environment

  • OS: OSX Mountain Lion: OS X 10.8.2 (12C3012)
  • brew: latest, 0.9.3 (brew --version)
  • rbenv: latest, 0.4.0 (rbenv -v)
    with rbenv-build.
@arnab
Copy link
Author

arnab commented Jan 9, 2013

For anyone stumbling upon this, I installed XQuartz, tcl, and tk and then followed this SO answer to successfully install ree.

@arnab
Copy link
Author

arnab commented Jan 9, 2013

BTW, in the failed state rvm versions still showed ree as installed:

$ rbenv versions
  system
  1.9.3-p362
* ree-1.8.7-2011.12 (set by /path/to/code/.rbenv-version)

$ rbenv version-name
ree-1.8.7-2011.12

Only when I ran some command with ruby would it fail:

$ ruby -v
rbenv: ruby: command not found

The `ruby' command exists in these Ruby versions:
  1.9.3-p362

@robd
Copy link

robd commented Mar 23, 2013

I'm having the same issue. Seems liks the CONFIGURE_OPTS= should be correct. This works for example:

CONFIGURE_OPTS="--without-tcl --without-tk" rbenv install 1.8.7-p370

Seems like a problem with the ree + ruby-build setup because I was able to successfully install using rvm:

rvm install 1.8.7 --without-tcl --without-tk

@sstephenson
Copy link
Contributor

This should be fixed on OS X. On other platforms, you can now use RUBY_CONFIGURE_OPTS=--without-tk when installing REE.

@courtenay
Copy link

This appears to be a problem on Mavericks (10.9)

$ rbenv install ree-1.8.7-2012.02
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Downloading ruby-enterprise-1.8.7-2012.02.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/8d086d2fe68a4c57ba76228e97fb3116
Installing ruby-enterprise-1.8.7-2012.02...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/cs/y4k5qtb117l9kl8k_d5yzbt80000gn/T/ruby-build.20131028160730.53311
Results logged to /var/folders/cs/y4k5qtb117l9kl8k_d5yzbt80000gn/T/ruby-build.20131028160730.53311.log

Last 10 log lines:
/usr/include/tkDecls.h:1420: error: expected declaration specifiers or ‘...’ before ‘XColor’
/usr/include/tkDecls.h:1448: error: expected declaration specifiers or ‘...’ before ‘Pixmap’
/usr/include/tkDecls.h:1524: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1621: error: expected declaration specifiers or ‘...’ before ‘Drawable’
/usr/include/tkDecls.h:1656: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1661: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before ‘XColor’
make[1]: *** [stubs.o] Error 1
make: *** [all] Error 1

@courtenay
Copy link

It works if you use RUBY_CONFIGURE_OPTS, however.

@mislav
Copy link
Member

mislav commented Oct 28, 2013

@courtenay This shouldn't be happening with v20131028. Can you tell us your rbenv install --version?

@courtenay
Copy link

$ rbenv install --version
ruby-build 20131028

installed on a fresh system today with brew.

mislav added a commit that referenced this issue Oct 29, 2013
This is a regression introduced by
d13ae0a

References #267
@mislav
Copy link
Member

mislav commented Oct 29, 2013

@courtenay Thanks for reporting. This is a regression that I introduced in the last release. You can brew upgrade ruby-build --HEAD now to get the fix. I will make a bugfix release soon

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

5 participants