Ticket #61 (new defect)

Opened 3 years ago

Last modified 20 months ago

Dependencies not automatically selected

Reported by: cnielsen Owned by: osgeo4w-dev@…
Priority: major Component: Installer
Version: Keywords: grass
Cc: ghuby

Description

For package version: grass-6.4.0RC3-2 Several required packages were not automatically selected including: curl, expat, hdf5, geos, libjpeg, libmysql, libpq, netcdf, ogdi, and xerces-c.

Without them an error occurred on: g.region -p

(wasn't sure if this was an installer issue or a package issue)

Change History

  Changed 3 years ago by hamish

note that all those (except for curl?) are actually GDAL dependencies, not directly GRASS ones.

Hamish

  Changed 3 years ago by hamish

  • keywords grass added

  Changed 3 years ago by cnielsen

  • summary changed from Missing dependencies for Grass-6.4.0RC3-2 to Dependencies not automatically selected

Quite right (and curl is a gdal dependency too). I completely wiped the osgeo4w directory to start again, and it turns out the problem is that no dependencies are selected at all. I used a new empty directory with a just downloaded version of the installer. However, I haven't been able to replicate this on other computers.

  Changed 3 years ago by warmerdam

I would love to know a set of steps to reproduce this. I frequently wipe the C:\OSGeo4W tree on machines, and then reinstall and I have no problem with dependencies not being selected so I don't understand why some people do seem to run into this.

  Changed 3 years ago by hamish

In  http://download.osgeo.org/osgeo4w/setup.ini both gdal and gdal16 both "requires:" curl, expat, etc. so it doesn't seem to be a packaging mistake, more of a cygwin installer problem...?

perhaps if the downloads get interrupted part way through the install process it continues anyway with what it's got??

ISTR we've seen a very similar problem with the GRASS cygwin installer in the past.

Hamish

  Changed 3 years ago by cnielsen

I finally managed to reproduce this (accidentally). I was deleting the osgeo4w tree as I opened the installer to re-install from scratch. Presumably some file got deleted as it was being used, or written and then erased, etc. By restoring the /osgeo4w/etc and /osgeo4w/var directories from the trash I managed to reverse the effect, and by copying those folders to another affected computer I was able to fix that one too. I'm still not sure which file in those folders was responsible, or why erasing the entire osgeo4w tree (without starting the installer) did not fix the problem.

  Changed 3 years ago by cnielsen

On further investigation it appears to be the \OSGeo4W\etc\setup\installed.db file that is causing the problems.

  Changed 3 years ago by warmerdam

The installer loads the installed.db file contents at startup and writes them back out when it terminates. This causes significant problems if you delete the OSGeo4W tree while the installer is running - mostly because it saves an installed.db file indicating many packages are installed that are not actually installed.

For now the only advice I have is to ensure that the installer is terminated before clearing the tree.

follow-up: ↓ 10   Changed 3 years ago by cnielsen

This can be resolved by removing the registry entries written by the osgeo installer:

[-HKEY_LOCAL_MACHINE\Software\OSGeo] [-HKEY_CURRENT_USER\Software\OSGeo]

Or for win64 [-HKEY_LOCAL_MACHINE\Software\Wow6432Node\OSGeo] [-HKEY_CURRENT_USER\Software\OSGeo]

Although an uncommon problem, perhaps something could be changed in the osgeo4w installer to stop it from reading the registry if no installed.db file is found.

in reply to: ↑ 9   Changed 3 years ago by cnielsen

Replying to cnielsen:

This can be resolved by removing the registry entries written by the osgeo installer:

My mistake, this doesn't resolve the issue. This forces the installer to download the grass package but still no dependencies are selected.

To be clear, once the problem begins, even with the installer not running, clearing the tree does not resolve this issue.

  Changed 20 months ago by ghuby

  • cc ghuby added

Hello,

I met exatcly the same problem. The computer is using Windows XP Pro x64 Edition Version 2003 SP2. OSGeo4W had never been installed before on this computer.

I downloaded the setup from the web site (30/06/2010).

I choosed "advanced installation".

When I check "gdal" box, no dependency is set.

I checked the setup.ini file which looks complete.

I installed OSGeo4W on other computers without any problem before (some months before).

Note: See TracTickets for help on using tickets.