# help !  upgraded linux server causing problems!

**URL:** <https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695>\
**Category:** Web\
**Created:** [March 17, 2017, 5:44pm UTC](https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695 "2017-03-17T17:44:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russ\_Lunn](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@Russ\_Lunn](https://forum.xojo.com/u/Russ_Lunn)\
**Post date:** [March 17, 2017, 5:44pm UTC](https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695/1 "2017-03-17T17:44:27Z")

</div>

Hi,

I upgraded an x86 Ubuntu 14.04LTS to 16.04LTS because some other software needed the upgrade.

now my XOJO web is having issues. The cgi runs and I have checked dependencies with ldd, and i believe they are all there.  
I recompiled it in 2016r4.1

this looks like an MBS file @Christian Schmitz thats missing, but they are copied over in LIBS and look ok.  
also the libmysqlclient.so.20 exists.

Does anyone have any ideas?

/usr/lib/i386-linux-gnu/libmysqlclient.so.20/: cannot open shared object file: Not a directory

DBMS API Library loading fails  
This library is a part of DBMS client installation, not SQLAPI++  
Make sure DBMS client is installed and  
this required library is available for dynamic loading

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [March 17, 2017, 6:02pm UTC](https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695/2 "2017-03-17T18:02:47Z")

</div>

Re-build and re-upload your _entire_ project.  
Updates sometimes move or remove things.

---

<div class="post-metadata">

**Author:** ![José\_María\_Terry\_Jiménez](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@José\_María\_Terry\_Jiménez](https://forum.xojo.com/u/Jos%C3%A9_Mar%C3%ADa_Terry_Jim%C3%A9nez)\
**Post date:** [March 17, 2017, 10:55pm UTC](https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695/3 "2017-03-17T22:55:32Z")

</div>

Do you have the Library in that path?

Don’t know with MBS SQL and MySQL but with PostgreSQL you need to specify where the library is with some like:

```auto
DBConnection.SetFileOption DBConnection.kOptionLibraryPostgreSQL, GetFolderItem(parametro("path_to_the_library"),FolderItem.PathTypeShell)
```

Check the path is right for your installation

---

<div class="post-metadata">

**Author:** ![Russ\_Lunn](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@Russ\_Lunn](https://forum.xojo.com/u/Russ_Lunn)\
**Post date:** [March 18, 2017, 9:47am UTC](https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695/4 "2017-03-18T09:47:33Z")

</div>

well, I have this in my code :-

db.SetFileOption db.kOptionLibraryMySQL, GetFolderItem("/usr/lib/i386-linux-gnu/libmysqlclient.so")

and the lib seems to be there, although its probably been updated i guess, the links seem to be in place though

/usr/lib/i386-linux-gnu$ ls -la libmysql\*  
-rw-r–r-- 1 root root 5198866 Jan 18 21:56 libmysqlclient.a  
lrwxrwxrwx 1 root root 20 Jan 18 21:55 libmysqlclient.so -\> libmysqlclient.so.20  
lrwxrwxrwx 1 root root 24 Jan 18 21:55 libmysqlclient.so.20 -\> libmysqlclient.so.20.3.4  
-rw-r–r-- 1 root root 4051376 Jan 18 21:56 libmysqlclient.so.20.3.4

---

<div class="post-metadata">

**Author:** ![Russ\_Lunn](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@Russ\_Lunn](https://forum.xojo.com/u/Russ_Lunn)\
**Post date:** [March 18, 2017, 9:58am UTC](https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695/5 "2017-03-18T09:58:56Z")

</div>

thanks for the pointer Jos

i changed the code to point to libmysqlclient.so.20.3.4 and it works.

not sure why the links don’t work though, it feels like they should. and i will need to recompile every time there is an update.

is that how it should be?

---

<div class="post-metadata">

**Author:** ![José\_María\_Terry\_Jiménez](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@José\_María\_Terry\_Jiménez](https://forum.xojo.com/u/Jos%C3%A9_Mar%C3%ADa_Terry_Jim%C3%A9nez)\
**Post date:** [March 18, 2017, 11:31am UTC](https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695/6 "2017-03-18T11:31:01Z")

</div>

Try adding ,FolderItem.PathTypeShell in the GetFolderItem sentence.

Without this it seems the program seems be confused with the link (note the / at the end), it seems “using” absolute path, as in the error you got a trailing / and this is a file, not a directory.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:41pm UTC](https://forum.xojo.com/t/help-upgraded-linux-server-causing-problems/36695/7 "2020-10-29T18:41:45Z")

</div>


