Opened 13 years ago

Closed 10 years ago

#259 closed defect (fixed)

apt on virgin install from setup.exe complains environment not set

Reported by: maphew Owned by: maphew
Priority: major Component: Package
Version: Keywords: pkg-apt
Cc:

Description

After installing a fairly minimal osgeo4w setup (msvcrt, apt, python) apt complains setup hasn't been run:

D:\OSGeo4W\bin\apt list
error: d:/OSGeo4W/etc/setup//setup.ini no such file
error: set OSGEO4W_ROOT and run "apt setup"

For users, a simple apt setup at this point will fix it with no further action necessary.

It seems setup.exe no longer saves a copy of setup.ini in etc. An immediate fix in apt would be to check for .\etc\setup\installed.db instead, which should be guaranteed always present.

Apt itself will still download and put setup.ini in etc. Except for possible confusion for future developers I see no harm in that. It would be worth looking into what setup.exe does now and see if apt should follow suit.

Change History (1)

comment:1 by maphew, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.