Tag Archives: windows

[Solved] Vcpkg Install Building package brotli:x64-windows failed with: BUILD_FAILED Locking applocal.ps1

After entering  .\vcpkg.exe install brotli: x64 windows, you see the following prompt, so you go to log
and find the prompt vcpkg/scripts/buildsystems/msbuild/applocal. PS1 'is not recognized as the name of a script file . It turns out that this file is missing, so you directly go to the vcpkg official website to supplement this file,

Error reported when debugging Hadoop cluster under windows failed to find winutils.exe

set Java in/etc/Hadoop/Hadoop env.cmd file_ HOME=%JAVA_ Home%
is (modified to the JDK location configured by your own machine)
set Java_ HOME=C:\Program Files\Java\jdk1.8.0_ 144 check fs.default.name
check whether the attribute value of fs.default.name in/etc/Hadoop/core-site.xml is consistent with that in the server. Inconsistency needs to be changed to consistency. Configure environment variables
Hadoop_ Home and % Hadoop in path_ Home% \ bin configure local hosts Server1 server2 server3winutils.exe and hadoop.dll in Hadoop/bin directory, hadoop.dll in C: \ window \ system32 directory, and restart the IDE. If an error is still reported, restart the computer

How to Solve Nacos startup error

Error 1:

Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerExcepti

Open the startup file, and different operating systems open different files. Open startup.cmd on windows, open startup.sh for others, find set MODE, and change it to standalone mode.

Error 2:

Error creating bean with name ‘memoryMonitor’ defined in URL [jar: File:/D:/Nacos/nacos203/target/Nacos server. Jar!/boot-inf/lib/nacos-config-2.0.3. Jar

Database connection If there is a problem, the correction method is as follows:
open the application.properties file in the nacos/conf/ folder , find the database connection address, pay attention to whether there is &serverTimezone=UTC after it, and add it if not.
db.url.0=jdbc:mysql: …/lamp_nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true &serverTimezone=UTC

C++:error C2872: ‘byte‘: ambiguous symbol [How to Solve]

The reason is to merge two project programs written by others. There is no problem with separate testing. After merging, compile and report errors

After searching the data, it is suspected that it is related to the header file windows.H

#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <windows.h> // Commented out to compile properly
#include <map>
#include <any>

My solution is to #include <windows.h> comment it out (the header file is not used in the code), and then it can run successfully. I didn’t delve into the specific reasons, mainly by referring to the reference materials at the end of the article.

WPF path = (validation. Errors) [0]. Errorcontent reports a binding error

System.Windows.Data Error: 17 : Cannot get ‘Item[]’ value (type ‘ValidationError’) from ‘(Validation.Errors)’ (type ‘ReadOnlyObservableCollection`1′). BindingExpression:Path=AdornedElement.(0)[0].ErrorContent; DataItem=’AdornedElementPlaceholder’ (Name=’customAdorner’); target element is ‘TextBlock'(Name=”); target property is ‘Text’ (type ‘String’) ArgumentOutOfRangeException:’System.ArgumentOutOfRangeException: The specified parameter is out of the range of valid values.

Correct binding method:


Error c2375: “wsacleanup”: redefine; Different links, etc

Error c2375: “wsacleanup”: redefine; Different links, etc



By default, windows. H will contain Winsock. H. When you include Winsock 2. H, it will conflict. Therefore, before including windows. H, you need to define a macro to remove Winsock. H

Scheme 1
in #include & lt; windows.h> Add #define Win32 to the previous line_ LEAN_ AND_ Mean// remove some uncommon
scheme 2
Project attribute – C/C + + – preprocessor – preprocessor definition
manually add a macro:

How to handle error 2755 when installing software under windows

Because there was an error when installing some MSI installer on windows on your computer before:

If you search for this error from Baidu, the general solution is to right-click the attribute, then modify the file permissions in the security group and check all the permissions that should be given. I have tried this method, but I still report the same error.

Later, find a method from the Internet:

Check whether the computer C: \ windows \ installer folder exists. If it does not exist, create a folder and grant administrator permission.

Then copy the installer to the installer folder and execute.

During re execution, the following new errors are found:

At this time, I tried to change the file permissions and found that it didn’t work. Maybe I changed it in the wrong way. At this time, I changed the way. Open the CMD window as an administrator, enter the C: \ windows \ installer directory, and then enter the file name of the installer to complete the installation.

[Solved] OpenCv5 error: (-215:Assertion failed) !_descriptors.empty() in function ‘add‘

OpenCv5——error: (-215:Assertion failed) !_ Descriptors. Empty() in function ‘Add’ problem solved

    1. the path of Chinese pictures cannot be included in the path of pictures. Format: D:/qqfiles/Web/Xiaomi/images/1.JPG


    1. the path of Windows cannot be copied directly. On the contrary, there is no qualified dataset in the path

After upgrading windows 11, Wireshark can’t get list of interfaces: packetgetadapternames reports an error


After win10 is upgraded to win11, Wireshark displays Wireshark can’t get list of interfaces: packetgetadapternames: the system cannot find the specified path
packetgetadapternames is an API of WinPcap. Wireshark captures packets based on WinPcap or npcap. When installing Wireshark, an npcap or usbpcap will be automatically installed. I guess npcap or usbpcap may disappear after upgrading the system, so uninstall Wireshark and reinstall it. Just install npcap or usbpcap


Remember to check all these options when uninstalling

Solution to the flash back, error report and unexpected exit of idea MAC windows

First of all, let’s talk about the reason why I have this problem
when I use idea, because I am shy in my pocket, I use improper means to crack idea indefinitely, and then because I am stupid and improper operation, idea exits unexpectedly and can’t enter the flash screen
finally, through repeated search on the Internet, the strength of nine cattle and two tigers was wasted, and finally a solution was found. I share it with you here.

The problem is that it appears in the idea. Vmoptions file. For some cracking, you need to add a path to crack the JRE package in this file. The problem appears here.

So the first solution I think of is to find this file, modify it back, or delete it directly
so I found the idea.vmoptions file in the bin directory of the idea installation directory. Then delete it, and the result still doesn’t work.

Then I tried to uninstall the software and reinstall it with another version, which still didn’t work.

This shows that the idea.vmoptions file under the installation package is not the root of the problem

Because every time we start, the file idea.vmoptions in the installation directory is not loaded
instead, the file under C: \ users \ user name \. Intellijidea2018.1 \ config \ plugins
. Mac is located in users/computer user name/library/preferences/intellijidea2019.3
if not, go to if not, go to: application support/JetBrains/intellijidea2020.1 under library /. After finding it, delete it and start the idea again.

A solution to the kernel error of Jupiter notebook in Anaconda under Windows 10

Problem Description:

                After installing Anaconda 3, open the Jupiter notebook to create a new one. When you click Python 3, the kernel error is always displayed. It has been tried several times. I believe many people have such a problem. No matter uninstalling and reloading Anaconda or rebuilding an environment, it has not been solved. Until later, it was found that the nuclear was not cleaned up. Here I share a solution to this problem. Successfully solved my problem.


1. Open the anaconda prompt window and enter Jupiter kernelspec list to see the location of the current kernel. Note that this is the wrong kernel,


2. Copy this address and uninstall the current anaconda

3. Find the address just now and delete the jupyter folder

4. Reinstall Anaconda

It can be solved!!