ubuntu在qmake -project之后提示
Failure to open file: /usr/local/xxx/hello//hello.pro
Unable to generate project file.
Failure to open file: /usr/local/xxx/hello//hello.pro
Unable to generate project file.
需要对该目录sudo chmod 777 hello之后即可解决问题
chmod可以使用八进制数来指定权限,无需再使用指定的权限和用户的字母来进行标识,通过读写执行等3个权限的数字来进行设置
因为文件的权限分为3种用户,分别为u(文件所有者)、g(文件的组用户)、o(其他用户),所以777表示u、g、o都是777的权限
chmod 777 test.txt:表示将test.txt文件的读、写、执行权限赋权给所有的用户。