[l2h] link Operation not permitted, latex2html on windows file system

Nasser M. Abbasi nma at 12000.org
Sun May 6 07:11:46 CEST 2012


Hello;

I run latex2html on linux but inside Virtual machine (Oracle's VBox).

My data is actually on windows NTFS disk. Since NTFS does not support
symbolic links, each time I use latex2html, I get screen full of
errors like this:

---------------------------------
Converting image #7
Error (Link): Link "img38.png" to "img7.png" failed: Operation not permitted
  at /usr/bin/latex2html line 10087
Converting image #16
Error (Link): Link "img26.png" to "img16.png" failed: Operation not permitted
  at /usr/bin/latex2html line 10087
-----------------------------------

Look at line 10087 in latex2html we see this:

---------------------------------------------
#
#  If we've found a match, rename the new image to a temporary one.
#  Then try to link the new name to the old image.
#  If the link fails, restore the temporary image.
#
             if ( $result ) {
                 my $tmp = "temporary.$IMAGE_TYPE";
                 L2hos->Unlink($tmp);
                 L2hos->Rename($image1, $tmp);
                 if (L2hos->Link($image2, $image1)) {
                     L2hos->Unlink($tmp);
                 } else {
                     L2hos->Rename($tmp, $image1);
                 }
                 return $image1;
             }
         }
     }
     $image1;
}
---------------------------------------

Would it be possible for an expert to correct this by checking
if the $(OS) is windows and bypass this whole link operation it
is trying to do (I really do not understand why is it trying
to do a symbolic link in the first place).

I like to use l2h from Linux, since all the packaging is there
and easier to setup l2h and latex there than on cygwin. So now
I use linux as my main platform for using Latex, but use it
from VBox.

Just thought to mention it. I have no idea who supports l2h
now, and so I do not know where to report any issues I see
with it, so I send this email.

thanks
--Nasser


More information about the latex2html mailing list