1. Linux Problems ????
Ok, trying to run the ed program, am getting
following message:
ed.ex:35
can't find graphics.e in .
or in /home/bend/euphoria/include
include graphics.e
^
In MY .profile, I have EUDIR and EUINC defined as
EUDIR=/usr/local/euphoria
EUINC=/usr/local/euphoria/include:/usr/local/euphoria:
export EUINC EUDIR
Anyone got any idea on WHY it's not picking this up?
--
Ben Duncan Phone (601)-355-2574 Fax (601)-355-2573 Cell (601)-946-1220
Business Network Solutions
336 Elton Road Jackson MS, 39212
"Software is like Sex, it is better when it's free" - Linus Torvalds
2. Re: Linux Problems ????
At the command prompt, try typing
echo $EUDIR
and
echo $EUINC
to determine if the variables are being set properly. If not, I would
guess that your .profile script isn't being run for some reason. Your
distro may be calling .bash-profile or .bash.rc or some other variation
instead. Check the /etc/rc.d folder (in most distros) to figure out
what's being called when.
Another possible problem could be permissions. Do you have permission
to read from the $EUINC directories?
Actually, looking at the error again, it seems you are running exu from
/home/bend/euphoria/bin. This tells me you have two copies of Euphoria
on the system, or you should set $EUDIR to /home/bend/euphoria instead
of /usr/local/euphoria.
HTH,
Mike Sabal
>>> bns at meta3.net 02/16/2004 2:17:16 PM >>>
Ok, trying to run the ed program, am getting
following message:
ed.ex:35
can't find graphics.e in .
or in /home/bend/euphoria/include
include graphics.e
^
In MY .profile, I have EUDIR and EUINC defined as
EUDIR=/usr/local/euphoria
EUINC=/usr/local/euphoria/include:/usr/local/euphoria:
export EUINC EUDIR
Anyone got any idea on WHY it's not picking this up?
3. Re: Linux Problems ????
WAY ahead of you on that one ;) ...
Just to put that at rest:
bend@bns:bend -> pwd
/home/bend
bend@bns:bend -> ls -la eu*
ls: eu*: No such file or directory
bend@bns:bend -> echo $EUINC $EUDIR
/usr/local/euphoria/include:/usr/local/euphoria:. /usr/local/euphoria
bend@bns:bend ->
AND /usr/local/euphoria is a bonifide directory:
bend@bns:bend -> ls -lA /usr/local
total 72
drwxrwxrwx 6 root root 4096 Nov 21 14:22 Acrobat5
drwxr-xr-x 2 root root 4096 Jan 16 13:58 bin
drwxr-xr-x 3 root root 4096 Oct 14 2002 doc
drwxr-xr-x 5 root root 4096 Oct 11 2002 etc
drwxrwxrwx 9 root root 4096 Feb 16 12:45 euphoria
drwxr-xr-x 2 root root 4096 Mar 20 2002 ftp
drwxr-xr-x 2 root root 4096 Mar 20 2002 games
drwxr-xr-x 4 root root 4096 Mar 20 2002 httpd
drwxr-xr-x 7 root root 4096 Jun 9 2003 include
drwxrwxrwx 4 root root 4096 Oct 23 2002 kde
drwxrwxrwx 8 root root 4096 May 4 2003 Cobol
drwxr-xr-x 8 root root 4096 Jun 9 2003 lib
drwxr-xr-x 12 root root 4096 Oct 11 2002 man
drwxrwxrwx 3 root root 4096 Feb 16 10:43 printfilters
drwxr-xr-x 2 root root 4096 Oct 11 2002 qt
drwxr-xr-x 2 root root 4096 Oct 11 2002 sbin
drwxr-xr-x 14 root root 4096 May 19 2003 share
drwxr-xr-x 2 root root 4096 Mar 20 2002 srctypedef struct
So's any more suggestions?
Any whilst I am composing here, how does one go about defining
a "structure" in eu ?
for example:
typedef struct
{
unsign short _padword; /* space no longer used */
unsign short _opens; /* number of opens on this db */
char _openlock; /* file opens have been locked out */
char _flags; /* flag bits */
char _fia_align[2]; /* 32-bit alignment */
long _reccount; /* number of bytes in record */
long _hashsize; /* current number of hash table slots
*/
/* in low 3 bytes, high byte determines */
/* which of several functions to use */
long _hashstart; /* offset to the hash table */
long _minsize; /* Minimum record size */
long _overpct; /* Minimum percentage overhead */
struct {
long size; /* Max size on this list */
long offset; /* Offset to the first block */
} _freestart[10]; /* An array of Freelists */
} _db_fia;
Thanks ...
Mike Sabal wrote:
>
>
> At the command prompt, try typing
>
> echo $EUDIR
>
> and
>
> echo $EUINC
>
--
Ben Duncan Phone (601)-355-2574 Fax (601)-355-2573 Cell (601)-946-1220
Business Network Solutions
336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be explained by stupidity"
- Hanlon's Razor
4. Re: Linux Problems ????
----- Original Message -----
From: "CoJaBo" <cojabo at suscom.net>
To: <EUforum at topica.com>
Subject: RE: Linux Problems ????
> You may have to include "/home/bend/euphoria/include" to your EU path
variables.
Can you show us the include statement?
If its:
include /home/bend/euphoria/include/graphics.e
it may need to be:
include C:/home/bend/euphoria/include/graphics.e
Some more info is needed. You are looking for an include file that resides
in a different directory than your EU path!
>
> <<SNIP> >
> >
> > Ok, trying to run the ed program, am getting
> > following message:
> >
> > ed.ex:35
> > can't find graphics.e in .
> > or in /home/bend/euphoria/include
> > include graphics.e
> > ^
> >
> > In MY .profile, I have EUDIR and EUINC defined as
> >
> > EUDIR=/usr/local/euphoria
> > EUINC=/usr/local/euphoria/include:/usr/local/euphoria:
> > export EUINC EUDIR
> >
> > Anyone got any idea on WHY it's not picking this up?
> >
> >
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>
> --
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.588 / Virus Database: 372 - Release Date: 14/02/04
>
---
--
5. Re: Linux Problems ????
Your right, there is no such thing as a "c:"
SLAPS his head with a K&R C manual ............
Gesss .... IT IS working, <LOL>, it just RUNS and loads
the ed.ew file if you DO not give it a file name, then
for WHATEVER reason, procedes to tell you that it "can't
find include directory" .......
Robert, any ideas on this ?
CoJaBo wrote:
>
>
> Hayden McKay wrote:
>
<SNIP>
--
Ben Duncan - Business Network Solutions, Inc 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
6. Re: Linux Problems ????
Ben Duncan wrote:
> Robert, any ideas on this ?
I don't know what's wrong, but here are
some random points that might you or others:
- if exu does not find an EUDIR variable,
it will try to use your HOME variable,
as if you had set EUDIR=$HOME/euphoria
- always remember to log out and log in again
after changing your .profile or whatever
- I'm not sure if .profile is where you should
set up EUDIR. I'm using .bash_profile
- be careful that you are not running the
ed editor that's a standard part of Linux.
(It doesn't sound like you are)
- remember to export EUDIR and PATH
(it looks like you are doing that)
- if you are putting the Euphoria include directory
in some public place, be sure that the files are
all readable by you
Regards,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com
7. Re: Linux Problems ????
Thanks Robert,
Turns out the problem is if there is an ed.err file,
it does the display screen as if there was something wrong.
Removing any/all instances of an *.err clears the problem up.
FWIW, yes, the .bash_profile is where most of the stuff one would
put there customized settings. However, allowing for standard SYS V
protocol, bash will look (actually it's the .bash_rc) to see, as the
last thing, if there exists a .profile and source that.
If you want the EUDIR/EUINC stuff to be globalized, putting
and exporting them in /etc/profile is the usual method. Also
have discovered that if you are using an "xterm" under a GUI,
you must use the parameters of "xterm -ls" to force a "login"
style (Really means read the profiles) to get the variables
set. However, this seems not to read the users .profile.
Oh well, go figure.
Any chance euphoria will ever support a "structure"
definition much like C?
Robert Craig wrote:
>
<SNIP>
--
Ben Duncan - Business Network Solutions, Inc 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor