Linux-Mint
Vapoursynth 安裝問題
我正在嘗試在 Linux Mint 19.1 上安裝 SVP(SmoothVideo 項目),但在安裝 Vapoursynth 時遇到了問題。當我嘗試執行“從源建構 3rd-party 應用程序 -> Vapoursynth -> #build Vapoursynth!-> make -j4”部分時(可在此處找到:https ://www.svp-team.com/wiki/SVP :Linux ) 我遇到了一個錯誤:
Fatal error: can't create src/core/.libs/libvapoursynth_la-cachefilter.o: Permission denied
這是完整的程式碼:
CXX src/core/libvapoursynth_la-boxblurfilter.lo CXX src/core/libvapoursynth_la-cachefilter.lo CC src/core/libvapoursynth_la-cpufeatures.lo CXX src/core/libvapoursynth_la-exprfilter.lo rm: cannot remove 'src/core/.libs/libvapoursynth_la-cpufeatures.o': Permission denied rm: cannot remove 'src/core/.libs/libvapoursynth_la-cachefilter.o': Permission denied rm: cannot remove 'src/core/.libs/libvapoursynth_la-boxblurfilter.o': Permission denied rm: cannot remove 'src/core/.libs/libvapoursynth_la-exprfilter.o': Permission denied Assembler messages: Fatal error: can't create src/core/.libs/libvapoursynth_la-cpufeatures.o: Permission denied Makefile:1322: recipe for target 'src/core/libvapoursynth_la-cpufeatures.lo' failed make: *** [src/core/libvapoursynth_la-cpufeatures.lo] Error 1 make: *** Waiting for unfinished jobs.... Assembler messages: Fatal error: can't create src/core/.libs/libvapoursynth_la-boxblurfilter.o: Permission denied Makefile:1472: recipe for target 'src/core/libvapoursynth_la-boxblurfilter.lo' failed make: *** [src/core/libvapoursynth_la-boxblurfilter.lo] Error 1 In file included from src/core/exprfilter.cpp:38:0: src/core/jitasm.h: In constructor ‘jitasm::detail::ResultT<float, 4>::ResultT(float)’: src/core/jitasm.h:8533:52: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ResultT(const float imm) : val_(Imm32(*(uint32*)&imm)) {} ^~~ src/core/jitasm.h: In member function ‘void jitasm::detail::ResultT<double, 8>::StoreResult(jitasm::Frontend&, const jitasm::detail::ResultDest&)’: src/core/jitasm.h:8608:67: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] f.mov(f.dword_ptr[f.rsp - 8], *reinterpret_cast<uint32*>(&imm_)); ^ Assembler messages: Fatal error: can't create src/core/.libs/libvapoursynth_la-cachefilter.o: Permission denied Makefile:1479: recipe for target 'src/core/libvapoursynth_la-cachefilter.lo' failed make: *** [src/core/libvapoursynth_la-cachefilter.lo] Error 1 Assembler messages: Fatal error: can't create src/core/.libs/libvapoursynth_la-exprfilter.o: Permission denied Makefile:1486: recipe for target 'src/core/libvapoursynth_la-exprfilter.lo' failed make: *** [src/core/libvapoursynth_la-exprfilter.lo] Error 1
我已經安裝了最新的 Python 和 Cython 並解決了我的一些問題,但這個問題仍然存在。我想我應該以某種方式允許它,但我不知道如何,因為我對 Linux 世界很陌生。
編輯:我通過執行 ‘sudo make clean’ 解決了這個問題,由於某種原因,‘make clean’ 並沒有完全清理它。但現在我面臨一個新問題。名為“vspipe”的東西不斷拋出錯誤。這是錯誤程式碼:
Error compiling Cython file: ------------------------------------------------------------ ... # If we are not using VSScript, do nothing. if self.single: return _environment_state.current = _env_current_stack().pop() def __eq__(self, other): ^ ------------------------------------------------------------ src/cython/vapoursynth.pyx:133:4: Special method __eq__ must be implemented via __richcmp__ CXX src/vspipe/vspipe.o Makefile:2019: recipe for target 'src/cython/vapoursynth.c' failed make: *** [src/cython/vapoursynth.c] Error 1 make: *** Waiting for unfinished jobs....
錯誤消息意味著 Cython 已過時。使用 pip3 更新它。
pip3 install Cython