Tag Archives: Problems and solutions

[Solved] GCC Compile Error: fatal error: sys/cdefs.h: No such file or directory

Question:

/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

analysis:

Error in compiling 32-bit program on 64 bit host (- M32 option), install the necessary software package;

Solution:

$ sudo apt install gcc-multilib 	# Generally you can install this, if you can't install the following
$ sudo apt install g++-multilib
$ sudo apt install libc6-dev libc6-dev-i386

Entering emergency mode. Exit the shell to continue.

When the CentOS virtual machine is powered off or forced to shut down, there is a problem when it is rebooted:

Find out where the problem is:
here, journalctl is to view the log information of the system; Enter this command to view the log directly. There may be a lot of log content. Quickly turn the page or directly locate the latest log information. If you find something marked in red, it means that there is an error here
error reason:
failed to mount/sysRoot.
dependency failed for initrd root file system.
dependency failed for reload configuration from the real root.
problem solving:
input command: XFS_ The repair – V – L/dev/dm-0
– L option specifies to force log zeroing and XFS_ Repair zeros the log even if it contains dirty data (metadata changes).

Solve the MAC terminal download error curl: (7) failed to connect to raw.githubusercontent.com port 443: Connection refused

directory

    • a, error source
    • 2, analysis and solve
      • 1, test links
      • 2, query url information
      • 3, configuration, hosts
      • 4, the results

    — error source

    in the download node. Js package management tool, it found that incredibly connect address, the error is as follows:

    2. Analysis and solution

1, test link



after testing, it was found that the connection could not be connected, access was denied.

2, query url information

IP address query in

website: https://githubusercontent.com.ipaddress.com/raw.githubusercontent.com
the query results are as follows:

3. Configure hosts

USES software called SwitchHosts, an open source tool for modifying, managing, and switching multiple hosts schemes.
download address: https://oldj.github.io/SwitchHosts/#cn