openwrt编译错误you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment........

Errors in the translation of openwrt

you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this

Internet to find the solution:

export FORCE_UNSAFE_CONFIGURE=1

or

export FORCE=1

But do not solve the problem! ! !

The use of Linux in the "ll" or "ls -lht"  at the file (folder) of the owner .

Ubuntu@songshuai:~/openwrt$ ll
The total amount of 40 
drwxrwxr the -X-   . 9 the Ubuntu the Ubuntu 4096 10 dated 10  10 : 50 ./ 
drwxr -XR X- 38 is the Ubuntu the Ubuntu 4096 10 dated 10  12 is : 20 is ../ 
drwxrwxr the -X- . 17 the root the Ubuntu 4096 10 dated 10  12 is : 16 OpenWrt /
-rwxrwxrwx   1 Ubuntu Ubuntu 1768 10月10  10 : 22 readme *

Then use the command "su" to switch to the root user then compiled.

Still the same, not resolved! ! !

Then use "chown" command to change my files (folder) is owned by the current user

Ubuntu@songshuai:~$ sudo chown -R $USER openwrt

Note openwrt back / character, otherwise it does not include openwrt directory.

And then view the "ll"

Ubuntu@songshuai:~/openwrt$ ll
The total amount of 40 
drwxrwxr the -X-   . 9 the Ubuntu the Ubuntu 4096 10 dated 10  10 : 50 ./ 
drwxr -XR X- 38 is the Ubuntu the Ubuntu 4096 10 dated 10  12 is : 20 is ../ 
drwxrwxr the -X- . 17 the Ubuntu the Ubuntu 4096 10 dated 10  12 is : 16 OpenWrt /
-rwxrwxrwx   1 Ubuntu Ubuntu 1768 10月10  10 : 22 readme *

Then compiled by the! ! !

Guess you like

Origin www.cnblogs.com/songshuaiStudy/p/11647441.html