Index . 블로그창고 . Any comments?

\cat grass

DO NOT WRITE ABOVE THIS NOTICE!

This is a Wiki page for my Cygwin GRASS distribution itself. If you have general questions about GRASS or winGRASS, please post to GRASS mailing lists. You'll get better answers from more developers and users.

Cygwin GRASS is deprecated by MS-Windows native GRASS (winGRASS). If you have questions about new packages, please visit wiki_grass.

Please read Wiki Rules.


FAQ

I cannot find any GRASS related packages when installing Cygwin.

You forgot to add http://geni.ath.cx/grass to the user URL list as described in the step 3.

http://geni.ath.cx/grass is not accessible. Can I still install GRASS using Cygwin setup.exe?

Yes, setup.exe does not access http://geni.ath.cx/grass but http://geni.ath.cx/grass/setup.ini. The web server does not let you see the list of all the files in a directory for security reasons.

When I run grass60.bat, I get the following error message: 'run' is not recognized as an internal or external command, operable program or batch file.

grass60.bat assumes that you installed Cygwin on the C drive, so you need to edit grass60.bat file (around 20th line) if you didn't.

SET CYGWIN_ROOT=d:\cygwin

I get the following error message: Unable to Locate Component. This application has failed to start because pq.dll was not found.

pq.dll has recently been renamed to cygpq.dll, so you may want to find and copy pq.dll to cygpq.dll. Recent versions of Cygwin/GRASS package has been built with the latest PostgreSQL library and you should have no problem with this.

What is the EPSG code?

GIS map data requires a projection for mapping purpose. The EPSG code specifies a projection with which a new location is created. Check if you have /usr/share/proj/epsg file. If you don't, install PROJ package from cygwin setup. See epsg for more detail.


hello,

I am trying to install GRASS and I don't understand what is an EPSG In the settings box I need to put something in the EPSG-codes file and EPSG code number (copying the 4004 from the install page doesn't work)

thanks for any help

bja by the way the link to the wiki_rules page didn't work either so sorry if i'm breaking a million rules

GIS map data requires a projection for mapping purpose. The EPSG code specifies a projection with which a new location is created. Check if you have /usr/share/proj/epsg file, if you don't, install PROJ package from cygwin setup. -- Huidae Cho

Hello,

would be fine, but I get an invalid or corrupted certifaction from Freibrug.

hmm.. write Mr. Lechner a email?

THX Hendrik

That may help you :-) -- Huidae Cho

Huidae,

Does the make any sense?

Startxwin.sh and grass60.bat both export 127.0.0.1:0.0, startx does not, using Xwin default instead. If 127.0.0.1:0.0 directs output to the local machine, display 0 and xserver 0, than:

startxwin.sh -- start command is XWin -multiwindow -clipboard -silent-dup-error, using 127.0.0.1:0.0 startx -- start command is X :0 -multiwindow -clipboard, using defaults

Now, when d.mon starts a graphics display -- is that display a new additional display, xserver or window? If d.mon starts a additional display or xserver, would that be in conflict with :0.0 and thus causing XWin to crash when started with startxwin.sh or grass60.bat?

Dick

No, the GRASS monitor is just a window. The display in X-Window is your monitor, so two things are different. To my surprise, mine (both 6.0.0 and 6.1.CVS) is working fine. I'll investigate it more. -- Huidae Cho

Hello,

I get gis_set.tcl interface (blank)when I run grass60.bat.

How can I make my cygwin grass run?

Regards

Jithesh

Can I see your screenshot? You can upload an image file here. Please read wiki_rules before uploading. -- Huidae Cho

Hi,

After several unsuccessful tries to install/run Cygwin+Grass I found out that Cygwin MUST(!) be installed in C:\cygwin or D:\cygwin or XXX:\cygwin, otherwise the batch files will not start and will not find certain libraries. So, it is obviously not possible to install cygwin in C:\programs\Cygwin or any other nested path. The reason seems to be that there are a lot of more or less hardcoded paths like "\cygwin" in the batch files, which can refer to c:\cygwin or d:\cygwin, but not to f.e. c:\programs\Cygwin.

Would be nice to find this warning on the installation page. I read some questions above that refer to exactly the symptoms I experienced before myself.

Matthias

In your case, you need to modify grass60.bat. Open the file and read comments at the beginning. I think I need more detail documentation. Thank you. -- Huidae Cho

Hi again, After having solved above problem I created a new Location from EPSG. I entered/chose: Name of new location: germany Database: /home/grass/test/test1 EPSG location: /usr/share/proj/epsg EPSG code: 4004 (I tried some other as well) Then I restarted Grass as required. It shows: Location: 280.tmp (not "germany"!) Mapset: PERMANENT If I try to enter Grass it says "Not a valid mapset" and the GRASS GIS Manager does not open. What Am I doing wrong?

Matthias

That's normal. You should change Location name yourself. I think this could be improved before 6.0 release. -- Huidae Cho

Huidae,

This works for me. Change the second line in the grass60.bat to: SET DISPLAY=:0. Sill one other small annoyance in that the xserver fails to shut down automatically after grass is exited. Still must shut it down with the tray icon.

Dick

Yes, X-Window does not exit automatically for next run. But you may not have any problem with it. This is a cygwin issue. -- Huidae Cho

Hi, I'm trying to run grass after successfull install. but when i run grass60 script and create location and run ENTER GRASS, following message appears: unable to locate ps.map...

what i'm doing wrong? duro

I think you have a wrong version of the gdal library. If you installed grass 6.0.0, then you need grass/gdal-grass6.0.0-1.2.3-1.tar.bz2. -- Huidae Cho

Unlike grass5.7 , grass6.0 works within KDE-cygwin http://kde-cygwin.sourceforge.net/ Using the console within KDE3.1., grass6.0 starts with the grass60.bat command.

Ted Nebitko

Thank you for information. You don't have any problem with 6.0.0? -- Huidae Cho

There appear to be two versions of gdal-grass6.0.0-1.2.3-1.tar.bz2. The one downloaded from the Cygwin setup works for me, but the one you have referenced below produces the error message "application failed to start because libgrass-gis 6.0.0 dll was not found". However, the version you referenced below works within the KDE-cygwin setup that I mentioned above. The error message appears after the display manager is loaded.

The two should be the same because the cygwin setup installs the file mentioned below. -- Huidae Cho

When you check the properties of each, they have different modified dates and sizes. I installed the referenced file and got the error message. When I reinstalled the Cygwin setup file, it worked properly.

I'm not sure which files you mean. One is gdal-grass6.0.0-1.2.3-1.tar.bz2 and the other is one that is installed with "grass" or "grass-cvs" package? If you're talking about the "grass" package, as you can see in setup.ini, gdal-grass6.0.0-1.2.3-1.tar.bz2 is installed.

Could you show me modified dates and sizes for both? -- Huidae Cho

The one from the Cygwin setup has a modified date of 3/11/2005 and is 2.36 mb. The referenced file was modified 3/18/2005 and is 2.44 mb.

The exact numbers are needed to know which files you mean. I have total five gdal files so far:
  • 2915270 gdal-1.2.3-cygwin.tar.gz
  • 2975880 gdal-1.2.3-grass-6.0.cvs-cygwin.tar.gz
  • 2563784 gdal-grass6.0.0-1.2.3-1.tar.bz2
  • 2479417 gdal-grass6.0.cvs-1.2.3-1.tar.bz2
  • 2563662 gdal-grass6.1.cvs-1.2.3-1.tar.bz2

Both files are gdal-grass6.0.0-1.2.3-1.tar.bz2. How do you find the exact number ? I do not have any problems, and grass6.0 works with the file originally downloaded via the Cygwin setup.

Hmm.. What's going on here? Then can you upload the two files with different names so that I can check them? -- Huidae Cho

Hi, when i start the graphic interface the software alert me and stop because don't find libgrass_gis.6.1.cvs.dll

What Can I do? Tank

Roberto

You installed a wrong version of the gdal library. If you installed 6.0.0, you need grass/gdal-grass6.0.0-1.2.3-1.tar.bz2. -- Huidae Cho

17. MAR 2005

Hi Huidae, I installed Grass 6.0 stable and aditionaly 6.1 CVS under Windows 2000. Both versions work until I try to start the Grassmonitor. Than i am faced with exactly the same problems as mentioned above by Dick Martin. The Monitor-Window is white empty and the system hangs.

Working grass in a new session, the NVIZ - Monitor is starting successfully. Do you know how to solve the disfunction?

Best Regards, Bernt B.kraemer t-online de

You cannot install both versions at the same time because the GDAL library has to be linked to a certain version of grass. For this reason, there are several versions of GDAL. If you really need that, you have to compile GDAL yourself to work around this problem and build GRASS again with the corresponding version of GDAL. But if GDAL is built as a DLL, it would be more difficult. -- Huidae Cho

18. MAR 2005

Hi Huidae,

thank you for answering to my question. After **completly** uninstalling cygwin and grass I installed it again, but only grass6.1 cvs. The Problem I have is still the same: the grassmonitor will not work. It remains white empty and the system hangs.

Do you have any idea what to do to make the monitor work?

Best Regards, Bernt

B.kraemer@t-online de

Dick has solved the problem by modifying grass61.bat. You can download it. By the way, the grass monitor is white empty by default :-). What do you mean by the system hangs? You cannot type anything in xterm? -- Huidae Cho

Hi,

I'm trying to install GRASS GIS under Windows XP SP2, but for some reason the Cygwin setup hangs during post-installation. When I click Cancel, it says setup is complete, though nothing works. I've already searched the Internet to find an answer to my question, but I only found other people having this problem... Any help?

Are you sure that the setup did hang? How long did you wait to decide to cancel installation. FYI, setup sometimes fails for no apparent reasons. In that case, just trying again usually works. -- Huidae Cho

I'm pretty sure the setup did hang, because nothing happened for 30 minutes (unless post-installation really takes that long). I've tried to install Cygwin four times now, and the file I seem to have trouble with is update-info-dir.sh. Although it's copied correctly, it also seems nothing happens when I execute "sh /etc/postinstall/update-info-dir.sh" from the Cygwin bash.

UPDATE 22. MAR 2005: I've got the program running now - Norton Antivirus was blocking the post-installation. Thanks for your help anyway!


20. MAR 2005

Hi Huidae,

thank you for giving me that hint. Now the Grass-Monitor is working as I expect it to do.

Best Regards, Bernt

B.kraemer@t-online de


28.3.5

Hello,

I get error message when I reach step 9 mention at http://geni.ath.cx/grass.html I captured error message grass-start.gif

I have libgrass_gis.6.0.0.dll in lib directory.

any suggestion for me..

Best Regards, Wirote Laongmanee

wirotela gmail com

I got it; I copy libgrass_gis.6.0.0.dll to libgrass_gis.6.1.cvs.dll and do with another dll file same way, it work!! -- Wirote

Hmm.. That may not be a correct way to fix the problem. There are two versions of gdal. One is linked to grass 6.0.0 and the other is linked to 6.1.cvs. You seem to install both versions of gdal or grass, but you cannot install both versions without any problem because two gdal versions conflict with each other. If you installed both grass and grass-cvs, uninstall grass, grass-cvs, gdal-grass, gdal-grass.cvs and reinstall either grass or grass-cvs (just one of them). -- Huidae Cho

But I downloaded and installed only grass 6.0.0, I never touch any file version 6.1.cvs. I will check out any problem and post here when occure. -- Wirote

Then it can be my fault. I'll check it out. Thank you. -- Huidae Cho

29mar05

I have the same problem as Matthias!

So, is it "normal" that it isn't running this way? And is there a fix to get it running? I renamed the *.tmp file to 'germany' and i got the same error...

greetings Tom

Could you show me the screenshot? -- Huidae Cho

29mar05 I got into the same problem as eg Matthias and Tom, but the new gdal got it working (copied it to the cygwin / and tar -xjf ed it) I have also never used any 6.1 version, but I had tested the 6.0 betas before installing 6.0 through the cygwin setup, so something may have been left from them.

But, I would also like to propose a little change to the grass60.bat file: Add a -title grass60 parameter to xterm to make it easier to find it when going through the windows i.e. change the last line to:

run xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -title grass60 -e /usr/bin/bash -l grass60

greetings and thanks!

Morten Sickel (cpan sickel net)

I found that grass 6.0.0 package is broken. I'll fix it and update grass60.bat too. Thank you. -- Huidae Cho

07apr05

Hi,

I installed cygwin and grass 6.0 packages, started the batch. The grass window appears for a second and disapears again. While installing cygwin and grass packages I had several error messages that the shell can not access certain memory adresses. But cygwin runs normal despite the messages.

Best regards and thanks!

Then try the following:
  1. Run c:\cygwin\usr\X11R6\bin\startxwin.bat. xterm will open.
  2. Type "grass60" in the xterm.
Does it work? -- Huidae Cho

It is sure a cygwin problem. Look here: http://www.mail-archive.com/cygwin@cygwin.com/msg52926.html

I uninstalled cygwin completely, deleted all the dowloaded files and installed cygwin once more with the same effect. The error messages came while a postinstallation package was running in the last seconds of the installation setup, so I uninstalled it.

Now I see the same error messages while starting shalls of cygwin but the grass runs, also the xserver runs without further problems. I hope that cygwin fixes it quickly. I didn't tested grass further, but the window based on the xserver runs.

Best regards and thanks once more!


09apr05

hello huidae,

I'm trying to run grass after successfull install. but when i try to create my first location with ESPG codes i get the message "bad variable name" and that libgrass_gis.6.1.cvs.dll could not be found. but i never installed the 6.1.cvs version. this is my first grass attempt i selected (as you have shown on your web page) the 6.0.0 version. i also checked my gdal libaray, in my c:\download i can find "gdal-grass6.0.0-1.2.3-1.tar.bz2".

what i'm doing wrong? roland

Do you have grass-6.0.0-2.tar.bz2 in c:\download? If so, it should be fine. If you have grass-6.0.0-1.tar.bz2, you need to reinstall grass. -- Huidae Cho

10apr05

i have grass-6.0.0-2.tar.bz2 in c:\download. but i still have the same problem, when i'm trying to create a new location the system is asking for libgrass_gis.6.1.cvs.dll??

roland

*OK*. Then try the following:
  1. Run c:\cygwin\usr\X11R6\bin\startxwin.bat
  2. In xterm, execute:
    grass60
    cd /usr/local/bin
    cygcheck * | grep libgrass_gis.6.1
    cd /usr/local/lib
    cygcheck * | grep libgrass_gis.6.1
    cd /usr/local/grass6.0.0/bin
    cygcheck * | grep libgrass_gis.6.1
    cd /usr/local/grass6.0.0/lib
    cygcheck * | grep libgrass_gis.6.1
    
  3. You can check which files require libgrass_gis.6.1.cvs.dll this way. Can you copy and paste the output of the above commands?
-- Huidae Cho

17apr05

hello, here is the output from the above commands...

Roland@Bernhard /usr/local/bin
$ cygcheck * | grep libgrass_gis.6.1
Error: could not find libgrass_gis.6.1.cvs.dll

Roland@Bernhard /usr/local/lib
$ cygcheck * | grep libgrass_gis.6.1
Roland@Bernhard /usr/local/lib

Roland@Bernhard /usr/local/grass6.0.0/bin
$ cygcheck * | grep libgrass_gis.6.1
Error: could not find libgrass_gis.6.1.cvs.dll

Roland@Bernhard /usr/local/grass6.0.0/lib
$ cygcheck * | grep libgrass_gis.6.1
Error: could not find libgrass_gis.6.1.cvs.dll

roland

Hmm... I cannot see file names. Try the following:
  1. Run c:\cygwin\usr\X11R6\bin\startxwin.bat
  2. In xterm, execute:
    grass60
    for i in /usr/local/bin /usr/local/lib /usr/local/grass6.0.0/bin /usr/local/grass6.0.0/lib
    do
    	cd $i
    	for j in *
    	do
    		if cygcheck $j | grep libgrass_gis.6.1
    		then
    			echo $i/$j
    			md5sum $i/$j
    		fi
    	done
    done
    
-- Huidae Cho

hello Huidae Cho

here is the output from your lines above:

Roland@Bernhard ~
$ for i in /usr/local/bin /usr/local/lib /usr/local/grass6.0.0/bin /usr/local/grass6.0.0/lib
> do
> cd $i
> for j in *
> do
> if cygcheck $j | grep libgrass_gis.6.1
> then
> echo $i/$j
> md5sum $i/$j
> fi
> done
> done
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/bin/cyggdal-1.dll
1c9509fb375bd67e1c641382405c0ee3 */usr/local/bin/cyggdal-1.dll
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/bin/gdal_contour.exe
c24bbda3dcea74aa25425796588201e0 */usr/local/bin/gdal_contour.exe
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/bin/gdal_translate.exe
d395b35a5a596ef003a2e4deb8f950ba */usr/local/bin/gdal_translate.exe
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/bin/gdaladdo.exe
d13ec05c77eb340ee781f2d31a829900 */usr/local/bin/gdaladdo.exe
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/bin/gdalinfo.exe
76728ad9c3bb440a25bc4f29302dca25 */usr/local/bin/gdalinfo.exe
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/bin/gdaltindex.exe
b2ed2f1ca5cadd840cdcd9dbbf4b7237 */usr/local/bin/gdaltindex.exe
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/bin/gdalwarp.exe
a997f2cc74f824fb5ab48a3f59d70f35 */usr/local/bin/gdalwarp.exe
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/bin/g.proj
a53de0db099f7c83e192e7725a94b24e */usr/local/grass6.0.0/bin/g.proj
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/bin/r.in.gdal
0860de1f8818c95e2bb8ae6bf37f71a1 */usr/local/grass6.0.0/bin/r.in.gdal
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/bin/v.external
af31890186b780d6d605058724ee92e1 */usr/local/grass6.0.0/bin/v.external
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/bin/v.in.ogr
563d7698aaf287ca8fdf1f68da11f855 */usr/local/grass6.0.0/bin/v.in.ogr
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/bin/v.out.ogr
e9abbf72c1ecf93255bf1c7c4e9c9a97 */usr/local/grass6.0.0/bin/v.out.ogr
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/lib/libgrass_gproj.6.0.0.dll
94fee7936d98b9532358218f8bb29589 */usr/local/grass6.0.0/lib/libgrass_gproj.6.0.0.dll
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/lib/libgrass_interpfl.6.0.0.dll
a18c5ed5f9cbfac3d3bd71522eaec9e0 */usr/local/grass6.0.0/lib/libgrass_interpfl.6.0.0.dll
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/lib/libgrass_ogsf.6.0.0.dll
a34fe21115dc55acc3d0da632fffaa40 */usr/local/grass6.0.0/lib/libgrass_ogsf.6.0.0.dll
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/lib/libgrass_sites.6.0.0.dll
2795c68a5d68b461a75e84cc0f129f67 */usr/local/grass6.0.0/lib/libgrass_sites.6.0.0.dll
Error: could not find libgrass_gis.6.1.cvs.dll
/usr/local/grass6.0.0/lib/libgrass_vect.6.0.0.dll
baa28c5af6025cea32ce3501ccd4fc83 */usr/local/grass6.0.0/lib/libgrass_vect.6.0.0.dll

Roland@Bernhard /usr/local/grass6.0.0/lib $ --Roland

For some unknown reasons, gdal for 6.1.cvs was installed on your machine. Download grass/gdal-grass6.0.0-1.2.3-1.tar.bz2 into c:\download and install it:
  1. Open xterm
  2. Execute the following:
    cd /
    tar xvfj /cygdrive/c/download/gdal-grass6.0.0-1.2.3-1.tar.bz2
    
  3. That's it
-- Huidae Cho

22 april 2005 Hi,

I'm trying to install only the 6.1.cvs version of cyggrass and I have an error, which is coming each time I tried to reinstall everything (I deleted cygwin folder + download folder). The error I have is :

Cleaning up temporary files.... Starting Grass... >>not available< /GRASSDATA

/GRASSDATA is my own gisbase where I put my locations. After that, the gui is coming, where I have to choose a location and a mapset. A strange thing is that the browser open dialog for database doesn't allow to view correctly the tree folder. There always are a double "/" (ex: "//GRASSDATA"). After that, I click on the "Enter Grass" button and grass are beginning to start normaly. But when the grass manager are opening, juste after the picture, I have this error, which is a pop-up windows with only a Ok button :

http://geni.ath.cx/wiki_cygwin_grass/1114433800.error.jpg

title : Error in startup script
 child process exited abnormally
   while executing
 "exec ps.map -p"
   (procedure "DmPrint::init" line 14)
   invoked from within
 "DmPrint::init"
   (procedure "main" line 34)
   invoked from within
  "main $argc $argv"
 (file "/usr/local/grass6.1.cvs-i686-pc-cygwin-01_04_2005/etc/dm/d.m.tcl" line 976)

After cliked on Ok button of the error's window, the manager doesn't open and I only have the shell. When I try to do the command "d.m &" to re-open the gis manager, I have exactly the same error. If I try to do the command "d.mon start=x0", I have this error message :

*GRASS 6.1.cvs (spearfish):~ >d.mon start=x0

*>>not available< /GRASSDATA

*1+ Exit 1

*GRASS 6.1.cvs (spearfish):~ >

If I change the /GRASSDATA by anything, I have the same error.

BUT

if I start grass with the command "grass61 -text", it works ! I have to manually enter the good location and the mapset, and the "d.m &" works correctly.

So, what can I do to solve this error ?

I also want to say that I know an another guy which wanted to install grass on cygwin plateform and he had exactly the same error.

any response or help could be appreciated...

Jérôme Martin

Then check your ps.map and cyggdal-1.dll like the following:
  1. Open xterm
  2. Start grass -text
  3. Execute cygcheck /usr/local/grass6.1.cvs-i686-pc-cygwin-01_04_2005/bin/ps.map | grep libgrass_gis.6.1: there shouldn't be any message.
  4. md5sum /usr/local/bin/cyggdal-1.dll: if this is not 1c9509fb375bd67e1c641382405c0ee3, you installed a wrong version of gdal. In this case, please let me know what you did when installing 6.1.cvs.
-- Huidae Cho

25apr05

I did exactly what you said, and I have the good result : no message with cygcheck and the checksum md5 is exactly like you said. To install 6.1.cvs, I install the all version of cygwin, without the cyggrass url. After that, I followed the instructions for "Alternative installation for 6.1 CVS". I downloaded all file given in the mark (4) and I successfully install exactly as written in the mark (5). But I always the same error describe above. So I don't know what to do... --Jérôme Martin

What happens if you execute ps.map directly in xterm? It must display some errors. Regarding /GRASSDATA, did you create c:\cygwin\GRASSDATA directory, not c:\GRASSDATA? -- Huidae Cho
  1. If I execute ps.map directly in xterm, I have bash: ps.map: command no found
  2. If I execute ps.map in xterm after starting "grass61 -text", I have the ps.map window which opens.
  3. If I execute ps.map in xterm after starting "grass61 -gui", I have this error : ">>not available< /GRASSDATA"
  4. The "GRASSDATA" folder in the root folder "/" as been done with the mkdir command. So the windows path is "c\cygwin\GRASSDATA" obviously.

I don't understand, because when I reinstall everything again from cygwin to grass from the cygwin-setup, and I always have this error. I'm surprising to see that no body have this same error !! Nobody install grass cvs with cygwin ??

Hmm... I'm clueless. Try this CD image: https://www.geographie.uni-freiburg.de/~mlechner/CygwinGRASS/. -- Huidae Cho

25 april 2005

Hi! I have installed GRASS+Cygwin and I have the same problem as Mathias Tom and Morten Sickel : I create a location from EPSG, I reboot GRASS (a message appears : "Test: And: Unknown operand". I select the new location and click on the accessible mapset call "Permanent". Then, as I click on Enter Grass, the following message appears : "Warning, this is not a valid Mapset"

Morten Sickel gave a solution but to be honnest I haven't understood what he meant :(

Please help !

--Chico Torpille

What did Morten Sickel say? I don't see any message from him. -- Huidae Cho

29 april 2005

HI i have the identical problem... any solution?


2 May 2005

HI I get the same errors as Jerome. The error lists the location is not available while executing "exec.ps.map -p"

Any help would be greatrly appreciated.

-- Chuck Holbert

Hello Chuck, I still have the same problem, and I almost "happy" to see I'm not alone with this problem ! So, I still don't have a solution, BUT I find a compromise to work until this bug will be fixed. Instead of starting grass with the command (grass61) which is the same thing as (grass61 -gui), try to start grass with the "-text" option (grass61 -text). Like this, our error dispears, even if it is less confortable. To start the gis manager, start "d.m &" command.

--Jérôme Martin

Hi Jerome, I reinstalled 6.0 and have no problems - I'm not sure what changes were made between 6.0 and 6.1. I will try your solution when I reinstalled 6.1. Thank you for the advice!!


25 april 2005

Hi! I have installed GRASS+Cygwin and I have the same problem as several other people have reported. I create a location from EPSG, I reboot GRASS. I select the new location and click on the mapset "PERMANENT". Then, as I click on Enter Grass, the following message appears : "Warning, this is not a valid Mapset" Help?

--Ben Discoe

Please try 6.1.cvs version after uninstalling 6.0.

10.05.2005

Hi! I have installed GRASS+Cygwin and I have the this problem :

test: and: unknown operand test: and: unknown operand export: Settings/user/.grassrc6: bad variable name export: Files/UltraEdit:/cygdrive/c/Program: bad variable name

This application has failed to start because libgrass_gis.6.1.cvs.dll was not found. Reinstal may blah blah....

Help?

--SB

Please try 6.1.cvs version after uninstalling 6.0.

25.05.2005

Hello. I am a relative novice - please be gentle with me. I downloaded and installed cgywin and grass 6.0. I am running XP. When I run grass60.bat from Windows, the window opens briefly and closes. I went in the cgywin shell itself and ran 'grass60' from that. The program loaded up and ran but I got an error message saying that there was no display variable and the bash window wouldn't open. Instead it ran the 'text only' version (which was beyond me).

Is there a simple fix.

Thanks Leo

Please try 6.1.cvs version after uninstalling 6.0.

30.5.2005

Hi. I successfully installed Cgywin & Grass till Step 6. But I can't proceed because I can't copy grass60.bat to c:\cgywin.

Any help appreciated. Thanks Ruslan.

Please try 6.1.cvs version after uninstalling 6.0.

16.06.2005

Hi!

I can't find any documentation on how to produce an EPSG-codes file that Grass can read. For now I got Grass 6.0 installed and the EPSG geodetic dataset. What steps are necessary to make the codes available for Grass? Thanks,

Henning

The EPSG-code file is installed in /usr/share/proj, so the full path is /usr/share/proj/epsg. If it's not there, make sure that you installed the "proj" cygwin package, which is automatically installed when you choose grass from setup.exe. -- Huidae Cho

The full path on my install in WinXP is /cygdrive/c/cygwin/usr/share/proj/epsg -- Nick Benson


06 july 2005

Hi!

I downloaded the latest version of grass 6.1cvs (version 15-06-2005) as explained in the section "Alternative installation for 6.1 CVS". It works, but not fully : nviz doesn't work. The greenloadbar is working but at the end of the loading, the 2 windows (please wait and the graphic area) close. When I tried to load nviz from the console, the error was : "bad system call". So I install the version 01-04-2005 and nviz work with this version. So Do I am the only guy with the non-working module nviz on the last version ?

An other question : Why the version of grass 6.1cvs 01-04-2005 as a different gui style ? (see picture)

http://geni.ath.cx/wiki_cygwin_grass/1120643835.gui-grass.jpg

In fact, the gui style of this version is a windows-like mode, but the green loadbar in each different window for each module didn't exist. In fact, it's a text in the console mode which is giving the progression of the loading (5% - 78% etc...). Can we have this style with the latest versions of grass ?

-- Jérôme Martin

I recommend you to install from the Cygwin setup. There is grass 6.1.cvs and you can easily install the modified tcl/tk version working with GRASS.

The first problem: Did you run NVIZ from the GRASS manager or from the console? Can you show me the screenshot?

The second problem: Is the windows-like manager (MeteoSat window) working? The reason I made a custom tcl/tk is that GRASS didn't work with the Cygwin tcl/tk.

-- Huidae Cho


Greetings Huidae!

I have a similar problem to one of the other writers in that after a successful install to windows XP Pro, I try to run grass61, and I get 2 flashes.. one is the screen which starts the X server, and the other is the box that the welcome to grass should be in... However, I received no error messages, and it never gets as far as actually printing the words on that screen, it just flickers and is gone...

Steve

Hi Steve and Alessandro, you need to change CYGWIN_ROOT in grass61.bat (around 20th line) if you installed Cygwin in other than the C drive.

SET CYGWIN_ROOT=d:\cygwin

Hope this helps.

-- Huidae Cho


Hi Huidae,

I installed Cygwin and Grass. I followed all the instructions which were written on the webpage (http://geni.ath.cx/grass.html#toc8). Until the step 8, I succed to install it. After, I have a problem, on the frame "Grass 6.0.0 Data selection", I haven't the same fiels. Is it normal ? I think, it's normal ... I decided to click on the "Create Location from EPSG" button's and a window opened. I don't know what I should write on the following fields :

I understand most of the terms, but I don't know where I should get all the files like the database or the EPSG-Codes.

I don't know if you need further information about my problem. Do you understand what is the problem ?

Best regards. Phil. phdenis40@yahoo.fr

As to getting EPSG-codes, you need to install the GDAL library. But this library is supposed to be installed automatically when installing GRASS from my page. Can't you find /usr/share/proj/epsg file? If not, run the cygwin setup.exe and install the GDAL library. Let me explain what those terms are:
Name of new location
it's the name of your new map region
Database
the directory where all your map data will be stored
Path to the EPSG-codes file
it must be /usr/share/proj/epsg if you installed GDAL
EPSG code number of projection
you need to look through all EPSG-code descriptions unless you remember the code. Click EPSG-codes to see all list of projections supported by GDAL
(Accessible) Mapsets
GRASS has a concept of mapsets besides location. The special mapset called "PERMANENT" is used to store, yes, "PERMANENT" map data, which are not expected to be changed by the user. If you ever want to change something from the original data, you had better create a new mapset for the job under the location. In this way, you don't need to worry about loosing the original data.
Hope this helps. -- Huidae Cho

Hi,

I have just attempted to install GRASS and cygwin for the first time, in WinXP, and when I try to run either grass60.bat or grass61.bat I get the two windows flash up on the screen and disappear, as desribed by Steve, two letters above. I have installed everything on the C drive, so the solution offered above does not apply. Any further ideas?

Thanks, Adam

Hi, I'm sorry, but I don't have any good idea other than the above one. I tried many ways to make it happen, but failed. -- Huidae Cho

26.10 Hi Huidae,

I installed grass 6.0.0 until step 9. then i got following message... Dynamic Link Libary libgrass_gis.6.1.cvs.dll not found

It was impossible to create a 'newLocation'. Do you have any suggestions?

Joerg.

Did you install both 6.0 and 6.1? If so, uninstall everything (grass 6.0, 6.1, gdal) and reinstall only one version. GDAL cannot be used for both versions simultaneously. -- Huidae Cho

27.10.05 Hi all, I'm sure this is a very simple problem. I'm running winGrass v6.0 under win x64 and I get the following error message when I try to run the grass60.bat file. 'run' is not recognized as an internal or external command, operable program or batch file. 'run' is not recognized as an internal or external command, operable program or batch file. I get the message twice, which I've realized is because of the xwin and xterm lines in the batch file. Anyway, how can I fix this? I tried removing the run from those lines but it doesn't help, I just get the same message with xwin and xterm. Thanks,

-C. Nielsen

Hi, did you install Cygwin in other than C drive? If so, you need to edit grass60.bat file (around 20th line).
SET CYGWIN_ROOT=d:\cygwin
Hope this helps. -- Huidae Cho

11.11.05

I managed to get GRASS 6.1 to run under XP -- that is most things. Certain features do not seem to work and I wonder if it is me or the state of the port. For example what does not work is the NVIZ flythrough path. I can generate a script, but executing the script does not work. The program puts entering script mode out, but then silently does nothing anymore. Also georeferencing files such as scanned maps fails. The georeferencing seems to work until I actually load the file in the new location. Then GRASS complains that the file has not the right projection, but still x/y projection. Also what about importing GPS garmin data -- gpstrans is a linux/serial port application. Is there a good way to do this on XP? Any help appreciated.

Ludwig

I don't modify any code to compile GRASS under Cygwin assuming that Cygwin provides the complete UNIX compatibility layer to GRASS, which means that if you can run other commands, the problems you have are most likely from Cygwin part. Another possibility is that the version of GRASS from which the Cygwin port was built can be buggy compared to the up-to-date CVS version or 6.0 release. I'll try to compile the latest CVS version and upload it soon. Let's see it will help.

I'm not an expert when it comes to georeference things, but scanned maps usually do not have any projection info and they will be imported onto the x-y projection. There must be a way to map an x-y projected map to a certain projection. You may want to ask GRASS mailing lists.

As to GPS data import, I don't have any idea about it. Sorry. -- Huidae Cho


When run grass in the location from epsg at the code 4265 (Montemario)the program stopping and exit an error message - g.proj pq.dll not found -This is the directory to catch the epsg data(/usr/share/proj/epsg) Excuse my bad english. Girgio from Italy

03-jan-2006: just encountered the problem, copy cygpq.dll to pq.dll and let's rock ... Francois from france

4-jan-2006 Or change the installed version of postgresql to 7.4.x in the cygwin installer. This is probably because cygwinGRASS was build against 7.4? Maybe this could be in the documentation?

You're right. pq.dll changed to cygpq.dll. I have a plan to release a new version after 6.0.2 is released. -- Huidae Cho

Hi - I got grass installed but I'm getting the following error whenever I click on anything in the program: "Error: Invalid command name .tearoff1" and when I click on details I get:

invalid command name ".tearoff1"
invalid command name ".tearoff1"
    while executing
"$Priv(menuBar) configure -cursor $Priv(cursor)"
    (procedure "MenuUnpost" line 63)
    invoked from within
"MenuUnpost $w"
    (procedure "tk::MenuInvoke" line 46)
    invoked from within
"tk::MenuInvoke .#menubar.#menubar#menu2.#menubar#menu2#menu4 1"
    (command bound to event)

Any help would be great!

Those errors are coming from the GIS manager (the GRASS Tcl/Tk GUI script), so actually winGRASS distribution has nothing to do with the errors. I'll let the author of the manager know about this. -- Huidae Cho

I asked the author and he said that there are no such subroutines in the GIS manager. So I suspect that you've installed a wrong version of Tcl/Tk. Actually, Cygwin GRASS doesn't work with a Tcl/Tk package provided by the Cygwin team. Instead, you should install my modified version from http://geni.ath.cx/grass.html or http://geni.ath.cx/grass (if you prefer the Cygwin setup.exe). If you selected the original version of Tcl/Tk from setup.exe, it is likely that you have both versions installed because my Tcl/Tk package is automatically installed when grass is chosen. The GRASS GIS manager is executed by the Tcl/Tk interpreter. But, if you have both of them, by which version? This can cause unknown conflicts, I think. If you're in this case, try to uninstall both versions using setup.exe and install only "tcltk-grass" from http://geni.ath.cx/grass. -- Huidae Cho

5.Feb.06

Hi - I am having the flashing screen problem similar to others above (everything is on C-drive). I can get GRASS to run though, by typing "grass60" in the cygwin shell. GRASS opens but is preceded by an error message:

"Application initialization failed: no display name and no $DISPLAY environmental variable."

Then I can only run it in text mode because GRASS thinks XWin is not running while XWin thinks that it is (X icon in system tray and XWin errors when I try to manually start it up telling me it is being opened multiple times???--no other indication of XWin running.)

Is this a problem in GRASS or Cygwin/X? Can I start GRASS within cygwin and address the GRASS intiialization error?

Thanks--Kurt

Hi, there are two kinds of terminals in cygwin: cygwin shell and xterm. None of X11 programs can run from the cygwin shell. So if you can successfully execute "xterm&" from any terminal while XWin is running, GRASS will run on that xterm. Even if you're running XWin in the system tray, running any graphical software from the cygwin shell does not work. Try the following:

  1. Kill XWin in the system tray.
  2. Run c:\cygwin\usr\X11R6\bin\startxwin.bat. xterm will open.
  3. Type "grass60" in the xterm.

BTW, did the above error message appear right after your running grass60 or when you were trying to run any d.* commands? -- Huidae Cho

The original error message appeared right after running grass60 (no other commands). I tried two things. First, with no XWin running, "xterm&grass60" in the bash shell returns this error message:

[1] 1116
xterm Xt error: Can't open display:
xterm: DISPLAY is not set

followed by the intialization error and the GRASS intro screen as above.

Second, also with no XWin running, Run c:\cygwin\usr\X11R6\bin\startxwin.bat opens the xterm but it disappears instantly. I don't see any application running in the Task Manager (though the CPU usage maxes out and X appears in the system tray). If I restart, I am told "Shelllcon Hidden Window" and c:\cygwin\usr\X11R6\bin\startxwin.bat are running.

Kurt

First, you need the XWin server as I already mentioned above. Without this, you get "DISPLAY is not set" error since xterm and GRASS are XWin clients. Then what's wrong with startxwin.bat? You can see the X icon in the system tray and it means XWin is running. The problem is that you cannot run any XWin clients. Then go to c:\cygwin\usr\X11R6\bin and run xterm.exe directly from IE WHILE XWin is running. Let's see what happens. -- Huidae Cho

Followed instructions and got this: "This application has failed to start because cygX11-6.dll was not found. Reinstalling the application may fix this problem." c:\cygwin\usr\X11R6\bin\cygX11-6.dll does exist. Should I uninstall and reinstall? v6.1? -- Kurt

Sorry, it's my bad. Try this:

  1. Run startxwin.bat.
  2. Go to c:\cygwin in IE.
  3. Run cygwin.bat. Now you have a cygwin shell.
  4. Type "DISPLAY=localhost:0.0 xterm&<ENTER>" in the cygwin shell. xterm should start.
  5. Run "grass60" from within xterm.

-- Huidae Cho

As I'm sure you can guess, I have no idea how it happened, but it worked. The only wrinkle is that xterm didn't appear until I went into Task Manager and ended sh.exe. Now I'm in--whew. You really earned your stripes on that one. Many, many thanks--Kurt

Welcome to the GRASS world! ;-) -- Huidae Cho

Hello,

When I try to download cygwin according to your instructions, the page http://geni.ath.cx does not appear as an option, so I cannot highlight both it and another site. Consequently, there does not appear to be anything about grass under database. Thanks for your time.

Tim Martin

Hi, step 3 says "Add http://geni.ath.cx/grass to the user URL list". You have to add the URL for yourself into the blank field under the list and click "Add" button. -- Huidae Cho

Hello,

I can confirm that GRASS version 6.0.0.2 only works if postgresql 7.4.5-1 is selected during the Cygwin setup procedure. Maybe this should be highlighted on the entry page.

In combination with postgresql 8.0.4-1 I get the following error message during grass60.bat activation: "g.proj - Unable to Locate Component. This application has failed to start because pq.dll was not found...". As noted elsewhere this file does not exist with postgresql 8.0.4-1 as it has been renamed.

Now everything works but I had to manually move the created PERMANENT folder to the created GRASSDATA directory within D:\Cygwin before GRASS would boot up.

Cheers, Anders Fahlén

6.0.0.2 was built with postgres 7.x. You can just copy cygpq.dll to pq.dll. But the latest version works well with postgres 8.x. To access your GRASSDATA directory under Cygwin, the directory should be inside d:\cygwin. Otherwise, you need some trick:
Windows pathCygwin path
d:\cygwin\grassdata/grassdata
d:\cygwin\home\user\grassdata/home/user/grassdata
c:\grassdata/cygdrive/c/grassdata
c:\my\grassdata/cygdrive/c/my/grassdata
-- Huidae Cho

Hello,

I'm getting into trouble when installing Cygwin and Grass on a Windows 2000 pro platform. Actually, i can start the Cygwin Setup.exe program, i can add the grass specific URL http://geni.ath.ch/grass, but the next step does'nt succeed: Unable to get Setup.ini from <http://geni.ath.cx/grass> Like if i was not allowed to read in this directory ...

An other question: i've installed cygwin at least a year ago. Do i need to trash it before starting cygwin setup, or will Setup.exe be able to manage the necessary upgrades needed to properly install Grass and its components ?

Thanks a lot for your help -- Philippe Clastre

Hi, try this url: http://geni.ath.cx/grass/setup.ini. Can you see the file? http://geni.ath.cx/grass is not allowed but the file should be readable. And please try the latest version of setup.exe from http://cygwin.com. You don't need to worry about the old version you installed before, but I prefer to delete whole cygwin directory and reinstall from the scratch if it's one year old package. -- Huidae Cho

Hi, I tried to download grass as per instruction. After installation when i try to run grass60.bat it gives me error saying run command is not available. My email address is shri_natu@hotmail.com. Please help. Shri Natu

Please read the FAQ above. -- Huidae Cho

Hello,

I just downloaded GRASS for WIN to a WIN XP laptop. I did the double URL thing and reached 'installation complete.' After that, I clicked onto the batch file and got the following message. Ideas? Anyone?

GRASS Error1.jpg

samuel.mason@walthourmasongroup.com

Hi, actually, this is nothing to do with GRASS. What you clicked is not the GRASS startup file, but the Cygwin shell startup file. As the message suggests, you may want to run the following to create a group and a passwd files in /etc:
mkpasswd -l > /etc/passwd
mkgroup -l > /etc/group
Note that you cannot run GRASS from the terminal you're seeing because it does not support graphic interfaces. Instead, you want to run the Cygwin X Server (c:\cygwin\usr\X11R6\bin\startxwin.bat) and xterm (c:\cygwin\usr\X11R6\bin\xterm). -- Huidae Cho

Good morning: After I creat a new location using EPSG code I receive an error message indicating that the libgrass_gis.61.cvs.dll was not found and that I may need to reinstall it. How could I do that?

Thank you.

ana

Good afternoon ;-). Well, as you may already have read above Q&A's, the reason for this error is rather not well known. If you installed two versions of GRASS (grass and grass-cvs), you may have this error because the GDAL library is not interchangeable between the two versions. In this case, you want to uninstall both packages and install grass-cvs.
  1. run the cygwin setup.exe
  2. uninstall grass, grass-cvs, gdal-grass, and gdal-grass-cvs
  3. rerun the cygwin setup.exe
  4. install grass-cvs
Hope this helps. -- Huidae Cho

Hi! The install seemed to go o.k., but at Step 7, run Grass60, nothing happened (black screen flashed quickly, but nothing else).

Any ideas? Thanks!

Ben in New Jersey

Hi Ben, you may want to read old Q&As -- Huidae Cho

Hello,

I'm trying to work through the tutorial using the spearfish demo data. I enter a new name for Database, grassdata. Select Spearfish60 for Location and user1 for Mapset. When I click the "Enter GRASS" button I get an error message box. The box is titled "ps.map - Unable to locate Component" And the message is "the application has failed to start because cygproj-0.dll was not found."

I installed GRASS via alternative rout as per "http://geni.ath.cx/grass.html#toc6"

This is because http://geni.ath.cx/grass was not available. Timed out during cygwin setup.

Can anyone explain what I'm doing wrong? Did I miss something during the installation process?

Any help would be appreciated!

Thanks Eric

Hi, did you install all the packages listed in step 3? cygproj-0.dll is from the "proj" package. You can install GRASS using setup.exe even if http://geni.ath.cx/grass is not accessible because setup.exe reads http://geni.ath.cx/grass/setup.ini not the directory itself. -- Huidae Cho

Sweeeet! That did it! Thanks Huidae. I let cygwin install the defaults and proj and sunrpc were not included. Also, not that it matters to me now since I got it working, but the setup program seems to be looking for a file called setup.bz2 not setup.ini. Everytime It tried to access http://geni.ath.cx it just hung and then gave a "connection failed" message.

Thanks again! Eric

Oh! You entered http://geni.ath.cx not http://geni.ath.cx/grass? setup.exe tries to find setup.bz2 first and then setup.ini, so it should be fine if you add http://geni.ath.cx/grass to the url list. -- Huidae Cho

I entered http://geni.ath.cx/grass in the "User URL" but it turned into http://geni.ath.cx in the "Available Download Site" list box. Have you tried lately? Not too sure how to remove it from the list so I can try again though.

Thanks E


02July06

In attempting to install GRASS I experienced the same flashing screen problem that has been mentioned by several other people. In refering to the previous Q&As I attempted to type in

DISPLAY=localhost:0.0xterm&<ENTER>

but I recieve a "syntax error near unexpected token 'newline'" message. Any thoughts on my mistake? Thanks

David

Did you type DISPLAY=localhost:0.0xterm&<ENTER>? You should type DISPLAY=localhost:0.0 xterm& and press the ENTER key. Don't forget a space between 0.0 and xterm&. -- Huidae Cho

Thanks for helping. Now I get the numbers [1] 3844 and then it says

bash: xterm: command not found

Also you indicated to go to c:\cygwin in IE and then run cygwin.bat. Because I didn't know what IE was, I've been running cygwin.bat from the normal windows folders. Could this be my problem? Again thanks David

By IE, I meant "the normal windows folders," so that's not a problem. How did you install GRASS? It looks like you didn't install X-Windows. If you used setup.exe for GRASS install, you must have X-Windows installed. If not, install all the packages listed in the step 3 of the alternative install. -- Huidae Cho

Hello July 5th, 2006

My software is Win XP/SP2. I installed grass 6/Cygwin for the first time until step 10. I could not create a new location and make the gis manager run. I had an error message "this is not a valid map database" and then another one "unable to locate pq.dll"

I deleted everything and reinstalled up to step 7. I copied grass60.bat to c:/cygwin but when I try to execute it, the bash screen flashes for one second and then dissappears.

Below is the info of the grass60.bat file

@echo off
rem SET DISPLAY=127.0.0.1:0.0
SET DISPLAY=:0
REM 
REM The path in the CYGWIN_ROOT environment variable assignment assume
REM that Cygwin is installed in a directory called 'cygwin' in the root
REM directory of the current drive.  You will only need to modify
REM CYGWIN_ROOT if you have installed Cygwin in another directory.  For
REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need 
REM to change \cygwin to \foo\bar\baz\cygwin.
REM 
REM This batch file will almost always be run from the same drive (and
REM directory) as the drive that contains Cygwin/X, therefore you will
REM not need to add a drive letter to CYGWIN_ROOT.  For example, you do
REM not need to change \cygwin to c:\cygwin if you are running this
REM batch file from the C drive.
REM 
SET CYGWIN_ROOT=\cygwin
SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%
SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
SET XNLSPATH=/usr/X11R6/lib/X11/locale
REM
REM Cleanup after last run.
REM
if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0
:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix
REM
REM The error "Fatal server error: could not open default font 'fixed'" is
REM caused by using a DOS mode mount for the mount that the Cygwin/X
REM fonts are accessed through.  See the Cygwin/X FAQ for more 
REM information:
REM http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof
REM
if "%OS%" == "Windows_NT" goto OS_NT
REM Windows 95/98/Me
echo startxwin.bat - Starting on Windows 95/98/Me
goto STARTUP
:OS_NT
REM Windows NT/2000/XP/2003

I've also done that: I executed C:\cygwin\usr\X11R6\bin\startxwin.bat At the bash screen I, I wrote grass60 & ENTER and I had this coming

$ grass60
Cleaning up temporary files.....
Starting GRASS ...
ERROR: LOCATION << c/grass_gis/grass_data/2628.tmp >> not available
Error in startup script: couldn't change working directory to "c/grass_gis/grass_data": no such file or directory
    while executing
"cd $database"
    (procedure "gisSetWindow" line 234)
    invoked from within
"gisSetWindow"
    invoked from within
"if { [searchGISRC $gisrc_name] } {
   gisSetWindow
}"
    (file "/usr/local/grass6.0.0/etc/gis_set.tcl" line 843)
c/grass_gis/grass_data/2628.tmp/PERMANENT/.gislock: No such file or directory
ERROR: /usr/local/grass6.0.0/etc/lock:
Administrator is currently running GRASS in selected mapset. Concurrent use not allowed.

The problem is that the Grass_gis table, (step 8) is not coming up.

Thank you cincerely Yiannis

Hi, you may want to install grass-cvs instead of grass from setup.exe. The "grass" package is fairly old, so you can have problems with current Cygwin packages (e.g., pq.dll). -- Huidae Cho

Hello July 7th 2006

I uninstalled everything. I installed grass-cvs, as you told me, and I have the same problem again. I copied grass61.bat to c:/cygwin but when I try to execute it, the bash screen flashes for one second and then dissappears. I executed C:\cygwin\usr\X11R6\bin\startxwin.bat At the bash screen I, I wrote grass61 & ENTER and I had this coming

$ grass61        
Cleaning up temporary files.....
Starting GRASS ...
ERROR: LOCATION << c/grass_gis/grass_data/2628.tmp >> not available
Error in startup script: couldn't change working directory to "c/grass_gis/grass_data": no such file or directory
    while executing
"cd $database"
    (procedure "gisSetWindow" line 242)
    invoked from within
"gisSetWindow"
    invoked from within
"if { [searchGISRC $gisrc_name] } {
   gisSetWindow
}"
    (file "/usr/local/grass6.1.cvs/etc/gis_set.tcl" line 851)
c/grass_gis/grass_data/2628.tmp/PERMANENT/.gislock: No such file or directory
ERROR: /usr/local/grass6.1.cvs/etc/lock:
Administrator is currently running GRASS in selected mapset. Concurrent use not allowed.

I made a mistake the other day when I changed the following address: cygdrive/c/grass_gis/grass_data to c/grass_gis/grass_data. Then I uninstalled grass and installed grass-cvs and after step 7 it was not working.

At that point there seems to have happened a system confusion and I have no idea how to correct it.The Grass_gis table, (step 8) is not coming up.

Thank you again Yiannis

Where did you create the grass_data directory? If it's c:\grass_gis\grass_data, you have to enter /cygdrive/c/grass_gis/grass_data instead of c/grass_gis/grass_data. The above error message says GRASS cannot find c/grass_gis/grass_data, but the directory should be /cygdrive/c/grass_gis/grass_data. -- Huidae Cho

Hello July 11th 2006

I recreated the directory corectly and the GIS manager runs normally.

Thank you so much. Yiannis


10.07.2006 Hello,

I have installed the cygwin platform with all the required steps for win2000 and downloaded also the required postgis... and ...sql from the swiss server. I´m not able to run grass60.bat, the answer is: "No absolute path found for shell:/usr/bin/bash" What´s wrong? I have also stored the files in c:cygwin and c:download!

Thanks Johannes

Did you install GRASS as per instruction? It looks like you didn't because /usr/bin/bash should be installed along with the "grass" package. -- Huidae Cho

July 11 th 2006

After setting EPSQ code and restart, a error form appears saying "A fatal error has occurred and Cygwin/X will now exit. Please open /tmp/XWin.log for more information.

below are the error logged: _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running What is going wrong? and how to fix it?

thank a lot

Raymond

You're trying to run X server more than once. Did you run grass60.bat? -- Huidae Cho

Thank you for all your help. After your assistance last week I have managed to open the first GRASS windows. At first I had trouble manually inputing the epsg because the epsg file did not exist where it was looking for it. After some searching I found the file in a different folder-route and copied some folders into the path that it was looking for. Now It lets me input the epsg code but when I reopen grass, it contains my database location but the location and mapset fields are empty. Any thoughts?

David

Are you sure you entered a location name in step 9? If so, check whether c:\cygwin\your_database_dir\location directory exists. -- Huidae Cho

After some more experimenting... When I reopen GRASS the default database that grass looks for my database in is "home/administrator". At this point I can see the name that I entered into the database field under the LOCATION menu. There are no available mapsets. Looking in Windows, I can also find a folder of my databse name under the home and administrator folders. However the folder is empty. In GRASS, if I retype the databse location to include my database (home/administrator/talbert) both the location and mapset menus are empty


13 Jul 2006 hi,

I am installing the Grass to Step 10. However after browse the grass_data, the "new location" and "PERMANENT" doesn't appear in the location and Mapsets respectively as in the figure, and "Enter GRASS" button is disabled" and so I can't proceed to step 11. Did I miss any settings?

http://geni.ath.cx/wiki_cygwin_grass/1152785406.NoNewL.jpg

Thanks & Regards,

Raymond


21 July 2006 Hi, I'm getting similar errors to the last two posts. The EPSG file is not where it is supposed to be, but after locating it and selecting a location, the location does not show up on the primary window upon restarting.

I also see this error in the shell window upon startup. The directory is correct, but it has not placed a temp file there.

Cleaning up temporary files..... Starting GRASS ... ERROR: LOCATION << /cygdrive/c/temp/grass_data/2664.tmp >> not available

Thank you in advance for your help! Neil


Hello Huidae,

I installed cygwin+GRASS6.0 on c:/programs/cygwin, changed the path grass60.bat file. GRASS would open but would tell that the database is not valid. After several tries GRASS seems to have created a location 2348.tmp in /cygdrive/c with mapset PERMANENT. When I try to enter GRASS though it tells me that it is not a valid mapset. I then installed the spearfish database in the directory (c:/programs/cygwin)/home/spearfish60/, but when I try to open GRASS with /home/spearfish60/user1 there appears a system screen very quickly and GRASS will end.

Any idea? Thanks for your help!

Michael Reiter


Hi David, Raymond, Neil, Michael, and others,

I was trying to compile the latest CVS version on this Tuesday (July 25, 2006) and found GRASS did not compile anymore with the current Cygwin packages. I'm not sure if this problem has to do with either GRASS or Cygwin, but I suspect that your isssues are somehow related to this compilation problem because my GRASS packages DID work before with older versions of Cygwin. I need some time to figure out what's going on underneath, so please keep an eye on this page.

-- Huidae Cho


Huidae,

Any new updates for the grass6.1 binaries on cygwin since april? I believe some new modules and scripts is added since then.

Thank you for maintaining this.

Maning

Hi Maning, unfortunately, the latest 6.1 CVS version does not compile on Cygwin as I said above. It seems like Cygwin libraries change too often to follow. I'll dig more to find out what's wrong sometime later. Currently, GUI part is being actively developed. I've added v.in.dxf to 6.1 CVS, so you don't need the OpenDWG library anymore for DXF import. -- Huidae Cho

03 Jul 2006 Hi, I am trying to install grass 5.7, because it seems that the importing E00 fails for the latest version of grass. From the instruction in http://grass.itc.it/grass57/binary/mswindows_cygwin/, it requests me to install grass-5.7.0-DD-MM-YYYY-arch-bin.tar.gz. However i can't find the file in the web site. Is the installation file missing?

By the way, does GRASS 6.1 well support E00 import? (I copied the avcimport.exe and e00conv.exe to cygwin\bin. However, during import, the error "Cannot open data source: bldg An error occurred. Stop." was still prompted out as attached.) Thanks in advance. Raymond

You can find 5.7 from here, but it is highly likely that this version would not work for you with current versions of cygwin. The page you referred to is simply too old. I don't use the E00 format myself, where can I find a sample E00 file to try? -- Huidae Cho

Hello, Like Maning above, I am interested in accessing some of the newer modules in the GRASS CVS (specificially r.in.xyz) - what is involved in adding a specific module to the binaries you make available (instead of compiling the most recent GRASS 6.1 CVS since it is prone to problems on Cygwin)?

Thank you,

-chris

Hi Chris, there is the GRASS Extensions Manager (GEM), which helps the user to compile/install individual modules. However, r.in.xyz has to be yet modified to be managed by GEM. Other than using GEM, you should compile it yourself, but, as I mentioned above, the current version of Cygwin does not allow you to compile a new GRASS module. I hope the Cygwin developers can fix this DLL linking bug in the next release. -- Huidae Cho

Hello, I am new to all this. I see a log of "install Proj from cygwin if you dont have it in usr/share/(proj). i am having trouble finding proj to install. thanks, eric/

Hi, the PROJ package should be installed along with GRASS if you use the Cygwin setup.exe to install my GRASS package. Or you can see "proj" or "libproj" in the full package list when running setup.exe. -- Huidae Cho

Hello, I am looking at the list and I don't see the proj or libproj to select to install. I selected the 6.1 CVS because it says the 6.0 is not reccommended. When I select to uninstall 6.1 and to install 6.0, I still don't see the proj or libproj. I have never used Cygwin before and I am sure I am missing something very simple. Thanks for the help. Eric.

I think you selected only my site in the URL list. See step 4. You need "two" sites. One (http://geni.ath.cx/grass) is for GRASS and the other is for Cygwin packages. http://geni.ath.cx/grass has only GRASS packages. -- Huidae Cho

Thanks! It's working now.


Hi,

I installed grass according to the provided instructions. starting grass, the graphical interface called "date selection" appears. After clicking on "enter grass" the following message appears:

GRASS 6.1.cvs (testSaturn):~ > Error in startup script: child process exited abnormally while executing

"exec ps.map -p" (procedure "DmPrint::init" line 14) invoked from within

"DmPrint::init" (procedure "main" line 34) invoked from within

"main $argc $argv" (file "/usr/local/grass6.1.cvs/etc/dm/d.m.tcl" line 1627)

well, this wouldn't be a problem, because monitors and that stuff is working fine, just the general graphical interface is missing.

Besides this, I have an other, more sirious problem: no of the vector commands v.* is working. They can be executed but nothing happens. Also no error message appear when parameters are missing, e.g.

GRASS 6.1.cvs (testSaturn):~ > v.in.ascii

GRASS 6.1.cvs (testSaturn):~ > v.surf.idw

Raster data operations are working really good ;-)

thanks, stefan bofinger

Hi, it looks like that the Cygwin/GRASS has problems with currently distributed Cygwin packages. As I already mentioned above, I failed to compile the latest version of GRASS under recent Cygwin installation. I'll try it again when I have free time. -- Huidae Cho

Hi loaded Grass vrs 6.1.cvx, when I press return on startup i get the following Warning, The wish command does not work as expected. Pleasse check your GRASS_WISH Environment. Use the -help Option for details. Swithing to text based interface mode.

Then it exists.

Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840

Phone (850) 645-7457

E-Mail: watry coaps.fsu.edu

Hi, you have to set the GRASS_WISH environment variable to specify which version of Tcl/Tk you want. BTW, what OS are you running for GRASS? For Cygwin/GRASS, GRASS_WISH is automatically set to wish, which is installed when the user downloads GRASS. -- Huidae Cho

**How Do you set the GRASS_WISH Environment

**I am Running XP Professional Service Pack 2

Let's say your cygwin home directory is /home/user. Add the following line to c:\cygwin\home\user\.bash_profile: export GRASS_WISH=wish -- Huidae Cho

**** Tried that , it did not work, I tried to erase and reinstall I get

"Old version of cygwin1.dll was found here c:\windows\system32\cygwin1.dll delete?"

when I try to delete it it tells me it can not be deleted, I tried clearing my register, I can not fined the old cygwin1.dll on my machine.

what do I do now

Did you try to delete cygwin1.dll while Cygwin is running? Make sure that you don't have any Cygwin stuff running such as X Window. If you get the same message even if you have c:\cygwin\bin\wish.exe, that's strange. I recommend you to wait for the native winGRASS package which I'm working on. -- Huidae Cho

08 Jul 2006 You can find 5.7 from here, but it is highly likely that this version would not work for you with current versions of cygwin. The page you referred to is simply too old. I don't use the E00 format myself, where can I find a sample E00 file to try? -- Huidae Cho

Can you send me your email, so that I can send you a sample E00 file to try? thanks. My email is raymond_fu@yahoo.com. I just found a web page that have free E00 file to download, which is http://www.mass.gov/mgis/ftpzn.htm. So alternatively, you can download one to try. Thanks.


28 Sep 2006

I have already installed Grass&Cywin, but when i click in PERMANENT then ENTER GRASS the following msg appear:

Error in startup script: child process exited abnormally while executing "exec ps.map -p" "DmPrint::init" (procedure "main" line 32 "main $argc $argv" (file "/usr/local/grass6.0.0/etc/dm/d.m.tcl" line 894

any help?


October 4, 2006 5:43 Pacific Time

Hi. After installing the latest stable release of Cygwin and following the directions on your page I was unable to run grass60.bat. When I tried, the following message was returned:

A fatal error has occurred and Cygwin/X will now exit.

Vendor: The Cygwin/X Project Release: 6.8.99.901-4 Contact: cygwin-xfree@cygwin.com XWin was started with the following command-line:

/usr/X11R6/bin/XWin - multiwindow -clipboard -silent-dup-error

Here's the contents of the log file:

_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1680 height: 1050 depth: 32
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "00000409" (00000409) 
(--) Using preset keyboard for "English (USA)" (409), type "4"
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winInitClipboard ()
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winProcEstablishConnection - winInitClipboard returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winClipboardProc - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winDeinitMultiWindowWM - Noting shutdown in progress
winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT message, exiting main loop.
winClipboardProc - XDestroyWindow succeeded.
FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.

winMultiWindowXMsgProcIOErrorHandler!

winInitMultiWindowXMsgProc - Caught IO Error.  Exiting.
winDeinitMultiWindowWM - Noting shutdown in progress

Please help! klingd -at- reed -dot- edu


Hi,

i sucessfully installted with cgywin Grass GIS. A little note: the dudes who had problems with downloading the from the server with the this adress http://geni.ath.cx/grass are right it does not work. BUT you have to enter this location http://geni.ath.cx/grass/ <== important is the last slash!!!

Now my problem ist if I try to execute grass60.bat I have the problem: startxwin.bat - Starting on Windows NT/2000/XP/2003. The command "run" is either wrong written or could not be found.

If I try to execute startxwin.bat an excute grass60.bat as recommended above this message occures:

System could not find the path.

Has anyone a clue thats the problem? Why is no installation routine for windows one is used to?

Thank you for your replies and ideas!

Chris


November 8, 2006

Hi,

I am having trouble compiling Grass6.2. ./configure seems to run correctly. Make reports errors in v.in.ogr and v.digit. When I run make in these directories I get the following errors.

in v.in.ogr, make generates the following errors:

gcc -I/usr/src/grass-6.2.0/dist.i686-pc-cygwin/include  -g -O2    -I/usr/local/include     -DPACKAGE=\""grassmods"\" -I/usr/local/include -I/usr/src/grass-6.2.0/dist.i686-pc-cygwin/include \
                -o OBJ.i686-pc-cygwin/main.o -c main.c
main.c: In function `main':
main.c:638: error: `OFTDate' undeclared (first use in this function)
main.c:638: error: (Each undeclared identifier is reported only once
main.c:638: error: for each function it appears in.)
make: *** [OBJ.i686-pc-cygwin/main.o] Error 1

in v.digit, make generates errors of the type:

/usr/local/lib/libtk.a(tkWindow.o):tkWindow.c:(.text+0x1092): undefined reference to `_XDestroyWindow'

Any help is appreciated.

Thanks.

Martin


21 Nov 2006

hi,

I have installed GRASS 6.1 CVS. Then spearfish60 sample data are installed into a home/user/database directory. However, after entering GRASS, and clicking spearfish60 Location, I can't find the PERMANENT and user1 Mapsets. Do I need to set something so that I can access the data? If not, did I set something wrong?

http://geni.ath.cx/wiki_cygwin_grass/1164097540.ErrSF0.jpg

http://geni.ath.cx/wiki_cygwin_grass/1164097145.ErrorSpearFish.jpg

Thanks for your help in advance.

Raymond


1 Dec 2006 I have installed GRASS 6.1 CVS and using the grass61.bat. However when I run certain DB related command like g.copy, it also returns ":No such driver available 'ARNing: Cannot open driver 'dbf"

do I need to do something in the GRASS settings?

Thanks

Raymond


8 DEC 2006 I have installed GRASS 6.1 CVS and using the grass61.bat. From the menu, when I run Database-> manage database-> test database->option-> test name->test1, it returns many errors due to the DBMI-DBF driver error. e.g. create table grass_test1(i1 integer, d1 double prec.... DBMI-DBF driver error cannot open dbf database: $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/

do I need to set something to solve the program? or any steps missing?

By the way when I try to import ESRI Shape files(TIGER2000) by the following command ogr2ogr -s_srs "+init=epsg:4269" -t_srs "+init=epsg:26713" tgr46081lKA_UTM13_nad27.shp tgr46081lkA.shp, it returns "Failed to process SRS definition: +init=epsg:4269. Do I need install anything additional plugin to make it work?

Thanks

Raymond


Hi folks,

It's been a long time since my last updates for CygwinGRASS/Native winGRASS. Unfortunately, I just don't have free time to keep my packages up to date. The Cygwin GRASS package available from http://geni.ath.cx/grass.html is fairly old enough so that you may have a lot of problems with current Cygwin installation. The last time when I tried to compile the latest version of GRASS under Cygwin, the compilation failed with no apparent clues. If time allows, hopefully, I'll try it again and upload a new package in the near future. I've learnt that the native winGRASS is not mature enough for many users, so my next release will be probably a Cygwin version. -- Huidae Cho


Hi Huidae,

I have been trying to compile grass6.2.1 on Cygwin against the libraries you posted for self-compilation, but it failed with a long list of errors (100+). Any directions on how to get better results? I am willing to help, provided I can do it (I have limited experience).

The configure command I used is:

./configure --with-includes="/usr/local/include" \ --with-libs="/usr/local/lib" \ --disable-shared \ --with-proj-share="/usr/share/proj" \ --with-tcltk-includes="/usr/share/tcl8.4" \ --with-tcltk-libs="/usr/local/lib" \ --with-opengl-includes="/usr/local/include/GL" \ --with-opengl-libs="/usr/X11R6/lib" \ --with-freetype \ --with-freetype-includes="/usr/include/freetype2" \ --with-nls --with-cxx --with-readline \ --enable-largefile

and it seemed to work ok, i.e. no apparent error message on prompt, but in the config.log I get 400+ undefined references like the following:

configure:8982: gcc -o conftest.exe -g -O2 -I/usr/local/include -L/usr/local/lib -Wl,--export-dynamic -L/usr/local/lib conftest.c -ltk -ltcl 1>&5 /usr/local/lib/libtk.a(tkWindow.o):tkWindow.c:(.text+0x1092): undefined reference to `_XDestroyWindow' /usr/local/lib/libtk.a(tkWindow.o):tkWindow.c:(.text+0x1106): undefined reference to `_XDestroyIC'

Thanks and regards,

Luigi


All the works in this site except software and copyrighted materials by others (e.g., 문학) are licensed under a Creative Commons License. 소프트웨어 및 문학과 같이 다른 이에게 저작권이 있는 작품을 제외하고 모두 크리에이티브 커먼즈 라이센스를 따른다.
Thu Mar 28 10:03:13 2024 . XHTML . CSS (lightbox.css is not part of Uniqki. ;-) . Powered by Uniqki!
refresh . edit . loginout . index