LibreOffice Error after installed in centos 7 - centos7

/opt/libreoffice6.3/program/oosplash: error while loading shared libraries: libuno_sal.so.3: cannot open shared object file: No such file or directory
i'm using centos7

Related

error while checking gdb version: error while loading shared libraries: libpython3.10.dll: cannot open shared object file: No such file or directory

I am using MSYS2 and have installed all the gcc, g++ and gdb. gcc and g++ are working fine and I can check for the version. but while trying to check for gdb version:
$ gdb --version
C:/msys64/mingw64/bin/gdb.exe: error while loading shared libraries: libpython3.10.dll: cannot open shared object file: No such file or directory
This shows up. I have tried reinstalling the package but the error remains. How do I solve this? (beginner so apologies for any mistakes)
Installing Python 3 using the MSYS2 terminal solved the issue for me.
pacman -S mingw-w64-x86_64-python3

QT qmysql driver not loaded

I know there are already many topics on this forum about this problem but I did not manage to solve mine following them.
My configuration is the following:
QT Version : 5.14.2 - mscv2017_64
Compiler: mscv amd64
My problem is that my application does not load the libmysql.dll.
Here is what I have done:
I opened the command line MSCV 2017 64bits provided by qt and I initialized my environment using vcvarsall.bat amd64.
Then I have built the sql driver as explained in the documentation.
Here is the result of the qmake call:
Then, ran nmakeand nmake install and in the folder C:\Qt\5.14.2\msvc2017_64\plugins\sqldrivers, I found the following files.
Then I added libmysql.dll in the folder where my the exe file of my application was created. I got this file from the mysql server installation folder C:\Program Files\MySQL\MySQL Server 8.0\lib.
Then I rebuilt my application, but I still have the same error appearing, saying that the driver was not loaded. I compiled using the QT_DEBUG_PLUGINS=1 flag and I got as an output:
"The plugin 'C:/Qt/5.14.2/msvc2017_64/plugins/sqldrivers/qsqlpsqld.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/Thomas Bouchan/Documents/Personal/C++/SSVP/build-SSVP-project-Desktop_Qt_5_14_2_MSVC2017_64bit-Release/release/sqldrivers" ...
Cannot load library C:\Qt\5.14.2\msvc2017_64\plugins\sqldrivers\qsqlmysql.dll: The specified module could not be found.
QLibraryPrivate::loadPlugin failed on "C:/Qt/5.14.2/msvc2017_64/plugins/sqldrivers/qsqlmysql.dll" : "Cannot load library C:\Qt\5.14.2\msvc2017_64\plugins\sqldrivers\qsqlmysql.dll: The specified module could not be found."
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7"
From this I don't know what to do, as in the specified folder, the dll is there... Is it a question of 64 or 32 bits? Shall I build the driver with another compiler (not amd64?)?
I finally manage to get it working.
There was no issue with the compilation of the drivers, but the problem came from the libmysql.dll file. I don't know what happened with this dll but when I replaced it with the one downloaded the archive qsqlmysql.dll_Qt_SQL_driver_5.14.2_MSVC2017_64-Bit.zip. I only needed to replace the dll, not to use the plugins of the archive.
Opening the qsqlmysqld.dll with the dependency walker, I found out that two additional dlls files are required in libmysql.dll: LIBSSL-1_1-X64.dll and LIBCRYPTO-1_1-X64.dll. They can be found in the bin directory of the mysql server. In my case C:\Program Files\MySQL\MySQL Server 8.0\bin.
Adding those files in the directory of the executable solves the problem. Thanks #king_nak for the tip!

Oracle instant client header files are missed

I'm using RedHat OS to build a C++ program that is using OCCI to connect with an Oracle DB.
I had to reinstall everything and I found that my make file is adding the header files from the following path
/usr/include/oracle/18.3/client64
Which isn't available anymore
The only installation I remember I need is installing oracle-instantclient-basic
I've downloaded the rpm and installed using the command rpm -i ***.rpm
But the folder /usr/include/oracle isn't there
Note: The path /usr/lib/oracle/18.3/client/lib is found and all libraries I use for linking are there (only header files are missed).
This is my installation file
I could investigate and find the solution
The header files are not created by installing oracle-instantclient-basic but you should install oracle-instantclient-devel
/usr/include/oracle/18.3/client64 is the path for 64bit version and the path is /usr/include/oracle/18.3/client for 32bit versions.
All the tools can be downloaded from oracle website

Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu machine

I have a Qt5 application, compiled for release on Ubuntu. I prepare directory with:
application
all *.so libraries from ldd output
.sh script from http://doc.qt.digia.com/qt-5.2/linux-deployment.html
But when I run .sh script on another Ubuntu machine (without installed Qt5), I get next error:
symbol lookup error: /path/to/app/./libQt5Widgets.so.5: undefined
symbol: _ZTI15QGuiApplication
How fix it?

Error: boost/scoped_ptr.hpp: No such file or directory while using libkml

I am developing a software which uses Google Map database. I searched google and I found a library in C++ can do that - libkml. I've downloaded some examples code in this website, but when I compiled with this command: g++ main.cpp -lkml, it occured an error:
fatal error: boost/scoped_ptr.hpp: No such file or directory
What is "boost/scoped_ptr.hpp"? I try finding this file in terminal
locate boost/scoped_ptr.hpp
but there's nothing.
You need to install the boost libraries from http://www.boost.org/
Depending on your OS there will be pre-built solutions that you can install. For example on Ubuntu you can do sudo apt-get install libboost-all-dev. On Mac see this thread Boost: MacOSX binaries for Boost
On Windows this may help: http://boost.teeks99.com/