A twisty maze...

I should learn, one of these days, that no project related to compiling and installing new package is going to be simple or "just five minutes." Wanted to check out a program for Distributed Proofreaders, to see if there's a better way than using the browser interface. That program needs, apparently, about 1/4 of CPAN. Naturally, it doesn't appear that all of the CPAN modules it wants (mostly related to Tk, which I thought had gone out years ago...) are available as packages for Ubuntu.

Also, along the way, I wanted to convert the Perl scripts included with the DP program from DOS to Unix line-ends -- and noticed that dos2unix is not installed on Ubuntu, nor does that seem to be available as a package.

So, a quick Google and I find a short script that will do the trick. (Yes, I could probably write one myself, but why bother if the LazyWeb can do it for you?) So, when all else fails:

awk '{ sub("\r$", ""); print }' winfile.txt > unixfile.txt

And that's all that's needed. Still, I decided I wanted to go ahead and install the utilities, so I checked Freshmeat and found Hany's Dos2Unix. Surely, that would be packaged for Ubuntu. Hm. Nope. Doesn't appear to be packaged for Debian, either. At this point, I think I will see if I can package it for Ubuntu and Debian and put it into the respective repositories.

Finally -- half an hour after I started a five-minute project, I've got the GuiGuts tool running. Actually a bit disappointing.

Ah well. I've whipped up a temporary package for Ubuntu AMD 64 if anyone wants it. Time to build an "official" package and see if the Ubuntu and Debian folks want it.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
This entry was posted in Linux, Open Source. Bookmark the permalink. Trackbacks are closed, but you can post a comment.

5 Comments

  1. Posted 1/23/2006 at 6:06 PM | Permalink

    Hi ! Just discoverd Your Blog via Google looking for "dos2unix ubuntu". Finally i found dos2unix in sysutils, so no need to package it.

    For the future: take a look at apt-file, which helps you find specific files in your repository.

    Cheers dockane

  2. Posted 1/24/2006 at 11:34 PM | Permalink

    Thanks. That's weird, apt-cache search didn't turn it up, I would have thought it would be in the description.

  3. Posted 4/22/2006 at 1:12 PM | Permalink

    Thanks zonker and dockane, for pointing me to sysutils after searching for dos2unix on ubuntu :-)

    As a side effect of reading this, I got pissed at apt-file not working for me.

    It turns out I needed a 'sudo apt-file update' first.

  4. mickza
    Posted 9/15/2007 at 10:46 AM | Permalink

    Just coming to grips with ubuntu feisty (normally develop on fedora) - note the following:

    mick@ubuntu-desktop:~/packages$ dos2unix
    The program 'dos2unix' is currently not installed. You can install it by typing:
    sudo apt-get install tofrodos

    .... and that was it.

  5. Posted 9/15/2007 at 12:04 PM | Permalink

    Yeah, Feisty has it going on. Unfortunately, this was pre-Feisty. I'm really looking forward to seeing what Gutsy has to offer.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled
  • Categories

  • Archives