- 积分
- 126
- 威望
-
- 金钱
-
- 注册时间
- 2015-1-21
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2020-10-22 20:35:00
|
显示全部楼层
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
最后带/无法创建
cp: 无法创建普通文件'/usr/lib/pkgconfig/': 不是目录
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig
这样可以
创建完 运行/usr/local/freetype/bin/freetype-config --ftversion
还是
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression
grep: /freetype2/freetype/freetype.h: No such file or directory
grep: /freetype2/freetype/freetype.h: No such file or directory
grep: /freetype2/freetype/freetype.h: No such file or directory
..
补充内容 (2020-10-22 20:59):
手动在/usr/lib目录下创建pkgconfig
然后运行cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
freetype2.pc复制过去了
补充内容 (2020-10-22 21:00):
创建完 运行/usr/local/freetype/bin/freetype-config --ftversion
还是上面的提示 |
|