这是因为arm官网的arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-linux-gnueabihf交叉编译器不带crypt.h头文件和crypt函数。
编译sudo-1.9.16p2前必须编译安装libxcrypt-4.4.38库,否则sudo命令只能输入/etc/passwd里面的加密后的密码。这是因为arm官网的arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-linux-gnueabihf交叉编译器不带crypt.h头文件和crypt函数。
|
回覆:在fedora42上用arm-gnu-toolchain-14.2交叉编译器编译gcc14.2、gdb14.2和make4.4交叉编译sudo-1.9.16p2,并在幸狐rv1106板子上使用,解决sudo即使输入正确的密码也提示Sorry, try again.的问题:https://blog.csdn.net/ZLK12...
|
回覆:在fedora42上用arm-gnu-toolchain-14.2交叉编译器编译gcc14.2、gdb14.2和make4.4编译安装libxcrypt-4.4.38,这样板子上就有crypt.h了,再编译sudo的话config.h里面HAVE_CRYPT就成立了,就可以使用linux用户本身的密码了。
|
回覆:在fedora42上用arm-gnu-toolchain-14.2交叉编译器编译gcc14.2、gdb14.2和make4.4回复 @巨大八爪鱼:找到原因了。sudo时必须输入/etc/passwd里面加密后的密码,否则会提示密码错误。这是因为板子上没有装crypt库,./configure的时候找不到crypt.h,于是#...
|
|
回覆:【Weekly Topic 2025.08.03】Learning English Through Music: Helpful or Not?4. Can you share an example? Has a specific English song ever taught you a useful new word, ph...
圆环之理
8-4
English Club吧
|
回覆:【Weekly Topic 2025.08.03】Learning English Through Music: Helpful or Not?3. What are the biggest challenges or downsides you've faced (or can think of) when trying to...
圆环之理
8-4
English Club吧
|
回覆:【Weekly Topic 2025.08.03】Learning English Through Music: Helpful or Not?2. What are the main benefits you get (or think you could get) from learning English through m...
圆环之理
8-4
English Club吧
|
回覆:【Weekly Topic 2025.08.03】Learning English Through Music: Helpful or Not?I don't think "Learning English Through Music" is a very efficient method, I only think it has an au...
圆环之理
8-4
English Club吧
|
回覆:Daily Word from TheFreeDictionarycultivator
Definition: (noun) Someone concerned with the...
圆环之理
8-4
English Club吧
|