我正在从一个基于Debian的发行版转移到CentOS 7.我有用blowfishencryption的文件,我使用~/.vimrc这个设置在VIM中透明地编辑:
:set cryptmethod=blowfish2
这是我收到的错误:
E474:无效的参数:cryptmethod = blowfish2
但是,我似乎无法在CentOS中find合适的软件包。 我已经安装了以下软件包,但仍然收到错误消息:
$ sudo yum install bcrypt cryptsetup-python libcryptui py-bcrypt
以下是所有似乎相关的软件包:
$ yum search bcrypt Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.nonstop.co.il * epel: mirror.nonstop.co.il * extras: mirror.nonstop.co.il * updates: mirror.nonstop.co.il ============================= N/S matched: bcrypt ============================== libcryptui-devel.i686 : Header files required to develop with libcryptui libcryptui-devel.x86_64 : Header files required to develop with libcryptui rubygem-bcrypt.x86_64 : Wrapper around bcrypt() password hashing algorithm rubygem-bcrypt-doc.x86_64 : Documentation for rubygem-bcrypt bcrypt.x86_64 : File encryption utility cryptsetup-python.x86_64 : Python bindings for libcryptsetup libcryptui.i686 : Interface components for OpenPGP libcryptui.x86_64 : Interface components for OpenPGP py-bcrypt.x86_64 : Python bindings for OpenBSD's Blowfish password hashing code Name and summary matches only, use "search all" for everything. $ yum search blowfish Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.nonstop.co.il * epel: mirror.nonstop.co.il * extras: mirror.nonstop.co.il * updates: mirror.nonstop.co.il ============================ N/S matched: blowfish ============================= perl-Crypt-Eksblowfish.x86_64 : Eksblowfish block cipher php-horde-Horde-Crypt-Blowfish.noarch : Blowfish Encryption Library php-pear-Crypt-Blowfish.noarch : Quick two-way blowfish encryption php-phpseclib-crypt-blowfish.noarch : Pure-PHP implementation of Blowfish py-bcrypt.x86_64 : Python bindings for OpenBSD's Blowfish password hashing code Name and summary matches only, use "search all" for everything
vim 7.4.160附带的CentOS 7。 但cryptmethod = blowfish2需要vim 7.4.401或更高版本 。
无论如何,你可能应该使用全磁盘encryption,并更仔细地审查encryption,如OpenPGP。 cryptmethod = blowfish2的原因首先是cryptmethod =河豚被破坏。 它与任何东西都不兼容。
问题在于CentOS 7搭配VIM 7.4.160, Michael Hampton指出我们需要7.4.401。 在一个评论中,我提到了如何安装后来的VIM,下面是可能跟随我的脚步的完整说明。 所有功劳都归功于迈克尔,以确定问题,并为此列出适当的configure线:
git clone https://github.com/vim/vim.git cd vim/ ./configure --prefix=/usr --with-features=huge --enable-rubyinterp --enable-pythoninterp make sudo make install