Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 03-16-2005, 12:22 PM   #1
Registered: Mar 2005
Location: Ireland
Distribution: LFS, SuSE, Debian, gentoo
Posts: 93

Rep: Reputation: 15
serious perl problems

hi guys. i'm using LFS-6.0 and my problem is in chapter 5.34 (Perl 5.8.5) Everything has worked fine up to now. (Host system is SuSE9.1Pro) I get the following error

makefile: line 917 *** missing seperator. stop

i tried editing line 917 which only had a '0' on the line by commenting it out. I retried, and then there's much the same error in the x2p makefile

moving to directory /mnt/lfs/sources/perl-5.8.5/x2p

makefile: line 157 *** target missing %. stop

i'm half convinced that the problem isn't with perl at all. when i started with lfs, i mounted the partition on an ext2 filesystem. below is the output from my /etc/fstab

/dev/hda2 / reiserfs acl,user_xattr 1 1
/dev/hda4 /windows/C vfat users,gid=users,umask=0002,iocharset=utf8 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/hdb4 /media/zip auto noauto,user 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/hda6 swap swap pri=42 0 0
/dev/hda7 /mnt/lfs ext2 defaults 1 2

my /etc/mtab is

/dev/hda2 / reiserfs rw,acl,user_xattr 0 0
proc /proc proc rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
/dev/hdd /media/cdrecorder subfs ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8 0 0
/dev/hdc /media/cdrom subfs ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8 0 0
/dev/hda7 /mnt/lfs ext2 rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0

also when i did ls -l /dev/{null,zero}, i get

-rw-rw-rw- 1 root root 0 Mar 16 18:15 /dev/null
crw-rw-rw- 1 root root 1, 5 Apr 6 2004 /dev/zero

i tried changing that by doing the following:

cd /dev
rm null
mknod null c 2 2
chmod 666 null

which crashed my whole system, and yast recovered it after fsck

does anyone know what i should do next, or what i should change?

thanks in advance

Old 11-27-2006, 09:29 AM   #2
LQ Newbie
Registered: May 2004
Location: Pittsburgh, PA
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 0
I encountered this very same problem with LFS-6.2 last week.

I had to use the wayback machine to get the fix from a June 2004 version of the FAQ:

Perl fails with *** missing separator. Stop.

It's missing a device file. (AFAIK, /dev/null, but maybe /dev/zero.) Anyway, either you forgot to run MAKEDEV, or MAKEDEV failed, or you're using devfs and forgot to mount --bind it under $LFS.

If MAKEDEV failed, often all the device's ids will end with a "-". AFAIK, this happens when MAKEDEV is run without $LFS/proc mounted.

The devices should look exactly like this:

        * sk@bubook:~ $ ls -l /dev/{null,zero}
        * crw-rw-rw- 1 root root 1, 3 Dec 31 1969 /dev/null
        * crw-rw-rw- 1 root root 1, 5 Dec 31 1969 /dev/zero
        * sk@bubook:~ $
The problem may have been that /dev/null was a regular file. Removing it and recreating it may have fixed the problem, but I'm not going to go back and try again--I'm too far past the perl build now.


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
problems with perl.. amachine7 Mandriva 2 01-02-2005 03:25 PM
Perl problems gharvey Linux - Newbie 8 12-21-2004 07:21 AM
Perl problems rickenbacherus Linux - Software 1 06-08-2004 11:57 PM
Perl problems Vindane Linux - Software 1 06-05-2004 05:09 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:11 AM.

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