rstudio: error while loading shared libraries - rstudio

After I upgrade my (arch linux) system I get de following error when I try to open Rstudio:
rstudio: error while loading shared libraries:
libboost_date_time.so.1.66.0: cannot open shared object file: No such file or directory
After looking at usr/lib directory I found that the new library is libboost_date_time.so.1.67.0. How can I update the library path to the new file?
Reinstalling rstudio is not an option right now because I get another error that I posted in other topic.

Related

Building program for other machines

I created a simple program using Lazarus Ide Qt5. I'm using Kubuntu 20 right now. When I build and run it on another Linux distribuiton I get error:
Quote
./shortcutcreator: error while loading shared libraries: libQt5Pas.so.1: cannot open shared object file: No such file or direcctory.
How can I build it for other machines?
(lib)qt5pas is a C++->C flattening library for QT5. It is afaik available in the package repositories, simply install it on the receiving PC.

How to grant access to Qt5 libraries compiled through conda?

I downloaded a package Rcount-multireads. It requires Qt5 libraries. I am working on a Linux server without admin rights and use the conda environment. I installed Qt5 via conda. Running ./Rcount-multireads should result in printing of the program parameters but gives me the following error:
./Rcount-multireads: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
I found libQt5Widgets.so.5 in /software/miniconda3/envs/repeats/lib/. How would I be able to grant access to those libraries?
Thanks for your help.

dylib : library not loaded : Reason : image not found in swift 5

I want to use .dylib file into my project , .dylib file is created from go lang. same .dylib file in working fine in macOS command line project but giving error in macOS application project
Steps followed for including file
1)Created a macOS Application project
2) Pasted .dylib file in project root directory
3) After pasting file inside root directory of project ,I have
added .dylib file to the project by using File >> Add file "project"
4) changed library settings from “Don’t Embed” to “Embed without signing” .
Also tried to drag and drop .dylib file
Error
dyld: Library not loaded:
Reason: image not found
I was getting same error when I was trying to use same .dylib file with macOS command line application but after changing library setting from “Do not Embed to Embed without signing ” error got resolved.

Using SDL-C library with Code::Blocks on Windows...wizard can't locate SDLmain library file

I am new to programming and I am trying to use SDL library with Code::Blocks on Windows. I downloaded the Library from : https://www.libsdl.org/download-2.0.php.
I downloaded the files, decompressed and then copied SDL.dll file in
C:\Program Files (x86)\CodeBlocks\MinGW\bin
and then the include and lib files in
C:\Program Files (x86)\CodeBlocks\SDL,
which is a new file I created. However, when I open Code::Blocks, new SDL project and arrive at the step where I am supposed to give the directory where the include and lib files are, once I hit next I get the following error :
The path you entered seems valid but the wizard can't locate the following SDL's library file: SDLmain in it.
Any idea why this might be happening and how I can fix it?

error LNK1104: cannot open file 'libboost_serialization-vc110-mt-gd-1_53.lib'

I use Boost serialization to create a simple XML file, but when debug, I got this error
"error LNK1104: cannot open file 'libboost_serialization-vc110-mt-gd-1_53.lib'"
I have tried to fixed my problem followed the answer in this question
but I can't find the folder "stage" in my Boost folder, I downloaded Boost from here
You need to build the boost libraries first.
Open a console and go to the root folder of boost. Then type
bootstrap
and then type
b2 variant=debug,release link=static runtime-link=static
for building debug and release configuration for static linking. You can find more information in the Getting Started Guide
In my case, I'm using boost 1.55, in which serialization is a pure template module. There are only some hpp files in the module folder. However, I still get the same error.
My solution is to
#define BOOST_ALL_NO_LIB
in the code. Now everything goes fine.

Resources