Hi Ron,
Thanx for your answer.
Unfortunately, ‘which dot’ doesn’t find dot.exe.
I don’t think you should run ‘which dot.exe’ because, in my opinion, GraphViz2 should not care about platform.
This accepted, it leaves two solutions:
• Modifying GraphViz distribution: creation of dot link in installation process (if possible according to filesystem).
• Modifying Perl which
Modifying GraphViz distribution is not an easy thing, and not necessary the best way.
Modifying Perl which is the best place because it already has to deal with platform specific behavior.
Perhaps Perl which could search for ‘dot’ and ‘dot.exe’ when ‘dot’ is asked in Windows platform.
Anyway, GraphViz2 Perl module does the job. So, I don’t see necessity to change the run of which.
Doc addition is the minimal thing to do to advice developer. Once link is done, it works well and you can forget it. All is kept simple and it is a good thing.
Raphaël CROCHET
ACTIA Automotive (siège social)
5, rue Jorge Semprun
B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE)
Tel. +33 (0)5 61 17 61 61
Fax + 33 (0)5 61 55 42 31
http://www.actia.com
………………………………
Avant d’ imprimer ce mail, demandez-vous si ceci est nécessaire.
Before printing this email, assess if it is really needed.
Ce courrier électronique est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée.Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites.Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier.
This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message. Thank you.
-----Message d'origine-----
De : ron@savage.net.au via RT [mailto:bug-GraphViz2@rt.cpan.org]
Envoyé : jeudi 13 avril 2017 01:07
À : Raphael Crochet <raphael.crochet@actia.fr>
Objet : Re: [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows
<URL:
https://rt.cpan.org/Ticket/Display.html?id=121090 >
Hi Raphaël
Thanx for info. Now, it's over 10 years since I ran Windows, so please remind me: I thought 'which dot' would find dot.exe. Am I wrong? If so, do you suggest I change the code to run 'which dot.exe'? I'm happy to do that when I add your suggestion to the docs.
On 13/04/17 02:44, Raphael Crochet via RT wrote:
Show quoted text> Wed Apr 12 12:44:33 2017: Request 121090 was acted upon.
> Transaction: Ticket created by raphael.crochet@actia.fr
> Queue: GraphViz2
> Subject: Run fails: unable to find dot with default option under Windows
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: raphael.crochet@actia.fr
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=121090 >
>
>
> By default, GraphWiz2 is searching for 'dot' thanks to which utility.
> Unfortunately, dot doesn't exist in the GraphViz distribution for
> Windows. The program name is 'dot.exe'. So, which fails to find it :(
>
> I am aware of the driver option but I don't want to use it as my script must run either on Windows, or on Linux. I want to keep its cross platform ability. I use both OS.
>
> A workaround to this situation is to make a logical link in Windows as we would do in Linux.
> In Windows, the link is called a hardlink.
> This trick is available only on NTFS partitions.
> On the GraphViz/bin directory, do the following:
> fsutil hardlink create dot dot.exe
> Then, which can work well and all is OK.
> Hope this can help.
> Perhaps you could add this trick in the module documentation for all poor Windows users.
>
>
> Context
>
> uname -a
> CYGWIN_NT-6.1-WOW64 POSTE1958 1.7.7(0.230/5/3) 2010-08-31 09:58 i686
> Cygwin
>
> perl -v
> This is perl 5, version 20, subversion 1 (v5.20.1) built for
> MSWin32-x86-multi-thread-64int
>
> cpanm GraphViz2
> GraphViz2 is up to date. (2.44)
>
>
>
>
>
>
> Raphaël CROCHET
>
> ACTIA Automotive (siège social)
> 5, rue Jorge Semprun
> B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) Tel. +33 (0)5 61 17 61 61
> Fax + 33 (0)5 61 55 42 31
http://www.actia.com<
http://www.actia.com/>
> ....................................
> [youTube_icon]<
http://www.youtube.com/ActiaOfficialCom> [Linkedin_icon] <
http://www.linkedin.com/company/actia>
>
>
> [signature_electronique_actia_v3]<
http://www.actia.com/>
>
> Avant d' imprimer ce mail, demandez-vous si ceci est nécessaire.
> Before printing this email, assess if it is really needed.
>
> Ce courrier électronique est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée.Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites.Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier.
> This email message is for the sole use of the intended recipient(s)
> and may contain confidential and privileged information. Any
> unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you.
>
>
--
Ron Savage - savage.net.au