# About S1 Tiling installation

**URL:** <https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183>\
**Category:** S1 Tiling\
**Created:** [October 29, 2021, 9:17am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183 "2021-10-29T09:17:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![julieb](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@julieb](https://forum.orfeo-toolbox.org/u/julieb)\
**Post date:** [October 29, 2021, 9:17am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/1 "2021-10-29T09:17:58Z")

</div>

Hi,

I try to install S1 Tiling 0.3.0 but I still have this error message. I work on Fedora, with OTB 7.4.0, Python 3.7.6 and GDAL 3.0.4 .

What’s my error and what can I do ?

 ![erreur_s1tiling](https://forum.orfeo-toolbox.org/uploads/default/original/1X/bc00be3f4537b213e943a0257e71381d1261a882.png)

Thanks in advance.

Julie

---

<div class="post-metadata">

**Author:** ![luc.hermitte](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/luc.hermitte/32/15_2.png) [@luc.hermitte](https://forum.orfeo-toolbox.org/u/luc.hermitte)\
**Post date:** [October 29, 2021, 1:24pm UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/2 "2021-10-29T13:24:48Z")

</div>

Hi.  
The message is definitively strange as it seems to refer to the same version of gdal.

Anyway, you should avoid having both versions of S1Tiling in the same environment. Either do a `upgrade` of S1Tiling with `pip` (I guess it should work), or simply start over with a fresh and empty environment.

Note: a docker is also available.

---

<div class="post-metadata">

**Author:** ![luc.hermitte](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/luc.hermitte/32/15_2.png) [@luc.hermitte](https://forum.orfeo-toolbox.org/u/luc.hermitte)\
**Post date:** [October 29, 2021, 1:28pm UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/3 "2021-10-29T13:28:47Z")

</div>

Oh. I’ve missed an important information: in case you’re using OTB binaries, you will have to use the version of GDAL that is shipped with OTB and no other one when executing OTB applications (which S1Tiling does).

Normally this should be taken care of automatically if you follow the procedure(s) described in S1TIling documentation: [Installation — S1Tiling 0.3.0 documentation](https://s1-tiling.pages.orfeo-toolbox.org/s1tiling/latest/install.html)

---

<div class="post-metadata">

**Author:** ![julieb](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@julieb](https://forum.orfeo-toolbox.org/u/julieb)\
**Post date:** [October 29, 2021, 2:09pm UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/4 "2021-10-29T14:09:25Z")

</div>

Thank you for your answer.  
I’ll try to create a new environment.

For OTB binaries, how can I know which GDAL versions is necessary ?

---

<div class="post-metadata">

**Author:** ![luc.hermitte](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/luc.hermitte/32/15_2.png) [@luc.hermitte](https://forum.orfeo-toolbox.org/u/luc.hermitte)\
**Post date:** [October 29, 2021, 2:27pm UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/5 "2021-10-29T14:27:04Z")

</div>

That will be taken care of automagically by the `gdal-config` patched script we provide with S1Tiling. [Installation — S1Tiling 0.3.0 documentation](https://s1-tiling.pages.orfeo-toolbox.org/s1tiling/latest/install.html#otb-gdal-dependency) § OTB&GDAL

---

<div class="post-metadata">

**Author:** ![julieb](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@julieb](https://forum.orfeo-toolbox.org/u/julieb)\
**Post date:** [October 29, 2021, 3:20pm UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/6 "2021-10-29T15:20:50Z")

</div>

I created a new environment with python 3.7.6 and OTB 7.4.0. I patched files as explain in documentation, but I still have the same error message.

I tried to install gdal 3.2.2 with command line : conda install gdal==3.2.2 and I have this error message. If I understand, there are conflicts regarding the “glibc” version ?

 ![s1_tiling_gdal](https://forum.orfeo-toolbox.org/uploads/default/original/1X/e4afbd91befed47a8647adedeadcc623d161535d.png)

---

<div class="post-metadata">

**Author:** ![luc.hermitte](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/luc.hermitte/32/15_2.png) [@luc.hermitte](https://forum.orfeo-toolbox.org/u/luc.hermitte)\
**Post date:** [October 29, 2021, 3:28pm UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/7 "2021-10-29T15:28:28Z")

</div>

gdal is already installed with OTB 7.4. binaries. The only missing thing is the Python bindings. `pip install s1Tiling` will take care of it (as long as 1. you’ve dropped gdal-config in the right bin/ directory, and 2. updated LD\_LIBRARY\_PATH in the otbenv script as explained).

Don’t add anything that isn’t in the installation procedure(S – choose the one fitting your environment).

---

<div class="post-metadata">

**Author:** ![julieb](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@julieb](https://forum.orfeo-toolbox.org/u/julieb)\
**Post date:** [November 2, 2021, 8:22am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/8 "2021-11-02T08:22:21Z")

</div>

Hi,

Thanks for your answer.  
I tried again to install S1 Tiling in a new environment and I think my problem comes from the OTB installation.  
Here the message I have when I install it. What do you think about it ? Is it normal ?

 ![S1_tiling_20211102](https://forum.orfeo-toolbox.org/uploads/default/original/1X/7d1e7a6b76facc55ac101cb0701072399543a11d.png)

---

<div class="post-metadata">

**Author:** ![Cedric](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@Cedric](https://forum.orfeo-toolbox.org/u/Cedric)\
**Post date:** [November 2, 2021, 8:38am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/9 "2021-11-02T08:38:47Z")

</div>

Hi,

the Python bindings shipped with the binary packages are compiled for a specific Python version (3.5). To use it in your environment, you can recompile it by doing the following:

```auto
cd /home/scp/OTB-7.4.0-Linux64/
source otbenv.profile
ctest -S share/otb/swig/build_wrapping.cmake -VV

```

you might need to install cmake to run these commands

Cédric

---

<div class="post-metadata">

**Author:** ![julieb](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@julieb](https://forum.orfeo-toolbox.org/u/julieb)\
**Post date:** [November 2, 2021, 8:46am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/10 "2021-11-02T08:46:08Z")

</div>

Hi Cedric,

I installed cmake et run your command. I get this …  
What can I understand ?

Thanks in advance.

 ![s1_tiling_20211102_v2](https://forum.orfeo-toolbox.org/uploads/default/original/1X/eaabe7d6a9cf8a9d1315d96781f008fab67879cc.png)

---

<div class="post-metadata">

**Author:** ![luc.hermitte](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/luc.hermitte/32/15_2.png) [@luc.hermitte](https://forum.orfeo-toolbox.org/u/luc.hermitte)\
**Post date:** [November 2, 2021, 9:01am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/11 "2021-11-02T09:01:20Z")

</div>

You need to install a C++ compiler.

IIRC, the packet name on ubuntu will be “g++”

---

<div class="post-metadata">

**Author:** ![julieb](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@julieb](https://forum.orfeo-toolbox.org/u/julieb)\
**Post date:** [November 2, 2021, 9:28am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/12 "2021-11-02T09:28:23Z")

</div>

I ran “sudo dnf install gcc-c++” and tried again the last command. I get this error message…

Did I forget something ??

Thanks for your help!

 ![s1_tiling_20211102_v3](https://forum.orfeo-toolbox.org/uploads/default/original/1X/a19a15e380cd4eca075c86739f0368ef3823e024.png)

---

<div class="post-metadata">

**Author:** ![luc.hermitte](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/luc.hermitte/32/15_2.png) [@luc.hermitte](https://forum.orfeo-toolbox.org/u/luc.hermitte)\
**Post date:** [November 2, 2021, 9:33am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/13 "2021-11-02T09:33:45Z")

</div>

A few other development oriented packages are required to update OTB Python binding.

You could find the minimal required list in the Dockefile used to prepare S1Tiling environment here: [ubuntu/base/Dockerfile · master · s1-tiling / s1tiling-dockers · GitLab](https://gitlab.orfeo-toolbox.org/s1-tiling/s1tiling-dockers/-/blob/master/ubuntu/base/Dockerfile#L60)

(You’ll also see the list of other commands that needs to be executed in in which order (up-to S1Tiling installation excluded) on minimal ubuntu systems. Note: only the `apt` commands needs to be executed as `root` with `sudo`) (EDIT: and of course if you want to use Python 3.7, use Python 3.7 instead of 3.6)

---

<div class="post-metadata">

**Author:** ![julieb](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@julieb](https://forum.orfeo-toolbox.org/u/julieb)\
**Post date:** [November 2, 2021, 9:37am UTC](https://forum.orfeo-toolbox.org/t/about-s1-tiling-installation/1183/14 "2021-11-02T09:37:08Z")

</div>

Thank you very much for your help! I will try to install all the required packages.
