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

Ubuntu 22.04 #224

Open
matthewcosgrove opened this issue Jul 3, 2022 · 2 comments
Open

Ubuntu 22.04 #224

matthewcosgrove opened this issue Jul 3, 2022 · 2 comments

Comments

@matthewcosgrove
Copy link
Contributor

matthewcosgrove commented Jul 3, 2022

Any tips for spinning up BUCC on Ubuntu 22.04 with the vsphere cpi?

Trying for the first time on Ubuntu 22.04, but hitting ruby issues despite taking latest version of BUCC

make[1]: Entering directory '/home/tcpops/.bosh/installations/63a952a7-0a20-4077-6aac-9b119b721f70/tmp/bosh-release-pkg1762526370/ruby-2.7.5' *** Following extensions are not compiled: openssl: Could not be configured. It will not be installed. /home/tcpops/.bosh/installations/63a952a7-0a20-4077-6aac-9b119b721f70/tmp/bosh-release-pkg1762526370/ruby-2.7.5/ext/openssl/extconf.rb:111: OpenSSL >= 1.0.1, < 3.0.0 or LibreSSL >= 2.5.0 is required Check ext/openssl/mkmf.log for more details. dbm: Could not be configured. It will not be installed. Check ext/dbm/mkmf.log for more details. gdbm: Could not be configured. It will not be installed. Check ext/gdbm/mkmf.log for more details. *** Fix the problems, then remove these directories and try again if you want.

Original docs on deps, dont cater for 22.04 either: https://bosh.io/docs/cli-v2-install/#additional-dependencies (tried same approach as for 18.04 but had to manually install libreadline7 for example)

Not sure if these are related: cloudfoundry/bosh#2359 and cloudfoundry/bosh#2354

@jppitout
Copy link

jppitout commented Oct 24, 2023

Seems I'm having the same issue, was there anymore progress on this?

Below is the error I'm getting:

*** Following extensions are not compiled:
gdbm:
        Could not be configured. It will not be installed.
        Check ext/gdbm/mkmf.log for more details.
openssl:
        Could not be configured. It will not be installed.
        /home/jp/.bosh/installations/2b48a988-839b-4258-7088-2438060fe76a/tmp/bosh-release-pkg3746690128/ruby-2.7.5/ext/openssl/extconf.rb:111: OpenSSL >= 1.0.1, < 3.0.0 or LibreSSL >= 2.5.0 is required
        Check ext/openssl/mkmf.log for more details.
dbm:
        Could not be configured. It will not be installed.
        Check ext/dbm/mkmf.log for more details.

For openssl it could be related to this:
https://bugs.ruby-lang.org/issues/18658

@jppitout
Copy link

jppitout commented Oct 24, 2023

@matthewcosgrove

To resolve this we replaced src/bosh-deployment with a newer version of the subtree.

We deleted the src directory then ran:

git subtree add --prefix src/bosh-deployment https://github.com/cloudfoundry/bosh-deployment.git master --squash

Now bucc up --cpi vsphere compiles with ruby version ruby-3.1 instead of 2.7.5:

Started installing CPI
  Compiling package 'golang-1-darwin/78d3776d9bfbdaddb51d26bf703bbcf7a7db5fd39939df23f17e85be4dbd83ef'... Finished (00:00:21)
  Compiling package 'golang-1-linux/2bba3dc3872d3475f3aa9476963ed92dae8471d15419714082e19d2b34a0e01e'... Finished (00:00:20)
  Compiling package 'ruby-3.1/8b225e7cc2608305a7b784b5828b2b4b7c7adc3eb14af46e313d64a9e14a3ad6'... Finished (00:05:44)
  Compiling package 'iso9660wrap/b351c796826a0a3a57e13bad036c12a3958c38f9370bbb50540e782582baaf79'... Finished (00:00:22)
  Compiling package 'vsphere_cpi/b449136dbd8edcb67fc1a86ffd6d76114be3a32608d46f4a34dca7fb4a4f04b9'... Finished (00:00:51)
  Installing packages... Finished (00:00:08)
  Rendering job templates... Finished (00:00:00)
  Installing job 'vsphere_cpi'... Finished (00:00:00)
Finished installing CPI (00:07:50)

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