LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-17-2004, 09:07 AM   #1
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
Lilypond - HELP!


As per a previous thread, I recently installed the pre-compiled Slack 9 package for lilypond (music notation) and installed it on my Slack 10 system. It installed without any errors. Unfortunately, I am encountering the same errors that I got when I was running lilypond on Fedora.

After creating a "test.ly" file exported from Noteedit, I tried the command "ly2dvi test.ly" which should convert the ly file to dvi as the command name suggests. My problem is that EVERY time I type this command I receive an error saying that ly2dvi is NOT a valid command. It doesn't matter if I am logged in as root or as "todd". It never works. I tried "man lilypond" and that give me a manual for lilypond. So, I know that my package had installed. For some reason I can't get ly2dvi to work.

Please help!
 
Old 07-17-2004, 09:13 AM   #2
fskmh
Member
 
Registered: Jun 2002
Location: South Africa
Distribution: Slackware64-current multilib
Posts: 235

Rep: Reputation: 55
More information is required. "file `which ly2dvi`" would be a start .
 
Old 07-17-2004, 12:20 PM   #3
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 30
There is no ly2dvi script or command. If you want to create a .dvi from a .ly file, use:
lilypond --no-ps test.ly
 
Old 07-17-2004, 01:04 PM   #4
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Quote:
More information is required. "file `which ly2dvi`" would be a start .
root@todd:/home/todd# which ly2dvi
which: no ly2dvi in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)


Quote:
Originally posted by AxelFendersson
There is no ly2dvi script or command. If you want to create a .dvi from a .ly file, use:
lilypond --no-ps test.ly
That must explain it!! The only reason I was trying to do ly2dvi is because the Noteedit website said that in order to convert a .ly file into a printable postscript (.ps) file is to first convert it to a dvi.

Soooooo, the big question is....

how do I convert a .ly file into a .ps file? I would REALLY like to be able to print!
 
Old 07-17-2004, 02:39 PM   #5
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Ok...I think I have made some progress. I created a test.ly file that I created in about 20 seconds in Noteedit. I tried the following command and received mixed results:

lilypond -PV test.ly

This line appears to be trying to convert the .ly into a .ps, HOWEVER it appears that ever attribute of the file returns an error. As a result, a .ps file is NOT generated.

What's going on?
 
Old 07-17-2004, 04:34 PM   #6
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 30
Firstly, make sure that the .ly file you're using is good. Since you're using a program to generate it automatically, I doubt that this is the problem, but it's worth making sure. This file works fine for me.

You should be able to run lilypond without any switches, this will create a .dvi, a .ps, and a .pdf. If you don't want a pdf use the --no-pdf switch, if you only want a .dvi, use --no-ps.

The other thing that may be causing problems is that the TeX utilities may not be in your path. Try running /etc/profile.d/tetex.sh before running lilypond. If you're running a login shell, all the scripts in /etc/profile.d will be run automatically, but otherwise you'll need to either run them yourself, or add them to your .bashrc.
 
Old 07-17-2004, 04:51 PM   #7
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by AxelFendersson
Firstly, make sure that the .ly file you're using is good. Since you're using a program to generate it automatically, I doubt that this is the problem, but it's worth making sure. This file works fine for me.

You should be able to run lilypond without any switches, this will create a .dvi, a .ps, and a .pdf. If you don't want a pdf use the --no-pdf switch, if you only want a .dvi, use --no-ps.

The other thing that may be causing problems is that the TeX utilities may not be in your path. Try running /etc/profile.d/tetex.sh before running lilypond. If you're running a login shell, all the scripts in /etc/profile.d will be run automatically, but otherwise you'll need to either run them yourself, or add them to your .bashrc.
Thanks for your help!!!! I tried googling lilypond and postscript and I found a lot of good links. What is quite interesting is that when I visit the Noteedit website it suggests using a "ly2dvi" script followed by another which converts to ps. I bet those were used in a previous version of Lilypond.

One other thing I read during my search was something about how Tex under Slack uses different locations (or something like that). So, special accomidations need to be made.

I see from your profile, you use Slack 10.0. How did YOU setup your system with lilypond? Did you compile from source? Did you install thed Slack 9 pack on the lilypond website? Did you have to do anything "special" to get it working? Do tell!

Thanks!
 
Old 07-17-2004, 06:55 PM   #8
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 30
Quote:
Quoth tubatodd:
Thanks for your help! I tried googling lilypond and postscript and I found a lot of good links. What is quite interesting is that when I visit the Noteedit website it suggests using a "ly2dvi" script followed by another which converts to ps. I bet those were used in a previous version of Lilypond.
Yeah, that would be my guess.

Quote:
Quoth tubatodd:
One other thing I read during my search was something about how Tex under Slack uses different locations (or something like that). So, special accomidations need to be made.
Indeed. I think that's what the tetex.sh script in /etc/profile.d is for.

Quote:
Quoth tubatodd:
I see from your profile, you use Slack 10.0. How did YOU setup your system with lilypond? Did you compile from source? Did you install thed Slack 9 pack on the lilypond website? Did you have to do anything "special" to get it working? Do tell!
Well, I was still running 9.1 when I first installed it. I used the 9.0 package from the website, since they warned that installing lilypond from source could be quite a complicated process. The only problem I had was with the TeX utilities not being in my path, but once I switched to using a login shell for my GNOME terminals (so that the scripts in profile.d were run automatically), it worked fine.
 
Old 07-17-2004, 09:58 PM   #9
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
re: AxelFendersson

I used Lilypond to compile your file and it worked without a hitch. Unfortunately, I can't seem to get any files generated by Noteedit to compile using Lilypond. BAH! I don't know what to do. I guess I need Noteedit specific help.
 
Old 07-18-2004, 03:12 PM   #10
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 30
Sounds that way. I'm afraid I've always written up the .ly files by hand, so I can't help you there. On the other hand, the lilypond markup language isn't too hard to learn, so there's always the option of doing the same yourself. Good luck!
 
Old 07-19-2004, 09:45 PM   #11
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Well, I emailed the author of Noteedit and told him of my problems. I have not yet received a reply to my email. However, when I checked the Noteedit website the site had been rolled back 2 versions. The version I am running is 2.6.4, but the website has 2.6.2 as the latest version. I wonder why that is.

I did have some success exporting my Noteedit files to abc format. I then run a script called "abcm2ps" and it converts the abc file (generated by Noteedit) to a postscript. So far all of my projects exported to abc have converted to beautiful ps files. I am really pleased.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lilypond problems on Mandrake 10.1 mcoto99 Mandriva 1 07-29-2005 08:01 PM
Problem with lilypond/lilypond-book 2.4.4 - lost latin1.enc thegnu Linux - Software 1 06-02-2005 08:48 PM
Lilypond/Rosegarden/midi problem Icarus56 Linux - Software 7 10-01-2004 01:57 PM
Has anybody compiled Lilypond-2.3.11 on Slack 10 ? rsamurti Slackware 0 08-16-2004 01:42 AM
Slackware and Lilypond (...and Tex) tubatodd Slackware 6 08-12-2004 06:55 PM


All times are GMT -5. The time now is 05:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration