I would like to create a Midnight Commander package containing the binaries and all related files/folders as the following (this is just an example):
$HOME/{FOLDER}/../mc (this will be a folder or subfolder in my home directory) and below will be the structure:
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
So does anyone can help me which parameters I need to use with "configure" to create such a standalone/static package
FYI - I have been playing with the following parameters:
./configure --prefix=$HOME/mc --disable-shared --enable-static
after creating the package (using make && make install) it does give the results I am looking for, cause when I move the folder to a different place, like
$HOME/mytools/mc
I get all sorts of errors like not being able to find the Syntax file, or the help file, etc...
Thanks in advance for your replies
--prefix=$HOME/mcon your./configure, you have toldmcto find all the files it needs in the directory tree based at$HOME/mc/. When you moved the files elsewhere,mccouldn't find them, so, of course you would "get all sorts of errors like not being able to find the Syntax file, or the help file, etc...". Use the desired destination directory in your--prefix=. – waltinator Aug 10 '23 at 00:36