Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #24655 > unrolled thread
| Started by | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| First post | 2013-07-21 19:46 -0700 |
| Last post | 2013-07-22 16:28 -0700 |
| Articles | 20 on this page of 23 — 5 participants |
Back to article view | Back to comp.lang.forth
How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-21 19:46 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-07-22 14:44 +0000
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-22 16:27 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-22 18:52 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-07-23 02:36 +0000
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-22 21:46 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-07-23 09:36 +0000
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-22 21:25 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-22 23:59 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-07-23 13:13 +0000
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-23 21:17 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-07-24 06:24 +0000
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-24 10:42 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Bernd Paysan <bernd.paysan@gmx.de> - 2013-07-24 21:45 +0200
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-24 13:18 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Bernd Paysan <bernd.paysan@gmx.de> - 2013-07-24 23:33 +0200
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-07-25 01:33 +0000
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-07-25 11:35 +0000
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-25 17:27 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-25 17:33 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-28 12:41 -0700
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Coos Haak <chforth@hccnet.nl> - 2013-07-22 22:41 +0200
Re: How do you make an image in Gforth version 0.7.0 with gforthmi ? Philip Smith <philipkingsmith@gmail.com> - 2013-07-22 16:28 -0700
Page 1 of 2 [1] 2 Next page →
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-21 19:46 -0700 |
| Subject | How do you make an image in Gforth version 0.7.0 with gforthmi ? |
| Message-ID | <9e365730-1724-424b-9a91-792d42a427dd@googlegroups.com> |
I am working with version 0.7.0 of gforth on my Linux Debian wheezy raspberry pi hardware. I installed the gforth with apt-get install command and this seems to only give you version 0.7.0 Gforthmi as i understand is to be used to create an image for some code that you give it. I understand by looking at gforthmi that it is a sh script. I can not seem to get it to work! My question is ... Does this gforthmi script not work on version 0.7.0? I have even tried to do the process in the script myself and have found that i need to set up the environment variables and point them to the correct gforth running code at /usr/bin/gforth even though the documentation with gforth says /usr/local/bin/gforth! It seems to me that apt-get install of gforth on debian does not set up things to work correctly. Am i the only one that has this issue or is this just a known thing that i have not found others commenting online about? Or is gforthmi not used? If i could have an example of the command line to use for the gforthmi that works i would be very appreciative. I have used the following: gforthmi mytest.fi mytestcode.fs As i understand this the mytest.fi file is the image that i want to create and mytestcode.fs is the code that i have that i want to include in the image but i get this output: The image works! The image works! *OS command line*:-1: No such file or directory comp-image >>>./temp-image.fi1<<< ./temp-image.fi2 mytest.fi bye Backtrace: $B69A3854 throw $B69B6008 slurp-file chmod: cannot access `mytest.fi': No such file or directory rm: cannot remove `./temp-image.fi1': No such file or directory rm: cannot remove `./temp-image.fi2': No such file or directory I have started to go through the gforthmi but i am not very good yet at bash scripts but it seems to me that the test of indirect vs direct works as the message shows but now the coping process is messed up so it could be basic bash mistakes but in order to get this to even work up to this point i needed to set the environment variables to point to the correct locations so that got me to thinking that this stuff does not work so that is why i am asking! Any help would be accepted! PKS
[toc] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2013-07-22 14:44 +0000 |
| Message-ID | <2013Jul22.164423@mips.complang.tuwien.ac.at> |
| In reply to | #24655 |
Philip Smith <philipkingsmith@gmail.com> writes:
>Does this gforth=
>mi script not work on version 0.7.0?
At least the original does. And the version in the package for Debian
6.0 works, too:
[/tmp:79705] echo ":noname defers 'cold .\" hi, there\" cr ; is 'cold" >mytestcode.fs
[/tmp:79706] /usr/bin/gforthmi mytest.fi mytestcode.fs
redefined th data offset=1C0
code offset=D0
xt offset=B0
[/tmp:79707] /usr/bin/gforth -i mytest.fi -e bye
hi, there
[/tmp:79708] mytest.fi -e bye
hi, there
>I have even tried to do the process i=
>n the script myself and have found that i need to set up the environment va=
>riables and point them to the correct gforth running code at /usr/bin/gfort=
>h even though the documentation with gforth says /usr/local/bin/gforth!
Which part of the documentation are you referring to?
Anyway, /usr/local is the default for installing Gforth (as well as
many other programs), because that's where you should put it if you
install it from source. Pre-installed programs (or programs installed
by package managers) typically go into /usr, that's why Debian puts it
there.
> If i could have an example of the command line to use =
>for the gforthmi that works i would be very appreciative. I have used the =
>following:
>
> gforthmi mytest.fi mytestcode.fs
Looks good.
>As i understand this the mytest.fi file is the image that i want to create =
>and mytestcode.fs is the code that i have that i want to include in the ima=
>ge but i get this output:
>
>The image works!
>The image works!
>
>*OS command line*:-1: No such file or directory
>comp-image >>>./temp-image.fi1<<< ./temp-image.fi2 mytest.fi bye
>Backtrace:
>$B69A3854 throw
>$B69B6008 slurp-file
>chmod: cannot access `mytest.fi': No such file or directory
>rm: cannot remove `./temp-image.fi1': No such file or directory
>rm: cannot remove `./temp-image.fi2': No such file or directory
Hmm, it seems that it did perform mytestcode.fs, but the images were
not created. Do you have a BYE in mytestcode.fs? If so, remove it;
control must continue after the interpreted files in order for
gforthmi to work.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2013: http://www.euroforth.org/ef13/
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-22 16:27 -0700 |
| Message-ID | <761f9f20-fcac-4e00-bdb5-7023f498733e@googlegroups.com> |
| In reply to | #24682 |
Hi Anton. Thanks for the reply .. i will look closer at this and try and reproduce what you say there and give you more info once my current home power issue is over.. Thunder storms and such.. PKS
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-22 18:52 -0700 |
| Message-ID | <1a3f9f01-ebaa-4a93-9842-10e65bb40a83@googlegroups.com> |
| In reply to | #24682 |
> [/tmp:79705] echo ":noname defers 'cold .\" hi, there\" cr ; is 'cold" >mytestcode.fs > > [/tmp:79706] /usr/bin/gforthmi mytest.fi mytestcode.fs > > redefined th data offset=1C0 > > code offset=D0 > > xt offset=B0 > > [/tmp:79707] /usr/bin/gforth -i mytest.fi -e bye > > hi, there > > [/tmp:79708] mytest.fi -e bye > > hi, there > > > > >I have even tried to do the process i= > > >n the script myself and have found that i need to set up the environment va= > > >riables and point them to the correct gforth running code at /usr/bin/gfort= > > >h even though the documentation with gforth says /usr/local/bin/gforth! > > > > Which part of the documentation are you referring to? http://www.complang.tuwien.ac.at/forth/gforth/Docs-html/Gforth-Files.html#Gforth-Files The page linked to above is from http://www.gnu.org/software/gforth/ and it clearly says /usr/local is the default install location as you say below but i have nothing at /usr/local ... in fact if you look at the list of location in the above link and replace /usr/local with /usr then the list seems to work. I am doing this on a Raspberry Pi with this as the version linux display when i go uname -a && cat /etc/*release at the command line Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" NAME="Debian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" ID=debian ANSI_COLOR="1;31" HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support/" BUG_REPORT_URL="http://bugs.debian.org/" I am logged into the hardware via ssh as pi user. To install gforth i use sudo apt-get install gforth I have not customized anything on the hardware yet as i am still learning everything. Is the fact that i am using sudo apt-get causing some incorrect install settings. I need to used sudo because permission is denied otherwise! Now i have uninstalled gforth with sudo apt-get remove gforth Then re installed it with sudo apt-get install gforth I then made the file example that you did with echo after changing owner of the directory to pi. I then entered the following just as you did: /usr/bin/gforthmi mytest.fi mytestcode.fs And this is what i get: /usr/bin/gforthmi: 47: /usr/bin/gforthmi: /usr/lib/gforth/0.7.0/gforth-ditc: not found /usr/bin/gforthmi: 48: /usr/bin/gforthmi: /usr/lib/gforth/0.7.0/gforth-ditc: not found *OS command line*:-1: No such file or directory comp-image >>>./temp-image.fi1<<< ./temp-image.fi2 mytest.fi bye Backtrace: $B68EC854 throw $B68FF008 slurp-file chmod: cannot access `mytest.fi': No such file or directory rm: cannot remove `./temp-image.fi1': No such file or directory rm: cannot remove `./temp-image.fi2': No such file or directory Here is what env gives for the environment variables of this ssh session: TERM=xterm SHELL=/bin/bash XDG_SESSION_COOKIE=c76f6c7332c486d041b6528b51a0ef02-1374540768.550960-91214940 SSH_CLIENT=192.168.0.108 62458 22 OLDPWD=/home/pi SSH_TTY=/dev/pts/0 USER=pi LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: MAIL=/var/mail/pi PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games PWD=/home/pi/testing LANG=en_GB.UTF-8 SHLVL=1 HOME=/home/pi LOGNAME=pi SSH_CONNECTION=192.168.0.108 62458 192.168.0.109 22 _=/usr/bin/env Notice there is no GFORTH or GFORTHD variable but when i issue gforthmi with out options i get this: usage: gforthmi [--application] target-name [gforth-options] creates a relocatable image 'target-name' environment: $GFORTHD (default: /usr/lib/gforth/0.7.0/gforth-ditc): Engine used for creating the fixed images $GFORTH (default: /usr/bin/gforth-0.7.0 --die-on-signal): Engine used for computing the relocatable image Anyways i am confused as to how else i can install gforth! I could use Coos Haak's method but i would need to have more info to get it correct as i am still learning all the methods that are available in this Linux world. Thanks for your response Anton. I hope this might give you some idea of what is going on! Admittedly this might be some oddity of the raspberry pi Debian distribution that causes gforth to not install as expected but i just need some kind of answer to this issue so i can move forward! Thanks again! PKS
[toc] | [prev] | [next] | [standalone]
| From | albert@spenarnc.xs4all.nl (Albert van der Horst) |
|---|---|
| Date | 2013-07-23 02:36 +0000 |
| Message-ID | <51edec37$0$598$e4fe514c@dreader34.news.xs4all.nl> |
| In reply to | #24713 |
In article <1a3f9f01-ebaa-4a93-9842-10e65bb40a83@googlegroups.com>, Philip Smith <philipkingsmith@gmail.com> wrote: > <SNIP> >Anyways i am confused as to how else i can install gforth! I could use >Coos Haak's method but i would need to have more info to get it correct >as i am still learning all the methods that are available in this Linux >world. In general it is a good idea to use the apt-get method as you did. It is quite a chore to get all programs working together correctly and that's what distributions are for, in particular conventions about distribution directories and configuration directories. I've installed gforth on my raspberry pi using apt-get and used it to metacompile noforth succesfully. [ Then loaded it with mspdebug to the Launchpad, attached to the pi ] > >Thanks for your response Anton. I hope this might give you some idea of >what is going on! Admittedly this might be some oddity of the raspberry >pi Debian distribution that causes gforth to not install as expected but >i just need some kind of answer to this issue so i can move forward! If you can pinpoint it to a defect in the Debian distribution then you can report that and possibly get a fix. Note that the Debian's took the trouble to repackage gforth in behalf of Debian with the goal to make it work flawlessly in a Debian environment. >Thanks again! PKS Groetjes Albert -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-22 21:46 -0700 |
| Message-ID | <9a591292-7304-42c9-ab6d-4632d79d6604@googlegroups.com> |
| In reply to | #24714 |
< snip > > In general it is a good idea to use the apt-get method as you did. > > It is quite a chore to get all programs working together correctly > > and that's what distributions are for, in particular conventions about > > distribution directories and configuration directories. > > I've installed gforth on my raspberry pi using apt-get and used > > it to metacompile noforth succesfully. [ Then loaded it with mspdebug to > > the Launchpad, attached to the pi ] > Hi Albert! I have a question! Do i understand you correctly above when you seem to say that you also have not been able to compile gforth code? Is that what you mean by "metacompile noforth succesfully"? And if so you have the same issue i have then! PKS
[toc] | [prev] | [next] | [standalone]
| From | albert@spenarnc.xs4all.nl (Albert van der Horst) |
|---|---|
| Date | 2013-07-23 09:36 +0000 |
| Message-ID | <51ee4eb8$0$26906$e4fe514c@dreader37.news.xs4all.nl> |
| In reply to | #24719 |
In article <9a591292-7304-42c9-ab6d-4632d79d6604@googlegroups.com>, Philip Smith <philipkingsmith@gmail.com> wrote: >< snip > >> In general it is a good idea to use the apt-get method as you did. >> >> It is quite a chore to get all programs working together correctly >> >> and that's what distributions are for, in particular conventions about >> >> distribution directories and configuration directories. >> >> I've installed gforth on my raspberry pi using apt-get and used >> >> it to metacompile noforth succesfully. [ Then loaded it with mspdebug to >> >> the Launchpad, attached to the pi ] >> > >Hi Albert! > I have a question! Do i understand you correctly above when you seem >to say that you also have not been able to compile gforth code? Is that >what you mean by "metacompile noforth succesfully"? And if so you have >the same issue i have then! PKS No, it means that I didn't bother to do that. Metacompiling noforth means that gforth succeeded in a non-trivial task without problems. Groetjes Albert -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-22 21:25 -0700 |
| Message-ID | <16b255af-2dd2-4590-9de1-03750779178a@googlegroups.com> |
| In reply to | #24713 |
Ok update I have installed version 0.79_20130214 from savannah! I did this several months ago and made some info for other here: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34&t=43300 On another note the last sudo make install step in the above page instructions now do not work for some reason but i digress. I had a sd card with this version installed and i noticed the locations for the forth files are as per documented so i thought i would do this gforthmi with this version. Success as you have also shown Anton i also got it to work. So as you say it does work! Now that i have seen what it does and how it does it i can look more into this. I have no idea why the version 0.7.0 does not work on my raspberry pi or my version of Debian ? But i am hopeful now that i can get some more data and figure it out. Thanks Anton and Coos (that gave me the idea of trying this other version ) I will report once i get something to report! PKS
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-22 23:59 -0700 |
| Message-ID | <fb9268ac-2b30-4eec-bb80-dc74448b1bcc@googlegroups.com> |
| In reply to | #24718 |
I have now installed version 0.7.2. I did this by getting the tar from http://git.savannah.gnu.org/cgit/gforth.git/snapshot/gforth-0-7-2.tar.gz with a wget command. I then unpacked it with tar -xzvf gforth-0-7-2.tar.gz . I then changed to the gforth-0-7-2 directory. I then ran sudo ./BUILD-FROM-SCRATCH -host=arm --build=arm command. Then ran sudo make and then sudo make install. I did get an error#1 output at the very end but it seemed to be installed because when i ran gforth i got version 0.7.2. Then i did the same test to make a image with the command gforthmi mytest.fi mytestcode.fs and it worked. I got a executable file that seems to run from the command line. It would seem to me that installing gforth with apt-get install gforth command on raspberry pi Debian Wheezy simply does not set up something correctly! I am unsure how to resolve that at this moment but that is what i am seeing clearly. When i restart with a new clean SD card and put the raspberry pi wheezy distribution on it and then update and upgrade and then install gforth with apt-get command the gforthmi shell scrip does not work correctly. It seems to me that this script is looking for gforth-ditc and it is not on the system when installed with apt-get gforth install method! PKS
[toc] | [prev] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2013-07-23 13:13 +0000 |
| Message-ID | <2013Jul23.151348@mips.complang.tuwien.ac.at> |
| In reply to | #24713 |
Philip Smith <philipkingsmith@gmail.com> writes:
> http://www.complang.tuwien.ac.at/forth/gforth/Docs-html/Gforth-Files.html#=
>Gforth-Files
>
> The page linked to above is from http://www.gnu.org/software/gforth/ and i=
>t clearly says /usr/local is the default install location as you say below =
>but i have nothing at /usr/local ... in fact if you look at the list of loc=
>ation in the above link and replace /usr/local with /usr then the list seem=
>s to work.
Yes, /usr/local is the default, but you can also install it elsewhere,
and the Debian people did so, for good reason:
From <http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY>:
|The /usr/local hierarchy is for use by the system administrator when
|installing software locally. It needs to be safe from being
|overwritten when the system software is updated. It may be used for
|programs and data that are shareable amongst a group of hosts, but not
|found in /usr.
|
|Locally installed software must be placed within /usr/local rather
|than /usr unless it is being installed to replace or upgrade software
|in /usr.
So the Gforth default is for installation of Gforth by system
administrators, and the Debian packagers deviated from the default for
good reasons. While they do quite a bit of nonsense, that part is
correct.
>Now i have uninstalled gforth with=20
>sudo apt-get remove gforth=20
>Then re installed it with=20
>sudo apt-get install gforth
>I then made the file example that you did with echo after changing owner of=
> the directory to pi.
>I then entered the following just as you did:
>
>/usr/bin/gforthmi mytest.fi mytestcode.fs
>
>And this is what i get:
>
>/usr/bin/gforthmi: 47: /usr/bin/gforthmi: /usr/lib/gforth/0.7.0/gforth-ditc=
>: not found
>/usr/bin/gforthmi: 48: /usr/bin/gforthmi: /usr/lib/gforth/0.7.0/gforth-ditc=
>: not found
That's interesting. You did not show these messages before. Looks
like the installation is incomplete.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2013: http://www.euroforth.org/ef13/
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-23 21:17 -0700 |
| Message-ID | <8512110c-a626-4397-a754-f9976cfa0d55@googlegroups.com> |
| In reply to | #24736 |
<snip> > >Now i have uninstalled gforth with=20 > > >sudo apt-get remove gforth=20 > > >Then re installed it with=20 > > >sudo apt-get install gforth > > >I then made the file example that you did with echo after changing owner of= > > > the directory to pi. > > >I then entered the following just as you did: > > > > > >/usr/bin/gforthmi mytest.fi mytestcode.fs > > > > > >And this is what i get: > > > > > >/usr/bin/gforthmi: 47: /usr/bin/gforthmi: /usr/lib/gforth/0.7.0/gforth-ditc= > > >: not found > > >/usr/bin/gforthmi: 48: /usr/bin/gforthmi: /usr/lib/gforth/0.7.0/gforth-ditc= > > >: not found > > > > That's interesting. You did not show these messages before. Looks > > like the installation is incomplete. > > > > - anton > > -- > > M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html > > comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html > > New standard: http://www.forth200x.org/forth200x.html > > EuroForth 2013: http://www.euroforth.org/ef13/ Hi Anton! Well i did not in the first post show that because i was trying to figure out how to set the environment variable myself because as you can see above it did not work during the normal install. Like i show above i just simply used: sudo apt-get install gforth and it does not set stuff up correctly i guess but having not seen how it is to work and having loads of experience with most open source stuff never working i just tried to go forth.. lol .. Anyways not complaining just that it is hard to figure stuff out when you do not see how it is to work. So is there some file missing or are the files just in the incorrect location and in either case how is this possible if your install and everybody's seems to be ok. I have been even now realized that i should have access to the source files like everybody else does but i have not so i have been trying to get them from different places but i now see they are on my machine just not located where the documents say they are. So what is next? PKS
[toc] | [prev] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2013-07-24 06:24 +0000 |
| Message-ID | <2013Jul24.082426@mips.complang.tuwien.ac.at> |
| In reply to | #24751 |
Philip Smith <philipkingsmith@gmail.com> writes:
>> >/usr/bin/gforthmi: 47: /usr/bin/gforthmi: /usr/lib/gforth/0.7.0/gforth-d=
>itc=3D
...
>Hi Anton! Well i did not in the first post show that because i was trying =
>to figure out how to set the environment variable myself because as you can=
> see above it did not work during the normal install.
Normally you do not need to set the environment variables, they
default to the place where the binaries are installed; since Debian
uses /usr instead of /usr/local as prefix, gforth-ditc should have
been installed at /usr/lib/gforth/0.7.0/ and the default should have
worked.
Looking at <http://packages.debian.org/wheezy/amd64/gforth/filelist>,
gforth-ditc is not installed at all, so if you want to create an
image, the Debian package is not for you. They also leave the
documentation away these days, so the current Debian Gforth package is
not for anyone. Installing Gforth from source like you did is the way
to go then.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2013: http://www.euroforth.org/ef13/
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-24 10:42 -0700 |
| Message-ID | <a2fa4621-eda0-49f3-a793-a438a3b20a0e@googlegroups.com> |
| In reply to | #24752 |
<snip> > Looking at <http://packages.debian.org/wheezy/amd64/gforth/filelist>, > > gforth-ditc is not installed at all, so if you want to create an > > image, the Debian package is not for you. They also leave the > > documentation away these days, so the current Debian Gforth package is > > not for anyone. Installing Gforth from source like you did is the way > > to go then. > > > > - anton Thanks Anton. Glad to have this cleared up! I seemed like apt-get was the simple way to get gforth at least for starters. Now that we know that it does not set up stuff and does not have the documents and the method for gforth to find source code on the box you are working on i guess as you say gforth for debian is for nobody! I guess that has been my issue all along. At least i know i am not crazy as i have had some chats with Bernd and it seemed like apt-get was the way forward. I guess now that i have more knowledge and skills in linux i can still move forward it just seems that the gforth goal of : It should be a model, i.e. it should define all the implementation-dependent things. It should become standard, i.e. widely accepted and used. This goal is the most difficult one..... is harder to meet with debian and that sucks because i hope like you that others would adopt this stuff. Anyways going forth now so thanks for the help! PKS
[toc] | [prev] | [next] | [standalone]
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Date | 2013-07-24 21:45 +0200 |
| Message-ID | <kspat1$bdu$1@online.de> |
| In reply to | #24752 |
Anton Ertl wrote: > Looking at <http://packages.debian.org/wheezy/amd64/gforth/filelist>, > gforth-ditc is not installed at all, so if you want to create an > image, the Debian package is not for you. They also leave the > documentation away these days, so the current Debian Gforth package is > not for anyone. Installing Gforth from source like you did is the way > to go then. I think we should file a bug report on this, and claiming that the current way they distribute Gforth could be considered a copyright violation in Germany ;-). According to the Debian guidelines, the GNU FDL is considered conditionally free if there are no unchangeable sections. http://www.debian.org/News/2006/20060316 There is no invariant section in the Gforth manual. Therefore, not packaging it is just obnoxious. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-24 13:18 -0700 |
| Message-ID | <33ef0b19-cc8e-4b5d-8870-aa3ab3c889f7@googlegroups.com> |
| In reply to | #24773 |
On Wednesday, 24 July 2013 13:45:37 UTC-6, Bernd Paysan wrote: > Anton Ertl wrote: > > > Looking at <http://packages.debian.org/wheezy/amd64/gforth/filelist>, > > > gforth-ditc is not installed at all, so if you want to create an > > > image, the Debian package is not for you. They also leave the > > > documentation away these days, so the current Debian Gforth package is > > > not for anyone. Installing Gforth from source like you did is the way > > > to go then. > > > > I think we should file a bug report on this, and claiming that the current > > way they distribute Gforth could be considered a copyright violation in > > Germany ;-). > > > > According to the Debian guidelines, the GNU FDL is considered conditionally > > free if there are no unchangeable sections. > > > > http://www.debian.org/News/2006/20060316 > > > > There is no invariant section in the Gforth manual. Therefore, not > > packaging it is just obnoxious. > > > > -- > > Bernd Paysan > > "If you want it done right, you have to do it yourself" > > http://bernd-paysan.de/ Hi Bernd. Well i agree with you but could it be a mistake on there part? And i am also unclear as to how far this goes as Anton says it works on his Debian 6.0 so what happened to make it not work on the version i am on? Or as you suggest it was a choice to not set up Gforth by the Debain team! Anyway i would not have a clue how to go about filing a bug report nor would i think anybody would listen to me anyways but that is just my opinion! PKS
[toc] | [prev] | [next] | [standalone]
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Date | 2013-07-24 23:33 +0200 |
| Message-ID | <ksph6f$hnp$1@online.de> |
| In reply to | #24775 |
Philip Smith wrote: > Hi Bernd. Well i agree with you but could it be a mistake on there part? Sure. Gforth comes even with a "make debdist" target, so packaging Gforth for Debian is an absolute no-brainer. Extract the source, do ./configure --prefix=/usr make make debdist Take the resulting package, done. > And i am also unclear as to how far this goes as Anton says it works on > his Debian 6.0 so what happened to make it not work on the version i am > on? Or as you suggest it was a choice to not set up Gforth by the Debain > team! I simply think the maintainer doesn't do his job. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
[toc] | [prev] | [next] | [standalone]
| From | albert@spenarnc.xs4all.nl (Albert van der Horst) |
|---|---|
| Date | 2013-07-25 01:33 +0000 |
| Message-ID | <51f08086$0$606$e4fe514c@dreader34.news.xs4all.nl> |
| In reply to | #24777 |
In article <ksph6f$hnp$1@online.de>, Bernd Paysan <bernd.paysan@gmx.de> wrote: >Philip Smith wrote: >> Hi Bernd. Well i agree with you but could it be a mistake on there part? > >Sure. Gforth comes even with a "make debdist" target, so packaging Gforth >for Debian is an absolute no-brainer. Extract the source, do > >./configure --prefix=/usr >make >make debdist > >Take the resulting package, done. > >> And i am also unclear as to how far this goes as Anton says it works on >> his Debian 6.0 so what happened to make it not work on the version i am >> on? Or as you suggest it was a choice to not set up Gforth by the Debain >> team! > >I simply think the maintainer doesn't do his job. I've here a debian stable on an AMD64. Just installed gforth, and I've all the info stuff. Never noticed any problems. " Linux version 2.6.32-5-amd64 (Debian 2.6.32-48squeeze3) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Fri May 10 08:43:19 UTC 2013 " >-- >Bernd Paysan Groetjes Albert -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
[toc] | [prev] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2013-07-25 11:35 +0000 |
| Message-ID | <2013Jul25.133534@mips.complang.tuwien.ac.at> |
| In reply to | #24775 |
Philip Smith <philipkingsmith@gmail.com> writes:
>Hi Bernd. Well i agree with you but could it be a mistake on there part? =
>And i am also unclear as to how far this goes as Anton says it works on his=
> Debian 6.0 so what happened to make it not work on the version i am on?
They have changed the package quite a bit since then. Now it's
divided into three packages, that, when combined, contain less than
the old package. Anyway, I found gforth-ditc:
<http://packages.debian.org/wheezy/amd64/gforth-lib/filelist> shows
that it is in
/usr/lib/x86_64-linux-gnu/gforth/0.7.0/gforth-ditc
Unfortunately they did not change gforthmi accordingly.
It seems that the additional hierarchy is there for multi-arch
support. I wonder why gforth, gforth-fast are in /usr/bin/, not in
/usr/bin/x86_64-linux-gnu/ or /usr/x86_64-linux-gnu/bin/.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2013: http://www.euroforth.org/ef13/
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-25 17:27 -0700 |
| Message-ID | <64f3087c-cc77-4f0a-b074-2aa5ba953b06@googlegroups.com> |
| In reply to | #24784 |
> Philip Smith <philipkingsmith@gmail.com> writes: > > >Hi Bernd. Well i agree with you but could it be a mistake on there part? = > > >And i am also unclear as to how far this goes as Anton says it works on his= > > > Debian 6.0 so what happened to make it not work on the version i am on? > > > > They have changed the package quite a bit since then. Now it's > > divided into three packages, that, when combined, contain less than > > the old package. Anyway, I found gforth-ditc: > > > > <http://packages.debian.org/wheezy/amd64/gforth-lib/filelist> shows > > that it is in > > > > /usr/lib/x86_64-linux-gnu/gforth/0.7.0/gforth-ditc > > > > Unfortunately they did not change gforthmi accordingly. > > > > It seems that the additional hierarchy is there for multi-arch > > support. I wonder why gforth, gforth-fast are in /usr/bin/, not in > > /usr/bin/x86_64-linux-gnu/ or /usr/x86_64-linux-gnu/bin/. > > > > - anton > This is interesting Anton. I wonder though where the information for the raspberry Debian is because it is an armhl or apparently in some cases an armel if i am reading the info correct from online sources. (Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"). I also had another question! When i installed version 0.7.2 from tar located on savannah i had version 0.7.0 installed in its wacky way and to get to use version 0.7.2 i needed to change the symlink at /usr/bin so gforth would now point to the 0.7.2 version. My question is do i even need to have version 0.7.0 installed to install version 0.7.2 from a tar and if i do not need it then why do i get errors when i try installing it from a tar with out version 0.7.0 installed. I know that is a complex question but i guess it could be simplified to what is the correct method to install from a tar or at least could you direct me to a page that tells me how to do it so i can ensure i am doing this correctly! PKS
[toc] | [prev] | [next] | [standalone]
| From | Philip Smith <philipkingsmith@gmail.com> |
|---|---|
| Date | 2013-07-25 17:33 -0700 |
| Message-ID | <5e380df5-cd4f-46e7-9a62-09ffc1f6b43a@googlegroups.com> |
| In reply to | #24786 |
> This is interesting Anton. I wonder though where the information for the raspberry Debian is because it is an armhl or apparently in some cases an armel if i am reading the info correct from online sources. (Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux > > PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"). > > Found it...http://packages.debian.org/wheezy/armhf/gforth/filelist and http://packages.debian.org/wheezy/armel/gforth/filelist PKS
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.forth
csiph-web