3

I am trying to create a self extracting file for Windows from Ubuntu 10.04 using 7zip.

I tried these commands:

7zr -sfx7z.sfx a output.exe *.txt

7zr -sfx/usr/local/etc/7z.sfx a output.exe *.txt

Both show this error:

Error:
can't find specified sfx module

System error:
E_FAIL

I have all the .sfx modules on /home/username/.sfx/ because I use them previously with "rar" and it worked fine, but it's not working for 7zip. I also copied 7z.sfx to /usr/local/etc/ to test the second command like shown here but I get the same error.

Why isn't it working?

gragarg
  • 43

3 Answers3

2
PATH="/usr/lib/p7zip:$PATH" && 7z -sfx7zCon.sfx a ~/gnugpg.sfx ~/.gnupg/
tao
  • 1,445
1

The SFX modules need to be in the same directory as the 7z executable. Don't ask why, there's no documentation on it. Good luck getting it to work though, because whenever I try and then run it I get a config file not found error.

Robbie
  • 201
-2

please check that you use make all, then sh install.sh, instead of make, sh install.sh to install 7zip.

make depend   : to rebuild the makefile.depend
        make clean    : to clean all directories
        make          : to build bin/7za
        make sfx      : to build bin/7zCon.sfx (7za can now create SFX archive)
        make 7z       : to build bin/7z and its plugins :
                          - "bin/7z.so" (GNU LGPL + AES code license)
                          - "bin/Codecs/Rar29.so" (GNU LGPL + unRAR restriction)
        make 7zr      : to build bin/7zr
        make all      : to build bin/7za and bin/7zCon.sfx
        make all2     : to build bin/7za, bin/7z (with its plugins) and bin/7zCon.sfx
        make all3     : to build bin/7za, bin/7z (with its plugins), bin/7zr and bin/7zCon.sfx
        make test     : to test bin/7za (extracting, archiving, password ...)
        make test_7z  : to test bin/7z  (extracting, archiving, password ...)
        make test_7zr : to test bin/7zr (extracting, archiving, ...)
Canadian Luke
  • 24,640