Error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory - boost

When starting the daemon, it says this: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory
How to solve it? Everything is set...
When starting the daemon, it says this: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory
How to solve it? Everything is set..

Related

I changed file paths and now I can't run my Flutter app in Debug Mode from VS Code

I changed the file paths and can run my app from Xcode. However, when I try to run it in debug from VS Code it crashes throwing these errors:
<unknown>:0: error: PCH was compiled with module cache path '/Users/Dan/Downloads/Business/bowa/build/macos/ModuleCache.noindex/1OUJJSWMDF0CH', but the path is currently '/Users/Dan/Downloads/Business/apps/bowa/build/macos/ModuleCache.noindex/1OUJJSWMDF0CH'
<unknown>:0: error: missing required module 'SwiftShims'
<unknown>:0: error: PCH was compiled with module cache path '/Users/Dan/Downloads/Business/bowa/build/macos/ModuleCache.noindex/1OUJJSWMDF0CH', but the path is currently '/Users/Dan/Downloads/Business/apps/bowa/build/macos/ModuleCache.noindex/1OUJJSWMDF0CH'
<unknown>:0: error: missing required module 'SwiftShims'
<unknown>:0: error: PCH was compiled with module cache path '/Users/Dan/Downloads/Business/bowa/build/macos/ModuleCache.noindex/1OUJJSWMDF0CH', but the path is currently '/Users/Dan/Downloads/Business/apps/bowa/build/macos/ModuleCache.noindex/1OUJJSWMDF0CH'
<unknown>:0: error: missing required module 'SwiftShims'
<unknown>:0: error: PCH was compiled with module cache path '/Users/Dan/Downloads/Business/bowa/build/macos/ModuleCache.noindex/1OUJJSWMDF0CH', but the path is currently '/Users/Dan/Downloads/Business/apps/bowa/build/macos/ModuleCache.noindex/1OUJJSWMDF0CH'
<unknown>:0: error: missing required module 'SwiftShims'
Command EmitSwiftModule failed with a nonzero exit code
error: emit-module command failed with exit code 1 (use -v to see invocation)
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/App' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/Info.plist' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/AssetManifest.json' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/FontManifest.json' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/NOTICES.Z' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/fonts/MaterialIcons-Regular.otf' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/isolate_snapshot_data' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/kernel_blob.bin' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/lib/images/IMG-1124.jpg' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/vm_snapshot_data' is located outside of the allowed root paths.
warning: Stale file '/Users/Dan/Downloads/Business/apps/bowa/macos/DerivedDataMoved/Runner/Index/Build/Products/Debug/FlutterMacOS.framework/Versions/A/FlutterMacOS' is located outside of the allowed root paths.
** BUILD FAILED **
Exception: Build process failed
Exited
I have found some answers recommending deleting, changing, and cleaning the DerivedData folder. I have tried cleaning my Xcode project and running, Deleting the DerivedData folder and running, renaming DerivedData Folder and saving relatively, and deleting specifically the ModuleCache.noindex folder in DerivedData.
None of these solutions have worked for me and I'm not sure why.

PHP Warning: PHP Startup: Unable to load dynamic library 'oci8_12c'

I'm trying to enable oci8_12c extension with Instant client 12.2 in PHP 8.0.7. on windows x64
I've uncommented extension=oci8_12c in my php.ini file.
Downloaded and placed php_oci8-3.0.1-8.0-ts-vs16-x64 files in my C:\xampp\php\ext folder
Downloaded instantclient-basic-windows.x64-12.2.0.1.0.zip file and extracted to C:\Oracle\instantclient_12_2 also added to PATH.
Downloaded & installed vcredist_x64.exe from Microsoft Visual Studio 2013 Redistributable.
Restarted my PC.
But still when I run php --ini in my cmd. I get the following warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'oci8_12c' (tried: C:\xampp\php\ext\oci8_12c (The specified module could not be found), C:\xampp\php\ext\php_oci8_12c.dll (The specified module could not be found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'oci8_12c' (tried: C:\xampp\php\ext\oci8_12c (The specified module could not be found), C:\xampp\php\ext\php_oci8_12c.dll (The specified module could not be found)) in Unknown on line 0
Configuration File (php.ini) Path:
Loaded Configuration File: C:\xampp\php\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
phpinfo() screenshot
After 3 days of trying and failing
I found this article by Daniel Opitz.
The step I was missing in my question post was
Copy all *.dll files: to c:\xampp\php
Copy all *.dll files to c:\xampp\apache\bin (We need a second copy here for apache)
Thats it !! After adding the .dll files to my root php and apache, the warning was resolved.

petalinux-package fails to find file in /tmp

I'm following this rather good YT tutorial to build and run petalinux on an arty board. Everything is fine until I try to package the build with petalinux-package.
I get the following error:
daniel#daniel-OptiPlex-3050:~/work/arty_petalinux_test$ petalinux-package --boot --force --fpga ../arty_linux/arty_linux.runs/impl_1/design_1_wrapper.bit --u-boot --kernel --flash-size 16 --flash-intf SPIx1
INFO: Sourcing build tools
WARNING: Auto detecting MMI file with XSA
INFO: Creating download.bit...
INFO: Fpga bitstream: /home/daniel/work/arty_linux/arty_linux.runs/impl_1/design_1_wrapper.bit
INFO: Fpga bitstream MMI file: /tmp/tmp.j6IieOwBAR/design_1_wrapper.mmi
INFO: Fsbl file: /home/daniel/work/arty_petalinux_test/images/linux/fs-boot.elf
INFO: Output download.bit: /home/daniel/work/arty_petalinux_test/images/linux/download.bit
cp: cannot stat '/tmp/tmp.j6IieOwBAR/download.bit': No such file or directory
ERROR: Failed to create download bit file for MicroBlaze MCS file.
The temp directory which it is looking for hasn't been created. I've also tried specifying the path to the MMI file (same as the path to the bit file) explicitly, but same issue.
Does petalinux-package generate any logs? I've searched and find no clue for this odd error.
Any ideas?

How to fix : -- snmpget: "error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory

snmpget: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory

failing to load ROracle: unable to load shared object ROracle.so: libclntsh.so.11.1 No such file or directory

So I can't load ROracle. I am indeed very new to this so any information is appreciated and any info regarding what further information to give would be helpful as well.
> library(ROracle)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '~/R/x86_64-pc-linux-gnu-library/2.14/ROracle/libs/ROracle.so':
libclntsh.so.11.1: cannot open shared object file: No such file or directory
Error: package/namespace load failed for ‘ROracle’
ROracle.so is exactly where it says it is. libclntsh.so.11.1 can be found at /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1. This is the result of .libPaths:
> .libPaths()
[1] "/home/nguiller/R/x86_64-pc-linux-gnu-library/2.14" "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"
[4] "/usr/lib/R/library" "/usr/lib/rstudio/R/library"
My .Renviron file
LD_LIBRARY_PATH="/usr/lib/oracle/11.2/client64/lib:/home/nguiller/Downloads/instantclient_11_2"
ORACLE_HOME="/usr/lib/oracle/11.2/client64/:/home/nguiller/Downloads/instantclient_11_2"
OCI_LIB="/usr/lib/oracle/11.2/client64/lib"
I had a lot of trouble installing ROracle to begin with due to OCI libraries but it eventually worked with R CMD INSTALL --configure-ags='--with-oci-lib=/usr/lib/oracle/11.2/client64/lib --with-oci-inc=/usr/include/oracle/11.2/client64' ROracle_1.1-8.tar.gz
Let me know how I can help.
ORACLE_HOME should point to just one location. Shouldn't you set LD_LIBRARY_PATH_64 variable?
If you really really really want to do this within the R environment, you can load the specific library as follows:
dyn.load("/usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1")
library(ROracle)
References:
Setting LD_LIBRARY_PATH from inside R
set $LD_LIBARARY_PATH=$ORACLE_HOME/lib
I got same error while loading "library(ORE)"
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib64/R/library/ROracle/libs/ROracle.so':
libclntsh.so.11.1: cannot open shared object file: No such file or directory
Error: package 'OREdm' could not be loaded
Looks like the shared object ROracle.so is referring to libclntsh.so.11.1 instead of libclntsh.so.12.1
bash-4.1$ pwd
/usr/lib64/R/library
bash-4.1$ grep -irsh "libclntsh.so.11.1" *
Binary file ROracle/libs/ROracle.so matches
As a work around, I have created a symlink, so that libclntsh.so.12.1 can be referred as libclntsh.so.11.1.
$ cd /scratch/softwares/R/db_instant_client/instantclient_12_1
ln -s libclntsh.so.12.1 libclntsh.so.11.1
After this step, I am able to load library(ORE) successfully.
Please see my website for more details.
Set this in /etc/rstudio/rserver.conf
rsession-ld-library-
path=/usr/lib64/R/lib:/home/oracle/app/oracle/product/12.1.0/client_1/lib
Then restart Rserver
sudo rstudio-server stop
sudo rstudio-server start
This helped me.

Resources