Re: XPISTUB

Bjorn Pearson <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hello Lee,

As a temporary solution, if you have root privledges, run the installer 
telling it to save (or cache) downloaded files, try to install - it will 
fail again but install files are now on your hd; then start a console and
cd [netscape-installer-dir]/xpi/ # where [netscape-installer-dir] is the 
directory in which you are running the installer (I don't know about rpm 
installs, but it probably resides in /tmp)

unzip xpcom.xpi
cd bin/
cp libxpistub.so / #note: this copies the library to your root 
directory, rm it after the install is complete - this method is a 
security risk

now run the installer, it should install without a hitch (remember to 
remove libxpistub.so from /).  Warning: do not install over a previous 
version of netscape, there are various conflicts which will arise!  Hope 
this helps.


Technical Solution:
If you have the sources:
/mozilla/xpinstall/stub/unix/src2/nsXIEngine.cpp in the function 
LoadXPIStub uses MAXPATHLEN but does not define it - this is why 
installs are failing with  error code ~618 (patch to be submited soon). 
  Near the top of the file add:
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif

Bjorn Pearson.

Lee Mahan wrote:
> I've been attempting to upgrade to Netscape 6.x on my Red Hat 7.1
> machine, but it won't install, keeps saying that it can't find
> xpistub.
> 
> Anyone have a solution?
> 
> 
> ************************************
> This is the final test of a gentleman: His respect for 
> those who can be of no possible service to him.
> 
> --William Lyon Phelps, American educator (1865-1943). 
> ***************************************
> --Lee
>    Design West
> Technology Consultant
> System Administrator
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.