Skip to content

Install ruby-dev package in default recipe to provide mkmf in building n... - #6

Merged
anujbiyani merged 1 commit into
Lytro:masterfrom
flaccid:master
Sep 12, 2013
Merged

anujbiyani merged 1 commit into
Lytro:masterfrom
flaccid:master

Conversation

@flaccid

@flaccid flaccid commented Aug 28, 2013

Copy link
Copy Markdown
Contributor

...ative extensions.

This will prevent the ruby build failing with:

08:36:25: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require' 08:36:25: : cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from extconf.rb:17:in `

'

@anujbiyani

Copy link
Copy Markdown
Contributor

Interesting that you ran into this error; I just provisioned a new server a week ago using this recipe and had no issues. What OS are you using?

@flaccid

flaccid commented Aug 29, 2013

Copy link
Copy Markdown
Contributor Author

This was on Ubuntu 12.04.

@anujbiyani

Copy link
Copy Markdown
Contributor

Not able to reproduce this; I spun up a 12.04 instance yesterday and ran only the chef_ruby::default recipe which ran to completion without error.

What else can you tell me about the circumstances that led to the error? Might any other cookbooks be interfering?

@flaccid

flaccid commented Aug 29, 2013

Copy link
Copy Markdown
Contributor Author

Can you please check if a ruby*-dev package is already installed on that instance? chef_ruby was the only recipe I ran and this was with official Ubuntu AMI.

@anujbiyani

Copy link
Copy Markdown
Contributor

Trying it again using ami-3fec7956 (from http://cloud-images.ubuntu.com/releases/precise/release-20130124/)

Will check for a ruby*-dev package after it's done. I used a t1.micro this time so it might take a bit.

@anujbiyani

Copy link
Copy Markdown
Contributor

Chef-client completed successfully, and I have no ruby*-dev packages installed:

$ dpkg --get-selections | grep ruby
$ # no output from previous command

What's the exact AMI you used?

@flaccid

flaccid commented Sep 4, 2013

Copy link
Copy Markdown
Contributor Author

I was using ubuntu/images/ebs/ubuntu-precise-12.04-amd64-server-20130411.1 (ami-04ea7a3e) in ap-southeast-2.

@anujbiyani

Copy link
Copy Markdown
Contributor

I can't get any ap-southeast-2 instances to work for some reason so I'm just going to merge this and move on with life =) .

anujbiyani added a commit that referenced this pull request Sep 12, 2013
Install ruby-dev package in default recipe to provide mkmf in building n...
@anujbiyani
anujbiyani merged commit d9f9579 into Lytro:master Sep 12, 2013
@anujbiyani

Copy link
Copy Markdown
Contributor

Thanks for the fix!

@flaccid

flaccid commented Sep 12, 2013

Copy link
Copy Markdown
Contributor Author

Thanks for just doing that. It is strange that its not repeatable in some environments but I did hit it for sure in that one, cheers.

anujbiyani pushed a commit that referenced this pull request Oct 11, 2013
This reverts commit d9f9579, reversing
changes made to 73c8199.
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

Successfully merging this pull request may close these issues.

2 participants