Question: I want to create custom progressbar with different levels like below image;

[![enter image description here](https://i.stack.imgur.com/wXkuN.jpg)](https://i.stack.imgur.com/wXkuN.jpg)

xml code;

```
 <ProgressBar
    android:id="@+id/progress"
    style="?android:attr/progressBarStyleLarge"
    android:layout_width="300dp"
    android:layout_height="300dp"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="20dp"
    android:indeterminate="true"
    android:indeterminateDrawable="@drawable/progress"  />

```

progrss.xml;

```
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360" >

<shape
    android:innerRadiusRatio="3"
    android:shape="ring"
    android:thicknessRatio="10"
    android:useLevel="false" >

    <size
        android:height="76dip"
        android:width="76dip" />

    <gradient
        android:angle="0"
        android:endColor="#99cc33"
        android:startColor="#F15d36"
        android:type="sweep"
        android:useLevel="false" />

</shape>

</rotate>

```

Answer: 
Where did you get this program? Rebuild it with the current gfortran if you have the source or you need to find the old libgfortran. It will be in an old release of GCC. Try to install GCC 4.1 or similar. Such an old version will not be present in current repositories, you must install it manually.
In Ubuntu 18.04, the following error:

```
sander: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory

```

was fixed by running

```
sudo apt-get install libgfortran3:amd64

```

It could be the same for libgfortran1, by running

```
sudo apt-get install libgfortran1:amd64  

```

Also, in place of amd64 the I am aware of the following options: i386, i586, i686, x86\_64.