Category Archives: How to Install

Docker: How to Install Nacos

1. Create a local map file

mkdir -p /root/nacos/init.d /root/nacos/logs
touch /root/nacos/init.d/custom.properties

 

2. write configuration in file

management.endpoints.web.exposure.include=*

 

3. configure startup

docker run -d -p 8848:8848 -e MODE=standalone -e PREFER_HOST_MODE=hostname -v /home/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties -v /home/nacos/logs:/home/nacos/logs --restart always --name nacos nacos/nacos-server

[Solved] faiss Failed to install Error: No version of faiss found that meets the requirements

When running the installation:

pip install faiss

report errors:

ERROR: Could not find a version that satisfies the requirement faiss (from versions: none)
ERROR: No matching distribution found for faiss

When installing with conda:

conda install faiss

report errors:

PackagesNotFoundError: The following packages are not available from current channels:

  - faiss

Faiss on Pypi is just a collection of pre built binary files of MacOS and Linux, and is only applicable to these Python versions:

Python :: 2.7
Python :: 3.5
Python :: 3.6
Python :: 3.7

Your settings do not seem to match these specifications

For conda, it does not exist in the std channel, but can be installed in the following ways (Linux and MacOS only):

Install CPU version

conda install -c pytorch faiss-cpu

Install GPU version

conda install -c pytorch faiss-gpu

Install fail on Windows. Go to the conda prompt and enter:

conda install -c conda-forge faiss-cpu

[Solved] ORB_SLAM Install Error: error: ‘std::chrono::monotonic_clock’ has not been declared

The reason for this problem is that there is a difference between the C++ versions.

Momotonic_clock is no longer available in C++11, there is steady_clock instead.

I got the solution from Stack Overflow.

So the author of orb-slam used ifdef in the code to determine the user’s C++ version:

#ifdef COMPILEDWITHC11
        std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now();
#else
        std::chrono::monotonic_clock::time_point t1 = std::chrono::monotonic_clock::now();
#endif
 
        //Pass the image to the SLAM system
        SLAM.TrackMonocular(im,tframe);
 
#ifdef COMPILEDWITHC11
        std::chrono::steady_clock::time_point t2 = std::chrono::steady_clock::now();
#else
        std::chrono::monotonic_clock::time_point t2 = std::chrono::monotonic_clock::now();
#endif

But this part of monotonic_clock will still report an error!

If you report an error in this part, there is a high probability that your C++ is version 11, then we can actually delete this part of the judgment statement and keep only

std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now();
 
 //Pass the image to the SLAM system
 SLAM.TrackMonocular(im,tframe);
 
std::chrono::steady_clock::time_point t2 = std::chrono::steady_clock::now();
 
//......

This part is fine. After deleting the code of monotonic_clock, it can be compiled normally!

How to Solve Oracle 11g Install Stuck 86% error on Linux

Linux Installation Oracle 11g 86% error:

Error in invoking target ‘agent nmhs’ of makefile
os:oracle Linux 7.9 64bit
db:oracle 11.2.0.4
Error in invoking target ‘agent nmhs’ of makefile occurs at 86%

cd $ORACLE_HOME/sysman/lib
cp ins_emagent.mk ins_emagent.mk.bak #backup
vi ins_emagent.mk

Solution:

Once in the vi editor, type /NMECTL to find and quickly locate the line you want to modify
Append the parameter -lnnz11 to the first letter l and the next two numbers 1

[Solved] maven Install Error: MavenReportException: Error while generating Javadoc:

【maven】MavenReportException: Error while generating Javadoc:

Environment: jdk1.8
problem cause: Javadoc cannot be generated during maven install
Solution: Add in the configuration <skip>true</skip>, skip the javadoc generation

<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.10.4</version>
				<configuration>
					<additionalparam>-Xdoclint:none</additionalparam>
					<skip>true</skip><!-- skip javadoc -->
				</configuration>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<additionalparam>-Xdoclint:none</additionalparam>
							<failOnError>false</failOnError>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

 

How to Solve Cython-bbox pip install Error

Cython-bbox pip install error

Installation steps

    1. 1. Download Cython_bbox source code, click Download files to download.
    1. 2. Unzip the file.
    1. 3. Open setup.py, find line 31, replace extra_compile_args=[‘-Wno-cpp’] with extra_compile_args={‘gcc’: [‘/Qstd=c99’]}.
    1. 4. Save the changes and return to the cython_bbox-0.1.3 file directory. After calling cmd and jumping to this directory, use the command line
python setup.py build_ext install

The following command is displayed to indicate success:

you can also package the file back to the original compressed file and use the offline PIP installation.

https://blog.csdn.net/qq_28949847/article/details/124974088

[Solved] fbprophet Install Error: command ‘x86_64-apple-darwin13.4.0-clang‘ failed with exit status 254

There are several different errors in the process of installing prophet. Record them

1) Error: ModuleNotFoundError: No module named ‘pystan’

Please install pystan before installing prophet

2) Error: command ‘x86_64-apple-darwin13.4.0-clang’ failed with exit status 254

To execute the following two sentences on the command line

export CC=gcc
export CXX=g++

3) Error: command ‘x86_64-apple-darwin13.4.0-clang’ failed with exit status 1

export CXX=clang

[Solved] Navicat premium 15 Registration Machine Error: Error on Generate Activation Code…

Navicat premium 15 Registration Machine Error: Error on Generate Activation Code…

How to Solve:

① There is only one chance to patch. If it fails, uninstall, delete the registry, and then reinstall

Win + R, enter regedit and find the computer \HKEY_CURRENT_USER\Software\PremiumSoft, delete all Navicat folders in premiumsoft, and then start again (no all pattern found! Use this to solve the error)

② Error on Generate Activation Code

The network needs to be disconnected during the operation. It is recommended to install the segment at the beginning. If it fails at one time, you need to uninstall, delete the registry, install again, and then patch + manual activation

[Solved] Acrobat DC 2022 Install Error: Cannot Install Acrobat Update Service

Personally, when installing Acrobat DC 2022 repeatedly failed, are reported in the last step of the error as follows.

Unable to install the service Adobe Acrobat Update Service (AdobeARMservice).

Please make sure you have sufficient permissions to install the system services.

First, please make sure that you have completely uninstalled the old version or 32bit version of Acrobat DC, as well as Acrobat XI, and deleted the registry and other files. It is recommended to use Geek Uninstall tool to uninstall.

If you confirm the completion of this step still can not be effectively installed, please try the following methods.

Method 1: Restart the computer
Restart your computer and install Adobe Acrobat DC.

Method 2: Stop Adobe Acrobat Update Service service
Control Panel > Administrative Tools > Services, right-click Adobe Acrobat Update Service and stop. Then install Adobe Acrobat DC.

Method 3: Stop and remove the Adobe Arm Service
Open Windows PowerShell as administrator.

In Windows PowerShell, do the following.

To stop the Adobe ARM service, write the following command and press Enter.

sc.exe stop AdobeARMservice

To delete the Adobe ARM service, write the following command and press Enter.

sc.exe delete AdobeARMservice

Delete the remaining files from the Adobe Update Service folder. Type the following command and press Enter.

del “%PROGRAMFILES(X86)%\Common Files\Adobe\ARM\”

Close Windows Powershell and install Adobe Acrobat DC.

Note: method 3 solves my problem. The last step of method 3 may not be executed correctly, but it does not affect.

[Solved] gocad2017 Install error: The installation of MSVC_2010_SP1_x64_32bit has failed.

Problem description
After right-clicking on the .exe file and running it as an administrator, a progress bar will appear for extracting the installation file (Extracting), but after the progress bar ends, an error message as shown in the figure below appears: The installation of MSVC_2010_SP1_x64_32bit has failed., the error interface is shown in the figure below Show.
insert image description here
After querying the information, it is found that uninstalling the corresponding Microsoft Visual C++ 2010 x64 Redistributable in the original computer can solve this problem. Please refer to: ENVI installation process and the solution to the error message The installation of MSVC_2010_SP1_x64_32bit has failed.

Solution:
is: look at the product list through the Windows Installer Clean Up tool, uninstall Microsoft Visual C++ 2010 x64 Redistributable – 10.0.4021 and Microsoft Visual C++ 2010 x86 Redistributable – 10.0.4021, the serial numbers behind may be different, but as long as It can correspond to 2010 in MSVC_2010 mentioned in the error. After these two products are uninstalled, run the installation package to continue the normal installation.

COLMAP Install Error: Undefined reference to libtiff4.0 [Solved]

At Ubuntu 20 When installing colmap under 04 system, run under /colmap/build folder

make -j

The following errors are reported:

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFReadEXIFDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldReadCount@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFSetTagExtender@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFCurrentDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFReadTile@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFSetDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFClientOpen@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFSetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFWriteDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFTileRowSize@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFGetFieldDefaulted@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldDataType@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFSwabArrayOfLong@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFMergeFieldInfo@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFLastDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `_TIFFDataSize@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFSetSubDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldPassCount@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldWithTag@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFReadRGBAImage@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFClose@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFGetTagListCount@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldTag@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFGetTagListEntry@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFComputeStrip@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFDataWidth@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldName@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFIsByteSwapped@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFTileSize@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFStripSize@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
src/mvs/CMakeFiles/normal_map_test.dir/build.make:163: recipe for target 'src/mvs/normal_map_test' failed
make[2]: *** [src/mvs/normal_map_test] Error 1

Conduct in-depth investigation and find that there is a Warning in the previous cmake…:

runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/damon/anaconda2/lib

It turns out that anaconda’s Qt is used, so add the following fields to Cmakelist.txt in the colmap folder to force the switch to system Qt

SET(CMAKE_PREFIX_PATH "/usr/lib/x86_64-linux-gnu/cmake")

Re-execute make – j and it will be OK!

Note: If you have previously made and failed, you need to delete all the files in the build folder and then make -j again, otherwise it will still fail