我正在从Linux移植到FreeBSD,并且遇到了::mknod()失败,出现了errno:
[EINVAL] Creating anything else than a block or character spe-
cial file (or a whiteout) is not supported.
但我也在手册页上看到了前面的内容:
The mknod() system call requires super-user privileges.
那么,在Linux和FreeBSD上都能工作的替代调用是什么呢?
发生这种情况的代码
我试图在Xubuntu16.04上安装一个程序(Teensyduino),但是可执行的安装文件有一个.linux64扩展名。我尝试运行以下命令来打开它
sudo ./TeensyduinoInstall.linux64
sudo TeensyduinoInstall.linux64
以及简单的双击文件。前两个屈服错误:
sudo: ./TeensyduinoInstall.linux64: command not found
sudo: TeensyduinoInstall.linux64: command not found
而双击只会打开“打开”对话框。当我跑步时:
ls -l Teens