Re: Strange behavior with 'httpGate'

2018-04-18 Thread Alexander Burger
Hi Erik,


> Everything works so long as I'm logged into the server and have restarted
> httpGate or started the picolisp process manually (same as httpGate does).
> 
> Calling external functions is broken, once I've logged out and left

Hmm, this looks like it has to do with the runtime environment. As external
executables are not found, PATH seems to be incorrect.

Can you try to call them with absolute pathnames? Like

   (pre? "{"   # make sure jwt3 returned json and not an error
  (in (list "/path/to/jwt3" (pack "--key=" Key) ...

If this works, start httpGate not just with 'su' but 'su -' to get the
right env.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Strange behavior with 'httpGate'

2018-04-18 Thread Erik Gustafson
Hi List,

I have a PL app running on a DigitalOcean droplet, behind httpGate.

The relevant entry in my 'names' file is:

   api  erik /home/erik/picoLisp loves-wake-log ./pil
loves-wake-2.0/server/main.l -main -go -wait

For this project I've been experimenting with JSON Web tokens, using my
naive 'picolisp-jwt' library (https://github.com/erdg/
picolisp-jwt/blob/master/jwt.l). It's a simple wrapper around 'jwt3', a
command line utility for encoding/decoding JWTs that ships with ubuntu
16.04.

The function 'encodeJWT' works great. But the strange behavior is that
'decodeJWT' only works under very particular conditions.

If I ssh into the server and restart 'httpGate' (and stay logged in on the
remote server) everything works as expected. But as soon as I close the ssh
session, the 'decodeJWT' function breaks - even though httpGate continues
to function as expected. Everything else works, just not 'decodeJWT'.

If I log back into the server and start the app from the command line
(using the exact command from the 'names' file, executed from the same
directory), then 'decodeJWT' works again. And that's without touching the
already running 'httpGate'. But as soon as I logout, the function breaks
again.

But regardless of whether I started the server process, or httpGate did,
'decodeJWT' receives the same arguments (according to the log file).

I thought it might be something with 'jwt3', so as an experiment, I decided
to substitute the call to 'jwt3' in 'encodeJWT'/'decodeJWT' for a different
command line utility - 'pyjwt'. When I restarted httpGate, or "manually"
started the picolisp server process, everything worked. But as soon as I
logged out and let httpGate take over, both encode/decode functions were
broken.

And now my log file was littered with 'pyjwt: can't exec' - which I believe
is the same error message that 'call' will throw if it doesn't know what to
do with its arguments? It seems that calling external programs isn't
working when the process is started by httpGate.

So to summarize:

Everything works so long as I'm logged into the server and have restarted
httpGate or started the picolisp process manually (same as httpGate does).

Calling external functions is broken, once I've logged out and left
httpGate running in the background. But everything else (that doesn't call
an external program via 'in') continues to function as expected.

Any ideas as to why this might be? This one has really thrown me for a loop!

httpGate was started with 'sudo'...

I'm using a local install of picolisp 15.11 (because some of the code in
the project uses the old style namespace calls, and also because 15.11 is
the default global install in ubuntu 16.04)

Thanks,
Erik


Re: PilBox IOException "No such file"

2018-04-18 Thread David Bloom
Thanks for the reply Alex and I hope that the community solves this one.

On Wed, Apr 18, 2018, 12:32 PM Alexander Burger  wrote:

> On Wed, Apr 18, 2018 at 03:54:56PM +, David Bloom wrote:
> > I'm not certain that is relevant but I did run into issues with pil in
> > termux that was corrected with the page below.  There's a newer fix on
> the
> > page linked below but I've been using termux-fix-shebang successfully for
> > about a year now.  I hope that this can help.
> >
> > https://wiki.termux.com/wiki/Termux-fix-shebang
>
> This is another issue. As I said, there is no /bin/ in Android,
> so Termux comes with /data/data/com.termux/files/usr/bin/bash
> and scripts must call this instead of #!/bin/bash.
>
> But here we are concerned about PilBox which has nothing to do
> with Termux.
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 03:54:56PM +, David Bloom wrote:
> I'm not certain that is relevant but I did run into issues with pil in
> termux that was corrected with the page below.  There's a newer fix on the
> page linked below but I've been using termux-fix-shebang successfully for
> about a year now.  I hope that this can help.
> 
> https://wiki.termux.com/wiki/Termux-fix-shebang

This is another issue. As I said, there is no /bin/ in Android,
so Termux comes with /data/data/com.termux/files/usr/bin/bash
and scripts must call this instead of #!/bin/bash.

But here we are concerned about PilBox which has nothing to do
with Termux.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: 32 vs 64 bit ???

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:37:47PM +0200, Manuel Cano wrote:
> I've found this also when having problems with the interpreter (bash.)
> May be file encoding or end line chars.
> 
> https://unix.stackexchange.com/questions/27054/bin-bash-no-such-file-or-directory

Hmm, "#!/bin/bash no such file or directory" is rather because there is
no "/bin/" at all in Android.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:31:42PM +0200, Arie van Wingerden wrote:
> It might have to do with a change in Android 7:
> 
> https://developer.android.com/about/versions/nougat/android-7.0-changes.html
> read paragraph:
>File system permission changes

OK, but I have it running on 7 and 8 devices with no problems
♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread David Bloom
I'm not certain that is relevant but I did run into issues with pil in
termux that was corrected with the page below.  There's a newer fix on the
page linked below but I've been using termux-fix-shebang successfully for
about a year now.  I hope that this can help.

https://wiki.termux.com/wiki/Termux-fix-shebang


Best,
David Bloom

On Wed, Apr 18, 2018, 11:39 AM Arie van Wingerden  wrote:

> It might have to do with a change in Android 7:
>
> https://developer.android.com/about/versions/nougat/android-70-changes.html
> 
> read paragraph:
>File system permission changes
>
> 2018-04-18 17:20 GMT+02:00 Alexander Burger :
>
>> On Wed, Apr 18, 2018 at 05:07:35PM +0200, Richard Z wrote:
>> > maybe the binary has the name or link to the dynamic linker hardcoded
>> and
>> > it has a different name on this system?
>>
>> This could perhaps be. The glibc library.
>>
>> But from what I tested I think we would see a different error message.
>> ♪♫ Alex
>>
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>
>
>


Re: 32 vs 64 bit ???

2018-04-18 Thread Manuel Cano
I've found this also when having problems with the interpreter (bash.)
May be file encoding or end line chars.

https://unix.stackexchange.com/questions/27054/bin-bash-no-such-file-or-directory

Kind regards,
Manu

2018-04-18 16:30 GMT+02:00 Arie van Wingerden :

> https://askubuntu.com/questions/133389/no-such-file-
> or-directory-but-the-file-exists
>


Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
It might have to do with a change in Android 7:

https://developer.android.com/about/versions/nougat/android-7.0-changes.html
read paragraph:
   File system permission changes

2018-04-18 17:20 GMT+02:00 Alexander Burger :

> On Wed, Apr 18, 2018 at 05:07:35PM +0200, Richard Z wrote:
> > maybe the binary has the name or link to the dynamic linker hardcoded
> and
> > it has a different name on this system?
>
> This could perhaps be. The glibc library.
>
> But from what I tested I think we would see a different error message.
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:11:43PM +0200, Arie van Wingerden wrote:
> I really think the device should be debugged to find the problem.

Yep, I will try to get one.


> Last 2 things:
> 1. could it have to do with moving the App to an SD Card?

Thought so too, but the screenshot of the error shows also the path which
is correct.

> 2. found this http://www.cnblogs.com/lidonghao/p/3700401.html which hints
> at a mix of 32 and 64 bit

Well, this does not apply here. I do not use an emulator, and the Java
and PicoLisp binaries are all under my control.

I stay tuned ... :)

Thanks a lot!
♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:07:35PM +0200, Richard Z wrote:
> maybe the binary has the name or link to the dynamic linker hardcoded and 
> it has a different name on this system?

This could perhaps be. The glibc library.

But from what I tested I think we would see a different error message.
♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
I really think the device should be debugged to find the problem.

Last 2 things:
1. could it have to do with moving the App to an SD Card?
2. found this http://www.cnblogs.com/lidonghao/p/3700401.html which hints
at a mix of 32 and 64 bit

At the moment I have no further leads whatever.

Would appreciate to hear about your further findings :-)

2018-04-18 16:43 GMT+02:00 Arie van Wingerden :

> Yes, indeed. Sigh :-(
>
> I just checked that both CPU and GPU of that device are both 64 bit.
> Is it possible they somehow use a 32 bit version op PILBOX?
>
> I searched in Google Play for an app which can show file permissions, but
> to no avail.
> If there is one, they could check if something is wrong there ...
>
> Maybe you could post the problem in some Android user group and ask if
> somebody has such phone, who then can help out?
>
> Otherwise you might remotely control such a device: https://play.google.
> com/store/apps/details?id=com.teamviewer.teamviewer.market.mobile=nl
>
> 2018-04-18 16:30 GMT+02:00 Alexander Burger :
>
>> On Wed, Apr 18, 2018 at 04:19:16PM +0200, Arie van Wingerden wrote:
>> > Maybe there is restricted access higher up in the path?
>>
>> But it is the app's home directory (in Android each app is its own user)

Re: Similar error on Android

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:33:36PM +0200, Arie van Wingerden wrote:
> Found similar error here:
> https://stackoverflow.com/questions/49660145/error-2-no-such-file-or-directory-when-hosting-an-executable-within-android-a

This code is problematic.

   Runtime.getRuntime().exec("/system/bin/chmod 777 " + filePath);

is not a good idea. I would not rely on the 'chmod' command being available
(i.e. busybox access). Perhaps this even gives the "no such file" ;)
There is setExecutable(true) in Java for that.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Richard Z
On Wed, Apr 18, 2018 at 04:04:43PM +0200, Alexander Burger wrote:

> Yes. The Android way, by calling 'getFilesDir().getPath();'. This gives the
> absolute path to the app's working directory, and then it is called with
> a relative path "bin/picolisp" (plus the initial *.l files).

maybe the binary has the name or link to the dynamic linker hardcoded and 
it has a different name on this system?

Richard

-- 
Name and OpenPGP keys available from pgp key servers


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:43:55PM +0200, Arie van Wingerden wrote:
> I just checked that both CPU and GPU of that device are both 64 bit.
> Is it possible they somehow use a 32 bit version op PILBOX?

This is checked by PilBox at startup with System.getProperty("os.arch")


> I searched in Google Play for an app which can show file permissions, but
> to no avail.

I do know the permissions, because I do set them :)

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
Yes, indeed. Sigh :-(

I just checked that both CPU and GPU of that device are both 64 bit.
Is it possible they somehow use a 32 bit version op PILBOX?

I searched in Google Play for an app which can show file permissions, but
to no avail.
If there is one, they could check if something is wrong there ...

Maybe you could post the problem in some Android user group and ask if
somebody has such phone, who then can help out?

Otherwise you might remotely control such a device:
https://play.google.com/store/apps/details?id=com.teamviewer.teamviewer.market.mobile=nl

2018-04-18 16:30 GMT+02:00 Alexander Burger :

> On Wed, Apr 18, 2018 at 04:19:16PM +0200, Arie van Wingerden wrote:
> > Maybe there is restricted access higher up in the path?
>
> But it is the app's home directory (in Android each app is its own user).
> And it works on all other devices.
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Similar error on Android

2018-04-18 Thread Arie van Wingerden
Found similar error here:
https://stackoverflow.com/questions/49660145/error-2-no-such-file-or-directory-when-hosting-an-executable-within-android-a

Alas, no solution, but maybe triggers some insight ...


32 vs 64 bit ???

2018-04-18 Thread Arie van Wingerden
https://askubuntu.com/questions/133389/no-such-file-or-directory-but-the-file-exists


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:19:16PM +0200, Arie van Wingerden wrote:
> Maybe there is restricted access higher up in the path?

But it is the app's home directory (in Android each app is its own user).
And it works on all other devices.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
Maybe there is restricted access higher up in the path?

2018-04-18 16:09 GMT+02:00 Alexander Burger :

> Hi Arie,
>
> > trying to help you out ...
>
> Good :)
>
>
> > https://stackoverflow.com/questions/47726155/java-io-
> ioexception-cannot-run-program-adb-exe-createprocess-error-5-access-is
> >
> > Which concerns Windows, but similar error.
> > So, maybe might have to do with user rights on the PicoLisp executable
> then?
>
> I tried some variations. 'chmod' on bin/picolisp to non-executable, or
> replacing
> it with some other (non-ELF) file, gives different errors.
>
> Only if I really do 'rm bin/picolisp' I get that error.
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi Arie,

> trying to help you out ...

Good :)


> https://stackoverflow.com/questions/47726155/java-io-ioexception-cannot-run-program-adb-exe-createprocess-error-5-access-is
> 
> Which concerns Windows, but similar error.
> So, maybe might have to do with user rights on the PicoLisp executable then?

I tried some variations. 'chmod' on bin/picolisp to non-executable, or replacing
it with some other (non-ELF) file, gives different errors.

Only if I really do 'rm bin/picolisp' I get that error.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi Richard,

> > I have a customer with Samsung Xcover 4 devices, and they get an IOException
> > 'Cannot run program "bin/picolisp" ... No such file'.
> 
> did you try the absolute path? 

Yes. The Android way, by calling 'getFilesDir().getPath();'. This gives the
absolute path to the app's working directory, and then it is called with
a relative path "bin/picolisp" (plus the initial *.l files).

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
Hi Alex,

trying to help you out ...

Found this:
https://stackoverflow.com/questions/47726155/java-io-ioexception-cannot-run-program-adb-exe-createprocess-error-5-access-is

Which concerns Windows, but similar error.
So, maybe might have to do with user rights on the PicoLisp executable then?

/Arie

2018-04-18 15:01 GMT+02:00 Alexander Burger :

> On Wed, Apr 18, 2018 at 02:48:21PM +0200, Arie van Wingerden wrote:
> > Is that device rooted maybe? In that case other rogue Apps might
> interfere
>
> I don't think so. They bought several Xcover devices for their use, and
> they are
> not power users. They got the error on all of them.
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: PilBox IOException "No such file"

2018-04-18 Thread Richard Z
On Wed, Apr 18, 2018 at 02:30:35PM +0200, Alexander Burger wrote:
> Hi all,
> 
> Anyone here who tried PilBox:
> 
> I have a customer with Samsung Xcover 4 devices, and they get an IOException
> 'Cannot run program "bin/picolisp" ... No such file'.

did you try the absolute path? 

Richard

-- 
Name and OpenPGP keys available from pgp key servers


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 02:48:21PM +0200, Arie van Wingerden wrote:
> Is that device rooted maybe? In that case other rogue Apps might interfere

I don't think so. They bought several Xcover devices for their use, and they are
not power users. They got the error on all of them.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
Is that device rooted maybe? In that case other rogue Apps might interfere
..

Checked device for viruses/malware?

2018-04-18 14:30 GMT+02:00 Alexander Burger :

> Hi all,
>
> Anyone here who tried PilBox:
>
> I have a customer with Samsung Xcover 4 devices, and they get an
> IOException
> 'Cannot run program "bin/picolisp" ... No such file'.
>
> However, the same APK works fine on other devices. How can "bin/picolisp"
> be
> missing?
>
> Any ideas?
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Maybe it has something to do with apt-get upgrade as well?
Glad to hear the issue disappeared!

2018-04-18 14:16 GMT+02:00 Joe Bogner :

> Arie, I followed your WSL steps on a newer machine and I don't see the db
> locking issue any more. Thanks! My other machine has the problem but its
> WSL is at least 6 months old - so maybe it was fixed in WSL since then or
> possibly something fixed/changed by following your instructions. Thanks,
> I'll do some additional testing later
>
> On Wed, Apr 18, 2018 at 6:23 AM, Arie van Wingerden  > wrote:
>
>> Hi Alex,
>>
>> 1) root mode was because I tried a lot of different things, but missed
>> the obvious family64.tgz 
>> 2) had a few problems with cd-ing into folders, because under Windows it
>> is a bit different
>>
>> So, after unpacking family64.tgz into a local folder in my home dir
>> everything works great!
>>
>> Now starting to really learn the PicoLisp language better.
>>
>> @Joe could you show me an example where db locking didn't work?
>>  Maybe I can test this and see if it does work correctly in the way I
>> now set up PicoLisp in WSL?
>>
>> Thx. again!
>> /Arie
>>
>> 2018-04-18 11:50 GMT+02:00 Alexander Burger :
>>
>>> Hi Arie,
>>>
>>> > *   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main
>>> -go +*
>>> > ...
>>> > *!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
>>> > directory   ?*
>>>
>>> This is probably because the "family/" directory does not exist yet. Or
>>> did you
>>> unpack the file "family64.tgz"?
>>>
>>> In general, I would recommend not to run all this as user root. Better
>>> log in as
>>> a normal user, and do in any of your local directories:
>>>
>>>$ tar xvfz /usr/share/doc/picolisp/doc/family64.tgz
>>>family.l
>>>family/
>>>family/@
>>>family/B
>>>family/C
>>>family/A
>>>$ pil /usr/share/doc/picolisp/doc/family.l -main -go +
>>>
>>> ♪♫ Alex
>>>
>>> --
>>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>>
>>
>>
>


Re: Question about tutorial ...

2018-04-18 Thread Alexander Burger
Hi Arie,

> @Joe could you show me an example where db locking didn't work?
>  Maybe I can test this and see if it does work correctly in the way I
> now set up PicoLisp in WSL?

You don't even need a DB to test the locking, the 'ctl' function will do.

To test it, open two terminals and start pil in both of them. Then in the first
one:

   : (ctl "a" (key))

This creates a file "a", locks it, and waits for you to type a key.

Then in the second terminal:

   : (ctl "a")

This should block, because the first one has still a lock on the file.

Now, if you type any key in the first terminal, both 'ctl' calls should return.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi all,

Anyone here who tried PilBox:

I have a customer with Samsung Xcover 4 devices, and they get an IOException
'Cannot run program "bin/picolisp" ... No such file'.

However, the same APK works fine on other devices. How can "bin/picolisp" be
missing?

Any ideas?
♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Question about tutorial ...

2018-04-18 Thread Joe Bogner
Arie, I followed your WSL steps on a newer machine and I don't see the db
locking issue any more. Thanks! My other machine has the problem but its
WSL is at least 6 months old - so maybe it was fixed in WSL since then or
possibly something fixed/changed by following your instructions. Thanks,
I'll do some additional testing later

On Wed, Apr 18, 2018 at 6:23 AM, Arie van Wingerden 
wrote:

> Hi Alex,
>
> 1) root mode was because I tried a lot of different things, but missed the
> obvious family64.tgz 
> 2) had a few problems with cd-ing into folders, because under Windows it
> is a bit different
>
> So, after unpacking family64.tgz into a local folder in my home dir
> everything works great!
>
> Now starting to really learn the PicoLisp language better.
>
> @Joe could you show me an example where db locking didn't work?
>  Maybe I can test this and see if it does work correctly in the way I
> now set up PicoLisp in WSL?
>
> Thx. again!
> /Arie
>
> 2018-04-18 11:50 GMT+02:00 Alexander Burger :
>
>> Hi Arie,
>>
>> > *   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go
>> +*
>> > ...
>> > *!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
>> > directory   ?*
>>
>> This is probably because the "family/" directory does not exist yet. Or
>> did you
>> unpack the file "family64.tgz"?
>>
>> In general, I would recommend not to run all this as user root. Better
>> log in as
>> a normal user, and do in any of your local directories:
>>
>>$ tar xvfz /usr/share/doc/picolisp/doc/family64.tgz
>>family.l
>>family/
>>family/@
>>family/B
>>family/C
>>family/A
>>$ pil /usr/share/doc/picolisp/doc/family.l -main -go +
>>
>> ♪♫ Alex
>>
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>
>
>


Re: Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Hi Alex,

1) root mode was because I tried a lot of different things, but missed the
obvious family64.tgz 
2) had a few problems with cd-ing into folders, because under Windows it is
a bit different

So, after unpacking family64.tgz into a local folder in my home dir
everything works great!

Now starting to really learn the PicoLisp language better.

@Joe could you show me an example where db locking didn't work?
 Maybe I can test this and see if it does work correctly in the way I
now set up PicoLisp in WSL?

Thx. again!
/Arie

2018-04-18 11:50 GMT+02:00 Alexander Burger :

> Hi Arie,
>
> > *   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go
> +*
> > ...
> > *!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
> > directory   ?*
>
> This is probably because the "family/" directory does not exist yet. Or
> did you
> unpack the file "family64.tgz"?
>
> In general, I would recommend not to run all this as user root. Better log
> in as
> a normal user, and do in any of your local directories:
>
>$ tar xvfz /usr/share/doc/picolisp/doc/family64.tgz
>family.l
>family/
>family/@
>family/B
>family/C
>family/A
>$ pil /usr/share/doc/picolisp/doc/family.l -main -go +
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: Question about tutorial ...

2018-04-18 Thread Alexander Burger
Hi Arie,

> *   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go +*
> ...
> *!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
> directory   ?*

This is probably because the "family/" directory does not exist yet. Or did you
unpack the file "family64.tgz"?

In general, I would recommend not to run all this as user root. Better log in as
a normal user, and do in any of your local directories:

   $ tar xvfz /usr/share/doc/picolisp/doc/family64.tgz
   family.l
   family/
   family/@
   family/B
   family/C
   family/A
   $ pil /usr/share/doc/picolisp/doc/family.l -main -go +

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Hi,

tried this:

*​ root@HP-Arie:/usr/share/doc/picolisp/doc#  *​
*pil @lib/http.l --server 8080 @doc/hello.l -wait*
works OK! Can use the GUI from within standard Windows in browser.

But this:
*   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go +*
fails with:


*!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
directory   ?*

I guess it has something to do with location of
​some ​
PicoLisp files?
​What am I doing wrong?


TIA
/Arie