# Installation of Accelerad

**URL:** <https://discourse.radiance-online.org/t/installation-of-accelerad/5909>\
**Category:** accelerad\
**Created:** [April 27, 2022, 11:17am UTC](https://discourse.radiance-online.org/t/installation-of-accelerad/5909 "2022-04-27T11:17:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@lee](https://discourse.radiance-online.org/u/lee)\
**Post date:** [April 27, 2022, 11:17am UTC](https://discourse.radiance-online.org/t/installation-of-accelerad/5909/1 "2022-04-27T11:17:59Z")

</div>

Hi @Nathaniel_Jones,  
I tried to install Accelerad again on Ubuntu cause I updated the nvidia driver. Firstly, I moved the unpacked folder to /usr/local and then the file ~/.bashrc is edited like this:

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/3/3787f89a3b309a24a5ea76c78b88310b3ac7a58c.png)  
There occurred an error about the shared library when I test the .sh file in the demo :  
 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/e/eba6b36fc09754681d151f8fe39172bce17f27e1.png)  
I am not sure about my installation process. Besides, I installed the Radiance with the same procedure and it works well. I hope you or anyone can supply any guidance or suggestions, thanks!

---

<div class="post-metadata">

**Author:** ![lee](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@lee](https://discourse.radiance-online.org/u/lee)\
**Post date:** [April 27, 2022, 12:36pm UTC](https://discourse.radiance-online.org/t/installation-of-accelerad/5909/2 "2022-04-27T12:36:23Z")

</div>

Sorry for the mistake when editing the LD\_LIBRARY\_PATH in the file ~/.bashrc.

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/6/6e1851bb855d5f35549c5da7792544930c4f2e5d.png)  
Accelerad has been installed sucessfully!  
 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/7/70661c19c93773c6bee1ed6df804768eda8506a9.png)

---

<div class="post-metadata">

**Author:** ![lee](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@lee](https://discourse.radiance-online.org/u/lee)\
**Post date:** [April 27, 2022, 1:00pm UTC](https://discourse.radiance-online.org/t/installation-of-accelerad/5909/3 "2022-04-27T13:00:34Z")

</div>

The demo file can run successfully but the command line can’t work in the script.

```auto
vwrays -vf $views/south.vf -x 900 -y 900 -pj 0.7 -ff | accelerad_rcontrib -i -ab 1 -ad 1024 -lw 1.0e-6 -dc 1 -dt 0 -dj 0 -ffc -n 1 \
    `vwrays -vf $views/south.vf -x 900 -y 900 -d` -o $hdrIllSpace/hdr$p-$q/%04d.hdr -e MF:6 -f reinhart.cal -b rbin -bn Nrbins \
    -m solar $octrees/glazing$p-$q/sun.oct

```

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/0/05d1fb9b5a305e36743835862ff35751799c0978.jpeg)  
How about this problem?

---

<div class="post-metadata">

**Author:** ![Nathaniel\_Jones](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/nathaniel_jones/32/603_2.png) [@Nathaniel\_Jones](https://discourse.radiance-online.org/u/Nathaniel_Jones)\
**Post date:** [April 27, 2022, 2:11pm UTC](https://discourse.radiance-online.org/t/installation-of-accelerad/5909/4 "2022-04-27T14:11:37Z")

</div>

Hi @lee,

If I understand what you are saying correctly, liboptix.so.6.0.0 was found when using the demo file, but not when using your own script. The demo files don’t make any changes to your LD\_LIBRARY\_PATH, so if they work then your LD\_LIBRARY\_PATH should be set up correctly. Does your script modify LD\_LIBRARY\_PATH at all, such that the OptiX library would no longer be part of it?

---

<div class="post-metadata">

**Author:** ![lee](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@lee](https://discourse.radiance-online.org/u/lee)\
**Post date:** [April 27, 2022, 2:28pm UTC](https://discourse.radiance-online.org/t/installation-of-accelerad/5909/5 "2022-04-27T14:28:26Z")

</div>

Hi @Nathaniel_Jones,

> [@Nathaniel\_Jones](#):
>
> If I understand what you are saying correctly, liboptix.so.6.0.0 was found when using the demo file, but not when using your own script.

That’s right. The command line didn’t work in the script.

> [@Nathaniel\_Jones](#):
>
> Does your script modify LD\_LIBRARY\_PATH at all, such that the OptiX library would no longer be part of it?

The script is about the 5 phase method and it won’t modify LD\_LIBRARY\_PATH at all.

---

<div class="post-metadata">

**Author:** ![Nathaniel\_Jones](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/nathaniel_jones/32/603_2.png) [@Nathaniel\_Jones](https://discourse.radiance-online.org/u/Nathaniel_Jones)\
**Post date:** [April 27, 2022, 7:26pm UTC](https://discourse.radiance-online.org/t/installation-of-accelerad/5909/6 "2022-04-27T19:26:32Z")

</div>

Hi @lee,

I’m not sure why the command would work in the demo script but not in the script that you wrote. Can you add `echo $LD_LIBRARY_PATH` to your script and to the demo file and check that they are the same? The library liboptix.so.6.0.0 should be found in one of the listed folders, or otherwise the demo wouldn’t work.

---

<div class="post-metadata">

**Author:** ![lee](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@lee](https://discourse.radiance-online.org/u/lee)\
**Post date:** [April 30, 2022, 12:37am UTC](https://discourse.radiance-online.org/t/installation-of-accelerad/5909/8 "2022-04-30T00:37:20Z")

</div>

Hi @Nathaniel_Jones,  
The problem is solved by open a new terminal cause the new environment variables need to work in a new loaded shell environment. So the installation process is OK and we just should pay attention to a few details. 🤨
