Tag Archives: Linux/Shell

configure:3855: gcc -V >&5 gcc: error: unrecognized command line option ‘-V’

General:

configure:3866: $?= 0
configure:3855: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3866: $?= 1
configure:3855: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.

Similar errors include:

error: ac_nonexistent.h: No such file or directory,

Such a mistake should be ignored. Keep looking down.

How to Fix gdb error: Failed to import the site module,No module named ‘_sysconfigdata_m’

GDB has been used recently and has been reporting errors:
Failed to import the site module
Traceback (the most recent call last) :
the File “/ usr/lib/python3.5/site. Py”, line 580, in & lt; module>

the main () the File “/ usr/lib/python3.5/site. Py”, line 566, in the main
known_paths = addusersitepackages (known_paths)
the File “/ usr/lib/python3.5/site. Py”, line 287, In addusersitepackages
user_site = getusersitepackages ()
the File “/ usr/lib/python3.5/site. Py”, line 263, In getusersitepackages
user_base = getuserbase # () this will also set user_base
the File “/ usr/lib/python3.5/site. Py”, line 253, In getuserbase
USER_BASE = get_config_var (‘ userbase)
the File “/ usr/lib/python3.5/sysconfig py”, line 595, In get_config_var
return get_config_vars () get (name)
the File “/ usr/lib/python3.5/sysconfig py”, line 538, In get_config_vars
_init_posix (_CONFIG_VARS)
the File “/ usr/lib/python3.5/sysconfig py”, line 410, In _init_posix
from _sysconfigdata import build_time_vars
File “/usr/lib/python3.5/_sysconfigdata.py”, line 6, in < module>
from _sysconfigdata_m import *
ImportError: No module named ‘_sysconfigdata_m’
I only searched the beginning one, which said it had to do with Python. Later, a colleague searched for the last sentence error and found a solution:

# cd /usr/lib/python3.4

# ln  -s /usr/lib/python3.4/plat-i386-linux-gnu/_sysconfigdata_m.py .

 

flAbsPath on /var/lib/dpkg/status failed – realpath

error:

root@nanjing:/home/quantum6/nanjing/doubango# apt install libtool
正在读取软件包列表... 有错误!
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: 无法打开文件  - open (2: 没有那个文件或目录)
E: Problem opening 
E: 无法解析或打开软件包的列表或是状态文件。

solution:

mkdir -p /var/lib/dpkg/{alternatives,info,parts,triggers,updates}

cp /var/backups/dpkg.status.0 /var/lib/dpkg/status

apt update

reinstall, through.