PDA

View Full Version : Installing 7-ZIP on Bluehost Account



aaelghat
12-26-2008, 09:04 PM
Hi, I use 7-Zip which is a file compression utility. I have a very large number of web pages that I create on a local Windows PC that I upload to BlueHost, and I prefer to use 7-Zip over PKZIP or tgz files because 7-Zip has a much higher compression ratio.

There is a Linux version of 7-Zip. I've installed the software using "method 1" below, but when I upload a .7z file and try to uncompress it on my BlueHost account I get a "Error: Can not open file as archive" message. I receive this even if I use 7-Zip to create a *.tgz file. I'm wondering if I should compile from source, but I'm not an experienced Linux person, and I don't completely understand all the steps mentioned below in installation "method 2".

Have any of you used 7-Zip to uncompress files on your BlueHost account? If so, how did you install the software?

Thanks


BUILD :
-------

If you have downloaded the "bin" package,
use directly the program bin/7za.
(tested on Redhat 9.0, Fedora 2, Mandrake 10.0, Debian 3.0)
As the program is statically linked, its should run on many x86 linux.

If you have downloaded the "source" package,

According to your OS, copy makefile.linux,
makefile.freebsd, makefile.cygwin, ...
over makefile.machine

If you want to make a parallel build : make -j4 -f makefile.parallel_jobs TARGET

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, ...)

make 7zG : to build bin/7zG and its plugins :
- "bin/7z.so" (GNU LGPL + AES code license)
- "bin/Codecs/Rar29.so" (GNU LGPL + unRAR restriction)
make test_7zG : to test bin/7zG (extracting, archiving, ...)

INSTALL :
---------

method 1
--------
- edit install.sh to change DEST_HOME
- ./install.sh : to install
Remark : you must be "root" to install 7za in the directory "/usr/local"

method 2
--------
- 7za is a stand-alone program, you can put this program where you want.
example : cp bin/7za /usr/local/bin/7za

- 7z needs its plugins. You must copy the file 7z, 7z.so
and the directory Codecs in the same destination directory.

- if you want to be able to create SFX archive, copy bin/7zCon.sfx
to the directory where 7za or 7z can be found.

aaelghat
12-26-2008, 09:34 PM
OK, I figured it out. On Windows, I used the -sfx parameter using 7-Zip to create a self-extracting archive, and then I was able to uncompress it on Linux without a problem.

aaelghat
12-26-2008, 10:01 PM
Sorry, I take that back - it doesn't work. Has anyone been able to uncompress files with 7-Zip on a BlueHost account?

Treeluvin
12-27-2008, 01:23 AM
Jeez, the documentation for this was horrible..

Anyway, to get this working on my account I did this:

# wget http://downloads.sourceforge.net/p7zip/p7zip_4.61_src_all.tar.bz2?modtime=1228074742&big_mirror=0
# tar xvjf p7zip_4.61_src_all.tar.bz2
# cd p7zip_4.61
# make
# cp bin/7za ~/bin

This let me create, append and extract archives without a problem.

aaelghat
12-27-2008, 04:11 AM
Thank you! Although I have to sheepishly admit, I discovered the already compiled 7za executable worked as well. The reason I was getting my error is that I wasn't ftp'ing the .7z file in binary mode.

Thanks for such a quick response!