Re: How to change the way to the installation path for OpenOffice , on a Solaris machine?

tora - Takamichi Akiyama <[email protected]> Tue, 12 Apr 2011 22:35:33 +0900
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
Hi,

On 2011/04/12 21:34, Simona Pasca wrote:
> My destination directory , ( the directory where I need that openOffice tool to be install ) is:
> /opt/swe/tools/ext/openOffice/openoffice-3.3.0/sparc-solaris2.8/
>
> I need to have the tool under this location because it has to be use after under "/opt/swe/ "

I see. Thank you for the information.

> The main purpose for what I have to install OpenOffice on a Sparc-Solaris2.8 machine, is that there are some teams that require this, and they
> want to use this tool on this architecture ( Sparc-Solaris2.8 ).

Well...

> So, you suggest me:

That's a way for OpenOffice.org 2.4.3, not for 3.3.0.

As I mentioned in my previous mail like this
  BTW, http://www.openoffice.org/dev_docs/source/sys_reqs.html says
  OpenOffice.org 3 ... Solaris 10 OS or higher
  OpenOffice.org 2 ... Solaris 8 OS or higher

  OpenOffice.org 2.4.3 is available at "Archive" mirror servers.
  http://distribution.openoffice.org/mirrors/

You could install files of OpenOffice.org 3.3.0 into any version of Solaris machine.

The requirements
  OpenOffice.org 3 ... Solaris 10 OS or higher
   implies that the installation binary file is complied on a Solairs 10 machine.
     The compiler on the machine had linked files with /lib/libc.so.1 of Solaris 10.

  Consequently, when you try to start OpenOffice.org 3.3.0 on their Solaris 2.8 machine,
  you would be notified with an error message produced by ld.so far before a process of OpenOffice.org starts.
  Version incompatible or things like that.

Do they really need OpenOffice.org 3.3.0?

If so, ...
http://wiki.services.openoffice.org/wiki/Compiler_versions_used_by_port_maintainers_and_release_engineers
says ...

  Solaris Sparc 	Solaris 10 and newer 	Sun Studio 12 / C++-5.9 patch level Dec. 08

I have no idea about whether Sun Studio 12 can be installed into Solaris 2.8.
Let me see...

http://download.oracle.com/docs/cd/E19205-01/820-0273/6nc1a9dj2/index.html#gempq
says

  Operating system  Solaris 9 or Solaris10 1/06

Sigh, downgrading version of compiler, i.e. Sun Studio 12 to a prior one, is not recommended in case of when we try to compile source code of OpenOffice.org which has already migrated from the previous version of compiler to a new one.

Well, I am sorry, there is little hope.

Anyway, I would say...
  1) install OpenOffice.org 3.3.0 into the default directory, /opt, using "setup" first and confirm if it works on a Solaris 2.8 machine.
  2) install OpenOffice.org 2.4.3 in the same way.
     http://ftp.rz.tu-bs.de/pub/mirror/openoffice-archive/stable/2.4.3/


> - to untar the archive
>
> $ gunzip -c /opt/swe/install/OOOo_3.3.0_Solaris_Sparc_install-wJRE_fr.tar.gz | tar xvf -
>
> - go in the directory ... /packages , that appear after I have dezarchivate the archive
>
> $ cd ..../packages
>
>
> - this step I don't understand very well what it is doing ??
>
> $ perl -pe 's/ask/nocheck/' /var/sadm/install/admin/default>  /tmp/nocheck

It's a simple magic. Without this or -a option, you will be prompted with Yes/No each time the packadd command tries to process a package. Actually, "setup" creates this type of file by itself and use in a similar way.

> - and then create the directory where I want the tool to be install ?
>
> # mkdir /alternative

I think so.

> - and then give this command:
>
> # pkgadd -R /alternative -a /tmp/nocheck -d . openofficeorg-core openofficeorg-[^0-9]

Please find what packages are there. A package on Solaris -- Linux equivalent is a well-known RPM -- is normally a directory. A name of directory is usually the same as a name of package.
You would need to place name of packages from left to right following the package dependency.

> But before this command I don't need to run ./setup command ?
> Or this command "pkgadd " will make the installation of openOffice in "/alternative  " location without giving "./setup" before?

What "setup" will do is to automatically kick a sequence of "pkgadd" commands one by one.
You can do it by hand with fine tuning options, instead.

Best regards,
Tora
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help