[GRASS-user] GRASS jumps to shell immediately after start
Michal Zimmermann
zimmicz at gmail.com
Mon Mar 9 06:53:57 PDT 2015
trap "echo 'User break!' ; exit" 2 3 9 15
# Set the GISBASE variable
GISBASE=/usr/lib/grass64
export GISBASE
exec "$GISBASE/etc/Init.sh" "$@"
On Mon, Mar 9, 2015 at 2:43 PM, Micha Silver <micha at arava.co.il> wrote:
>
>
> On 03/09/2015 03:32 PM, Michal Zimmermann wrote:
>
> Hi,
> when run with the command you sent, it gives the following output:
>
> Cleaning up temporary files ...
> Starting GRASS ...
> /usr/lib/grass64/etc/Init.sh: 409: /usr/lib/grass64/etc/Init.sh:
> /etc/clean_temp: not found
> /usr/lib/grass64/etc/Init.sh: 580: /usr/lib/grass64/etc/Init.sh:
> /etc/set_data: not found
>
>
> So something with the PATH is definitely not getting setup right.
> What are the contents of /usr/bin/grass64?
>
>
> I installed 6.4 from the official ubuntu repo and 7.0 comes from
> ubuntugis repo. init.sh is completely missing for v7.0.
>
>
> Yes, grass70 starts with a different script altogether (python)
>
>
>
>
> On Mon, Mar 9, 2015 at 2:29 PM, Micha Silver <micha at arava.co.il> wrote:
>
>> Hi Michal
>> (keeping this on the list...)
>>
>> On 03/09/2015 02:46 PM, Michal Zimmermann wrote:
>>
>> That works. I always thught you could run grass from interactive shell,
>> was I wrong?
>>
>>
>> You can definitely run GRASS from the shell, in text mode only. It's been
>> like that for a few years now - since about 1983 ;-)
>> How did you install? Maybe try running the Init.sh
>> (/usr/lib/grass64/etc/Init.sh) to follow error messages.
>> Also what shell are you running? I seem to recall seeing in the original
>> post zsh? Wonder if that could be the problem?
>>
>>
>>
>> On Sun, Mar 8, 2015 at 10:21 PM, Micha Silver <micha at arava.co.il> wrote:
>>
>>> Weird
>>> Well, starting GRASS in text mode is really nothing more than setting
>>> some environment variables. I'd suggest you try to setup the environment
>>> manually, then try to run some modules.
>>> Here's the explanation how to do this:
>>>
>>> http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29
>>>
>>>
>>>
>>> On 03/08/2015 11:03 PM, Michal Zimmermann wrote:
>>>
>>> I did, it always throws me out.
>>> ------------------------------
>>> Od:Micha Silver <micha at arava.co.il>
>>> Odesláno:8. 3. 2015 22:02
>>> Komu:Michal Zimmermann <zimmicz at gmail.com>; GRASS user list
>>> <grass-user at lists.osgeo.org>
>>> Předmět:Re: [GRASS-user] GRASS jumps to shell immediately after start
>>>
>>> Try to delete the file ".gislock" in the MAPSET directory that you are
>>> trying to work with, then start grass64.
>>>
>>>
>>> On 03/08/2015 09:15 PM, Michal Zimmermann wrote:
>>>
>>> No I can't. But it seems grass is running, because when i try to run it
>>> again in the same location, it says concurrent use is not allowed
>>> .
>>>
>>> On Sun, Mar 8, 2015 at 8:11 PM, Micha Silver <micha at arava.co.il> wrote:
>>>
>>>> I guess you mean that the GRASS environment is not being setup? Can
>>>> you run i.e. g.version ?
>>>>
>>>>
>>>> On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
>>>>
>>>> Hi, when I try to run grass (both 6.4 and 7.0) with -text interface,
>>>> it immediately switches back to shell. I haven't found anything related to
>>>> this issue, can anyone help me? Thanks
>>>>
>>>> --
>>>> Michal Zimmermann (zimmi)
>>>> WWW: http://www.zimmi.cz
>>>>
>>>> This mail was received via Mail-SeCure System.
>>>>
>>>>
>>>> _______________________________________________
>>>> grass-user mailing listgrass-user at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/grass-user
>>>> This mail was received via Mail-SeCure System.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Michal Zimmermann (zimmi)
>>> WWW: http://www.zimmi.cz
>>>
>>> This mail was received via Mail-SeCure System.
>>>
>>>
>>>
>>>
>>> This mail was received via Mail-SeCure System.
>>> =
>>>
>>>
>>>
>>
>>
>> --
>> Michal Zimmermann (zimmi)
>> WWW: http://www.zimmi.cz
>>
>> This mail was received via Mail-SeCure System.
>>
>>
>>
>
>
> --
> Michal Zimmermann (zimmi)
> WWW: http://www.zimmi.cz
>
> This mail was received via Mail-SeCure System.
>
>
>
--
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150309/013d0559/attachment.html>
More information about the grass-user
mailing list