Difference between revisions of "User:Gordon/Optical Drive Testing Script/scratchpad/cdrtools installation on Ubuntu 9.10"

From FreekiWiki
Jump to navigation Jump to search
(New page: # Download smake: <code>wget ftp://ftp.berlios.de/pub/smake/smake-1.2.tar.gz</code> # <code>tar xvzf smake-1.2.tar.gz</code> # <code>cd</code> into the resulting directory # <code>./Gmake....)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
Here's how to build cdrtools on Ubuntu 9.10.
 +
 +
See also http://ubuntuforums.org/showthread.php?t=851707 (read the whole thread, it's a long-lived one but only 3 pages.)
 +
 +
==The cdrtools Ubuntu build process that works==
 +
===Install dependencies===
 +
# To be safe: <code>sudo apt-get install build-essential</code>
 +
 +
===Build cdrtools beta===
 +
As of 13 March 2010, the stable version of cdrtools at ftp://ftp.berlios.de/pub/cdrecord/cdrtools.tar.gz does NOT compile on Ubuntu 9.10, so you must use the latest development version (which at the time of writing, in case cdrtools-beta.tar.gz won't build, was [ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-2.01.01a77.tar.gz cdrtools-2.01.01a77.tar.gz]:
 +
 +
# <code>wget ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz</code>
 +
# <code>tar xvzf cdrtools-beta.tar.gz</code>
 +
# <code>cd</code> into the resulting directory
 +
# <code>./Gmake.linux</code>
 +
# <code>sudo ./Gmake.linux install</code>
 +
 +
==Build not working?==
 +
Maybe GNU make is to blame, so you could try building the cdrtools' author's 'smake' system and replacing 'Gmake.linux' in the above instructions with 'smake':
 +
 +
===Build smake===
 
# Download smake: <code>wget ftp://ftp.berlios.de/pub/smake/smake-1.2.tar.gz</code>
 
# Download smake: <code>wget ftp://ftp.berlios.de/pub/smake/smake-1.2.tar.gz</code>
 
# <code>tar xvzf smake-1.2.tar.gz</code>
 
# <code>tar xvzf smake-1.2.tar.gz</code>
Line 5: Line 26:
 
# <code>sudo ./Gmake.linux install</code>
 
# <code>sudo ./Gmake.linux install</code>
  
This still fails on 9.10 (using smake or the included Gmake.linux):
+
==Build instructions that didn't work==
 +
make COPTX=-DTRY_EXT2_FS wut?
 +
 
 +
The following still fails on 9.10 (using smake or the included Gmake.linux):
  
 
# Download cdrtools: <code>wget ftp://ftp.berlios.de/pub/cdrecord/cdrtools.tar.gz</code>
 
# Download cdrtools: <code>wget ftp://ftp.berlios.de/pub/cdrecord/cdrtools.tar.gz</code>

Latest revision as of 19:23, 13 March 2010

Here's how to build cdrtools on Ubuntu 9.10.

See also http://ubuntuforums.org/showthread.php?t=851707 (read the whole thread, it's a long-lived one but only 3 pages.)

The cdrtools Ubuntu build process that works

Install dependencies

  1. To be safe: sudo apt-get install build-essential

Build cdrtools beta

As of 13 March 2010, the stable version of cdrtools at ftp://ftp.berlios.de/pub/cdrecord/cdrtools.tar.gz does NOT compile on Ubuntu 9.10, so you must use the latest development version (which at the time of writing, in case cdrtools-beta.tar.gz won't build, was cdrtools-2.01.01a77.tar.gz:

  1. wget ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz
  2. tar xvzf cdrtools-beta.tar.gz
  3. cd into the resulting directory
  4. ./Gmake.linux
  5. sudo ./Gmake.linux install

Build not working?

Maybe GNU make is to blame, so you could try building the cdrtools' author's 'smake' system and replacing 'Gmake.linux' in the above instructions with 'smake':

Build smake

  1. Download smake: wget ftp://ftp.berlios.de/pub/smake/smake-1.2.tar.gz
  2. tar xvzf smake-1.2.tar.gz
  3. cd into the resulting directory
  4. ./Gmake.linux
  5. sudo ./Gmake.linux install

Build instructions that didn't work

make COPTX=-DTRY_EXT2_FS wut?

The following still fails on 9.10 (using smake or the included Gmake.linux):

  1. Download cdrtools: wget ftp://ftp.berlios.de/pub/cdrecord/cdrtools.tar.gz
  2. tar xvzf cdrtools.tar.gz
  3. cd into the resulting directory
  4. /opt/schily/bin/smake

Error is:

In file included from skel.c:36:
../include/schily.h:111: error: conflicting types for ‘fexecve’
/usr/include/unistd.h:524: note: previous declaration of ‘fexecve’ was here
../include/schily.h:190: error: conflicting types for ‘getline’
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here