# Building from source instructions. 2nd page instructions don't work forUbuntu. Any help?

**URL:** <https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081>\
**Category:** Get Help\
**Tags:** question\
**Created:** [May 19, 2022, 5:56pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081 "2022-05-19T17:56:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![markrlondon](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/markrlondon/32/1103_2.png) [@markrlondon](https://discourse.openondemand.org/u/markrlondon)\
**Post date:** [May 19, 2022, 5:56pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/1 "2022-05-19T17:56:13Z")

</div>

Hi - I’m trying to build from the source for Ubuntu 20. I finished the first page (after installing Ruby 2.7 from a non-ubuntu repository)

However, the 2nd page has instructions for Apache that don’t work. The first command doesn’t work because it refers to a non-existent directory, /opt/rh/httpd24/service-environment

And the bottom command issues this error:

/opt/ood/ood-portal-generator/sbin/update\_ood\_portal  
Traceback (most recent call last): …  
/usr/lib/ruby/2.7.0/rubygems/core\_ext/kernel\_require.rb:92:in `require’: cannot load such file – bcrypt (LoadError)

Also, the “touch” commands for nginx, don’t work, because the directory /var/lib/ondemand-nginx/config/apps/sys doesn’t exist. How do they get created?

Thanks for any help. - Mark

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [May 19, 2022, 7:02pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/2 "2022-05-19T19:02:31Z")

</div>

I would try the build again using this version of the docs:  
[https://osc.github.io/ood-documentation/develop/installation/install-software.html#](https://osc.github.io/ood-documentation/develop/installation/install-software.html#)

That should give more clear instructions for ubuntu. The directory you mentioned as missing is a red hat thing, so that would be expected to be missing on a debian system.

As for the error, looks like `bcrypt` is missing, which is likely from the dependencies not being setup right. The docs above are the develop branch and being released soon, but have better coverage around an Ubuntu build and should provide better guidance to start.

---

<div class="post-metadata">

**Author:** ![markrlondon](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/markrlondon/32/1103_2.png) [@markrlondon](https://discourse.openondemand.org/u/markrlondon)\
**Post date:** [May 19, 2022, 7:53pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/3 "2022-05-19T19:53:33Z")

</div>

Hi - Thanks for responding! I tried the commands on that page, but it can’t find the .deb file:

root@gpu:~# wget -O /tmp/ondemand-release-web\_2.0.0\_all.deb [https://apt.osc.edu/ondemand/2.0/ondemand-release-web\_2.0.0\_all.deb](https://apt.osc.edu/ondemand/2.0/ondemand-release-web_2.0.0_all.deb)  
–2022-05-19 15:52:18-- [https://apt.osc.edu/ondemand/2.0/ondemand-release-web\_2.0.0\_all.deb](https://apt.osc.edu/ondemand/2.0/ondemand-release-web_2.0.0_all.deb)  
Resolving apt.osc.edu (apt.osc.edu)… 192.148.247.146  
Connecting to apt.osc.edu (apt.osc.edu)|192.148.247.146|:443… connected.  
HTTP request sent, awaiting response… 404 Not Found  
2022-05-19 15:52:18 ERROR 404: Not Found.

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [May 19, 2022, 8:37pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/4 "2022-05-19T20:37:56Z")

</div>

Ha, yeah sorry, because that’s under development it looks like that part of the infrastructure isn’t there yet for the debian package.

The only other option I can think of is an Ansible role that uses ubuntu but even that is not supported fully yet, but I think it’s on the road map possibly? I’m not really sure and can’t find much on it myself.

@jeff.ohrstrom or @tdockendorf you all probably know more about this.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [May 19, 2022, 8:39pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/5 "2022-05-19T20:39:34Z")

</div>

We’re not going to ship .deb files to Ubuntu 18.

You can use ansible to install it from the source and indeed - I just patched & released this today to fix that bcrypt issue that you’re running into.

> **[Ansible Galaxy](https://galaxy.ansible.com/osc/open_ondemand)**
>
> Jump start your automation project with great content from the Ansible community

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [May 19, 2022, 8:40pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/6 "2022-05-19T20:40:44Z")

</div>

Oh but we will ship .deb files to Ubuntu 20 and 22 if you’re able to get a VM with that OS it’s going to be much easier.

What’s more - you won’t even be able to build 2.1 on Ubuntu 18. You’ll be stuck on that version for as long as you have that OS.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [May 20, 2022, 2:19pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/7 "2022-05-20T14:19:01Z")

</div>

Sorry for the confusion. If you’re on Ubuntu 20 you can follow these instructions to install our nightly. The link Travis gave was from our documentation pointing to 2.1 which isn’t released yet. Nightly just has a bug fix so it should be fairly stable.

```auto
wget -O /tmp/ondemand-release.deb https://apt.osc.edu/ondemand/latest/ondemand-release-web-latest_2_all.deb
apt install -y /tmp/ondemand-release.deb
apt install -y apt-transport-https
echo "deb [arch=amd64] https://apt.osc.edu/ondemand/nightly/web/apt focal main" >> /etc/apt/sources.list.d/ondemand-web.list
apt update
apt install ondemand

```

---

<div class="post-metadata">

**Author:** ![markrlondon](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/markrlondon/32/1103_2.png) [@markrlondon](https://discourse.openondemand.org/u/markrlondon)\
**Post date:** [May 20, 2022, 8:55pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/8 "2022-05-20T20:55:18Z")

</div>

Thanks! That worked. Now I have to actually configure it. 🙂

---

<div class="post-metadata">

**Author:** ![markrlondon](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/markrlondon/32/1103_2.png) [@markrlondon](https://discourse.openondemand.org/u/markrlondon)\
**Post date:** [June 22, 2022, 10:17pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/9 "2022-06-22T22:17:34Z")

</div>

Hi - Does this Ubuntu install of ondemand include dex? We would like ldap authentication of ood. Is this possible? Thanks. - Mark

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [June 23, 2022, 12:57pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/10 "2022-06-23T12:57:56Z")

</div>

Yes we provide an `ondemand-dex` deb package as well.

[https://yum.osc.edu/ondemand/latest/web/apt/pool/focal/](https://yum.osc.edu/ondemand/latest/web/apt/pool/focal/)

---

<div class="post-metadata">

**Author:** ![markrlondon](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/markrlondon/32/1103_2.png) [@markrlondon](https://discourse.openondemand.org/u/markrlondon)\
**Post date:** [June 29, 2022, 10:36pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/11 "2022-06-29T22:36:50Z")

</div>

Thanks, I’m getting closer. I managed to configure ondemand-dex, so it now starts without errors. However, when I access our ood web page, it still states “You have successfully installed Open OnDemand.  
However, you now have to configurure authentication for this apache instance.”

Here rea the changes I made to /etc/ood/config/ood\_portal.yml to add dex, following the docs. Is that all that is necessary to enable dex in order for ondemand to see it? Thanks.

dex:  
connectors:  
- type: ldap  
id: ldap  
name: LDAP  
config:  
host: psfcdc1.psfc.mit.edu:636  
insecureSkipVerify: false  
bindDN: sAMAccountName=apache,OU=PSFC Users,dc=psfc,dc=mit,dc=edu  
bindPW: xxxx  
userSearch:  
baseDN: OU=PSFC Users,dc=psfc,dc=mit,dc=edu  
filter: “(objectClass=person)”  
username: sAMAccountName  
idAttr: sAMAccountName  
emailAttr: mail  
nameAttr: name  
preferredUsernameAttr: sAMAccountName  
groupSearch:  
baseDN: OU=Groups,dc=psfc,dc=mit,dc=edu"  
filter: “(objectClass=group)”  
userMatchers:  
- userAttr: DN  
groupAttr: member  
nameAttr: cn

---

<div class="post-metadata">

**Author:** ![markrlondon](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/markrlondon/32/1103_2.png) [@markrlondon](https://discourse.openondemand.org/u/markrlondon)\
**Post date:** [July 6, 2022, 11:54pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/12 "2022-07-06T23:54:18Z")

</div>

I’m an idiot Ignore my previous post.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [January 2, 2023, 11:54pm UTC](https://discourse.openondemand.org/t/building-from-source-instructions-2nd-page-instructions-dont-work-forubuntu-any-help/2081/13 "2023-01-02T23:54:51Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
