1

I currently have an old old version of 7zip installed (4.55 beta) on Solaris 10. It is located in /usr/bin/7z. Found using which 7z

I have downloaded a new version 9.20.1. The README says to edit the install.sh and change DEST_HOME to where I want it installed. The default location is /usr/local So do I just change this to /usr/bin/7z? Will it upgrade/overwrite the old version ok? I want to install this system wide for everyone to use.

  • Is there a 7z package available for Solaris 10? Try searching unixpackages.com/packages . It is far preferable to use the package manager (pkgadd, pkgrm, etc.) than to use some vendor's untrustworthy install script. – jayhendren May 23 '14 at 21:10
  • Thank you! Yes, I did find it there - "p7zip – P7zip is a port of 7z and 7za file archiver programs" It doesn't let me have the package for free though. Now I just need to understand this more, how to first find a p7zip package for solaris and then how to use the pkgadd command. – DemiSheep May 24 '14 at 0:02
  • I am having no luck finding any other p7zip package other than the source package and a linux binary package... (opencsw.org/package/p7zip) – DemiSheep May 27 '14 at 12:40
1

Generally speaking, don't install locally-built stuff directly under /usr, only under /usr/local. Normally /usr/local comes before /usr in the PATH, so that the local installation takes precedence over the system default tool. Some system scripts might set PATH to exclude /usr/local so as to ensure that they're running with the default versions of the system programs.

So follow the README and install with DEST_HOME=/usr/local (so that the executables will be in /usr/local/bin. Make sure that the default PATH value for users and in crontabs has /usr/local/bin before /usr/bin (it should be this way, so that local customizations override system defaults in normal use).

| improve this answer | |
  • Can I use gmake to do this? I am trying to follow the README, I did a cp makefile.solaris_x86 makefile.solaris,but when I do "./gmake makefile.solaris it says "gmake: Nothing to be done for makefile.solaris" – DemiSheep May 27 '14 at 12:39
  • Hm, seems the binary is in this package I have. I ran ./install.sh making sure DEST_HOME was /usr/local which it was already, I see the following (several of the same): -installing /usr/local/bin/7za ./install.sh: strip: not found -- what does that mean?? – DemiSheep May 27 '14 at 13:08
  • So version 4.55 beta of 7zip already has 7z, 7za and 7zr in /usr/local/bin...that seems to be causing the strip messages....maybe?? When I do "which 7z" it shows /usr/bin/7z – DemiSheep May 27 '14 at 13:25
  • 1
    @DemiSheep It would be gmake -f makefile.solaris. The message strip: not found indicates that you lack the strip program, which removes debugging information from executables. This is not critical (all you save by stripping is a bit of disk space, and maybe a tiny bit of load time (I don't know if that's the case on Solaris)), but it might be a sign that you lack other compilation tools or it might break the makefile. I don't know how to install strip on Solaris, it's presumably part of some development package. – Gilles 'SO- stop being evil' May 27 '14 at 13:27
  • First, thanks for helping such a noob as myself. Second above where I mention a binary it was a linux package so I didn't proceed further with it. Third, when I do "./gmake -f makefile.solaris" I get "gmake: *** No targets. Stop." I'm not quite sure what I need to add to my makefile, so much for thinking it would be mostly setup already. :) I did a "cp makefile.solaris_x86 makefile.solaris and am using this newly created makefile. – DemiSheep May 27 '14 at 16:55
0

Another idea you could do is to just copy the makefile.solaris_x86 to Makefile and then run gmake directly. That'll take care of it.

Another suggestion is to check blastwave.org and opencsw.org to see if they might have a newer package available - you might have done this already, I can't tell from what you've said so far.

Hope you can get a good version of 7zip installed to your needs.

EDIT: Sorry, misread your question. I missed that you're running Solaris 10. You may want to search for a package, or see if you've installed the full developer tools onto your system. However, strip is a stage that can be safely skipped.

| improve this answer | |
-1

In Solaris 10 X86 just install OS patch 137322-02 and in SPARC 137321-02 and you are done.

| improve this answer | |
  • 1
    Hi and welcome to the site. We like answers to be more comprehensive here. Please edit your answer and include the commands needed to install the updates you mention and perhaps an explanaton of what they will install. – terdon Dec 25 '14 at 9:09
  • Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. – cuonglm Dec 25 '14 at 10:45
  • @cuonglm How is this answer a "thank you"? – Hauke Laging Dec 25 '14 at 14:06
  • @HaukeLaging: my mis-click. It's only a too short answer. – cuonglm Dec 25 '14 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.