[Jprogramming] error with Graphviz on j807/j64/darwin

Ulrich Vollert ulrivo at gmx.de
Thu Jul 4 15:57:08 UTC 2019


Hi David,

I looked for the source code of spawn which seems to be 2!:0@]

I tried 
	2!:0 'pwd'
Or 
	2!:0 'ls'
Which work as expected.

With
	2!:0 'echo $PATH‘
I found out that there is a different path which is used by 2!:0, different from the path in the console window.

This shorter path contains only 
 	/usr/bin:/bin:/usr/sbin:/sbin
And does not contain /usr/local/bin, so
	2!:0 ‚‘which dot’
Gives no answer but instead an interface error.

I assume that this is the explanation for the interface error.

Regards,
Ulrich

> Am 04.07.2019 um 17:20 schrieb David Mitchell <davidmitchell at att.net>:
> 
> Hi Ulrich,
> 
> It looks like the dot program did what it was supposed to do, but, for some reason, J thinks there was an error from spawn.
> 
> I'll see if I can puzzle it out by reviewing the J source code.  J does use different code for spawn on Darwin than on Windows or Linux.
> 
> All the best,
> David Mitchell
> 
> On 7/4/2019 10:38, Ulrich Vollert wrote:
>> Hi David,
>> The file graphview.svg contains a svg-drawing: a circled letter 'a' pointing to a circled letter ???b' which I added to my email, but the png-image was removed from my email.
>> I assume that this svg-file is the expected answer.
>> So, I assume that dot is working as expected and without errors.
>> To answer your question completely:
>> The command ldd under Linux is not available on a Mac, but 'otool -L??? gives similar answers:
>> /usr/local/bin/dot:
>> 	/usr/local/Cellar/graphviz/2.40.1_1/lib/libgvc.6.dylib (compatibility version 7.0.0, current version 7.0.0)
>> 	/usr/local/opt/libtool/lib/libltdl.7.dylib (compatibility version 11.0.0, current version 11.1.0)
>> 	/usr/local/Cellar/graphviz/2.40.1_1/lib/libxdot.4.dylib (compatibility version 5.0.0, current version 5.0.0)
>> 	/usr/local/Cellar/graphviz/2.40.1_1/lib/libcgraph.6.dylib (compatibility version 7.0.0, current version 7.0.0)
>> 	/usr/local/Cellar/graphviz/2.40.1_1/lib/libpathplan.4.dylib (compatibility version 5.0.0, current version 5.0.0)
>> 	/usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 8.0.0)
>> 	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
>> 	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
>> 	/usr/local/Cellar/graphviz/2.40.1_1/lib/libcdt.5.dylib (compatibility version 6.0.0, current version 6.0.0)
>> Regards,
>> Ulrich
>>> Am 04.07.2019 um 14:36 schrieb David Mitchell <davidmitchell at att.net>:
>>> 
>>> Your message seems to be truncated.  Does that mean that the .svg outoput file was created, but is empty?
>>> 
>>> I have two other suggestions.
>>> 
>>> You could try putting a space after the -o and before the file name.
>>> 
>>> Also, you could try:
>>> 
>>> ldd /usr/local/bin/dot
>>> 
>>> to see if all needed libraries are available.
>>> 
>>> All the best,
>>> David Mitchell
>>> On 7/3/2019 15:51, Ulrich Vollert wrote:
>>>> The svg file contains
>>>>> Am 03.07.2019 um 21:28 schrieb David Mitchell <davidmitchell at att.net>:
>>>>> 
>>>>> Hi Ulrich,
>>>>> 
>>>>> Could you please try copying and pasting the value of spawn_arg_base_ to a console window and running it?  You may get more interesting error messages.
>>>>> 
>>>>> Thanks,
>>>>> David Mitchell
>>>>> 
>>>>> On 7/3/2019 15:08, Ulrich Vollert wrote:
>>>>>> graphview 'digraph G { a->b }',LF
>>>>> ----------------------------------------------------------------------
>>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>> ----------------------------------------------------------------------
>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



More information about the Programming mailing list