Video cloud solution EasyCVR packaging software can not run in the background after decompression under Linux troubleshooting

Our latest video cloud solution, EasyCVR, is currently in the trial phase, and the latest version will meet with you soon. Before we briefly introduced the problems that the video cloud solution can solve. Its biggest advantage is that it can be accessed Cameras, NVRs, etc. with different protocols, and unified management of devices with different protocols. You can read it here: EasyCVR release .

EasyCVR background management video review video review view view list play.png

In the process of R&D, our team also encountered many problems, so this blog was opened to record and solve some of the problems we encountered in R&D.

In this article, let’s take a look at the problem that when the EasyCVR packaging software releases the linux version, it prompts that the library cannot be found and the nginx directory permissions are insufficient when running on the target machine. Due to insufficient permissions, it cannot run in the background, which brings some inconvenience to the use of the product.

Our packaging method is to compile on a linux machine, copy the executable program to windows, and then compress the folder under windows.

Pressing the compressed package under windows will cause the nginx folder directory to have no executable permission after unzipping and running under linux, so the correct approach should be to compress files under linux system to distinguish different systems.

The reason why the library cannot be found is that EasyCVR links the dynamic library, and the dependent dynamic library is searched in directories such as /usr/lib by default in the Linux system. Adding the current directory to the environment variable through a script can solve this problem.

511.png

Clients can run the ./run.sh script to run the program with one click.

Guess you like

Origin blog.csdn.net/EasyNVS/article/details/106759200