Tag Archives: Error: No such file or directory 

./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory

001. Question

[email protected]:/home/software/PopIns2/PopIns2# ./ popins2 
. / popins2 : error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory

 

 

002, the cause of the problem

Analysis of the reason: ld prompts that the library file cannot be found, and the library file is in the current directory.

The default directories of the linker ld are /lib and /usr/lib. If they are placed in other paths, you need to let ld know where the library files are.

 

003. Find the file

[email protected]:/home/software/PopIns2/PopIns2# find / -name " libbifrost.so "
 /usr/local/lib/ libbifrost.so
 /home/software/bifrost/build/src/ libbifrost.so 
find: ' / run /user/ 1000 / doc': Permission denied
find: ' /run/user/ 1000 / gvfs': Permission denied
find: ' /run/user/ 127 / doc': Permission denied
find: ' /run/user/ 127 /gvfs': Permission denied

 

004. Solution

method 1:

Edit the /etc/ld.so.conf file and add the directory where the library file is located in a new line;

Run ldconfig to update the /etc/ld.so.cache file;
method 2:

Create any file with a .conf suffix in the /etc/ld.so.conf.d/ directory, and add the directory where the library file is located in the file;

Run ldconfig to update the /etc/ld.so.cache file;

I think the second method is more convenient, with minimal changes to the original system. Because the content of the /etc/ld.so.conf file is include /etc/ld.so.conf.d/*.conf

[email protected]:/home/software/PopIns2/PopIns2# echo " /home/software/bifrost/build/src/libbifrost.so " > /etc/ld.so.conf.d/bifrost.so 
[email protected] : / home/software/PopIns2/PopIns2# ldconfig ## Update library files

 

005. Test

[email protected]:/home/software/PopIns2/PopIns2# ./popins2

[Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘

After checking the relevant information, I found out that this is actually a path setting problem. It is that your text actually exists, but the path you set is not correct causing the system to not find the requriements.txt file.

So, you just need to change your path setting to the path of the parent file you want to query.

I use the cmd system command cd to enter the specified file and then pip install -r requirments.txt method.

Example.

If requirements.txt is under the PythonProject file, then use

Cd C:\Users\xizhou\Desktop\PythonProject # Enter superior files first

pip install -r requirements.txt # Install pip again

The file can then be found.

[Solved] gcc: error trying to exec ‘cc1‘: execvp: No such file or directory

An execution error occurred after installing GCC An error occurred while loading the C file

gcc: error trying to exec 'cc1': execvp: No such file or directory

After adding environment variables

whereis cc1

Find out where CC1 is

/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/cc1

Position of CC1 in my centos7

If you can’t find it

locate cc1

Once found, copy

/usr/libexec/gcc/x86_64-redhat-linux/4.8.2

then

PATH="$PATH":/usr/libexec/gcc/x86_64-redhat-linux/4.8.2

Import environment variables

export PATH

That’s it

[Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory

Execute the following command:

    import cv2
  File "/appletree/miniconda3/envs/yyp_pytorch/lib/python3.7/site-packages/cv2/__init__.py", line 5, in <module>
    from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

Reason: libGL.so.1 is missing.
Solution:
execute the following command after pip install opencv-python

pip install opencv-python-headless

Vue Report Error #NULL! :no such file or directory,chmod….. [email protected] **\css- Beautify.js

Vue – error when using Vue cli/webpack to build project cnpm install dependency: 0 Error:ENOENT :no such file or directory,chmod..... [email protected] \**\css- beautify.js

cannot find module 'opn'/async-each/anymatch

As shown in the figure:

There are not many related solutions on the Internet. By searching stackoverflow, it is determined that it is a bug after JS beauty upgrade 1.7.0. At the beginning of the idea is to install the old version of 1.6, also tried to 1.7node_ To replace the relevant files in the modules folder can only solve the practical problem, NPM run dev </ code> continues to report errors as follows:

Unfortunately, one by one module was installed. Because the secondary dependency of plug-ins was suspended, the installation failed. There are too many modules


The final solution is as follows:

1. Modification package.json

//Clear all the dependencies from 替换为[email protected]版本, then cnpm install for dependency installation

2. Install version 1.6.14

//Local installation of version 1.6.14
//cnpm install [email protected]
//At this point, there are two versions of node_modules js-beautify.js

3. Replace dependent files

//The error is that the css-beautify.js file is not found, and if you open the directory you can see that even the lib directory is missing

/// At this point, open node_modules/[email protected]@js-beautify/js and copy all the files in that directory (except index.js),

/// then open node_modules/[email protected]@js-beautify/js and paste all the copied files into it

At this time, the required files for version 1.7.0 already exist:

4. Installation dependency

//js-beautifyThe problem is solved at this point and will no longer affect the installation of the secondary dependencies of the later plugins

// Undo the changes to package.json, thecnpm install

5. Enter the development stage

//npm run dev,done

Python FileNotFoundError: [Errno 2] No such file or directory: ‘objects/epsilon.pkl

Directory:

The preface explains in detail

preface
Go to WeChat and put on a fun application reinforcement learning. But go on the run and come across the problem before you go:
FileNotFoundError: [Errno 2] No such file or directory: ‘objects/ ingfix.pkl
has to learn and come up with a solution:
explain
There is no folder or file, that is, you have access to a file that does not exist, but in fact, if the file you are accessing does not exist, the method w is used to cut access, it will create a new document, so the main problem is, there is no folder, just create a new one.
Explain in detail
Python, the OS library, is required to read and write files. Due to open the way to your files is “w”, namely file does not exist when they create a file, so the PKL documents (I mean the relative path of the PKL) does not exist is automatically created, this is not the problem, the problem is the relative path, that is the path exists, this folder does not exist as a problem. So we have to determine if this path exists. Create if it doesn’t exist.

import os
if not os.path.exists(path):
    os.mkdir(path)

Also, note that you can only create one layer at a time for paths, meaning that the layer above your Objects exists, or you will still get an error.

brew install node Error: No such file or directory @ dir_chdir Bottle installation failed

Enter the brew installation node in the terminal and the carriage return error is shown below.

brew installation node
==>Dependencies on the installation node:icu4c
==>Installation node dependency:icu4c
==>
Downloaded:
/Users/lvhongjian/Library/Caches/Homebrew/downloads/ 2ac5137342effaf79e199fb1612ebce7842df443578bcd61afd73767858aef – icu4c-62.1. mojave.bottle.tar>gz
Error: no such file or directory @ dir_chdir – /usr/local/Cellar
Warning: bottle installation failed: build from source.
== than; Downloaded:
/Users/lvhongjian/Library/ cache /Homebrew/downloads/ b79f5dd51110fb1096e57fc35ba03df84f69142b0374bae8a0381edde5a80448-icu4c-62_1- src. tgz
Error:An exception occurred in a subprocess:Errno::EPRM:
Operation not allowed @ dir_s_mkdir – /usr/local/Cellar
solution

As the log in user is not a HomeBrew installer, the above error is solved as follows.
1. reinstall HomeBrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" on the current user.
2. run brew install node prompt successful