Midnight Commander - 创建(独立/静态)包

Midnight Commander - 创建(独立/静态)包

我想创建一个包含二进制文件和所有相关文件/文件夹的 Midnight Commander 包,如下所示(这只是一个示例):

$HOME/{FOLDER}/../mc(这将是我的主目录中的一个文件夹或子文件夹)并且下面将是结构:

mc                   ---> the folder containing all Midnight Commander required files & folders
├── bin              ---> this is a folder
│   ├── mc
│   ├── mcdiff -> mc
│   ├── mcedit -> mc
│   └── mcview -> mc
├── etc              ---> this is a folder
│   └── mc           ---> this is a folder
│       ├── edit.indent.rc
│       ├── filehighlight.ini
│       ├── mc.default.keymap
│       ├── mcedit.menu
│       ├── mc.emacs.keymap
│       ├── mc.ext.ini
│       ├── mc.keymap -> mc.default.keymap
│       ├── mc.menu
│       └── sfs.ini
├── lib              ---> folder containing al required libraries
├── libexec          ---> this is a folder
│   └── mc           ---> this is a folder
│       ├── ext.d    ---> this is a folder
│       ├── extfs.d  ---> this is a folder
│       ├── fish     ---> this is a folder
│       ├── cons.saver
│       ├── mc.csh
│       ├── mc.sh
│       ├── mc-wrapper.csh
│       └── mc-wrapper.sh
└── share            ---> this is a folder
    ├── locale       ---> this is a folder
    ├── man          ---> this is a folder  containing man files)
    └── mc
        ├── examples ---> this is a folder
        ├── help     ---> this is a folder  containing *.hlp files)
        ├── hints    ---> this is a folder  containing *.hint files)
        ├── skins    ---> this is a folder  containing *.ini skin files)
        ├── syntax   ---> this is a folder  containing *.syntax files)
        ├── mc.charsets
        └── mc.lib

那么有谁能帮助我,我需要使用哪些参数与“配置”来创建这样一个独立/静态包

仅供参考-我一直在使用以下参数:

./configure --prefix=$HOME/mc --disable-shared --enable-static

创建包后(使用 make && make install)它确实给出了我想要的结果,因为当我将文件夹移动到不同的地方时,比如

$HOME/mytools/mc

我遇到各种错误,例如无法找到语法文件或帮助文件等...

提前感谢您的回复

相关内容