LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-25-2012, 05:17 AM   #1
ArchaicBlues
LQ Newbie
 
Registered: Oct 2012
Location: Germany
Distribution: Debian
Posts: 9

Rep: Reputation: Disabled
BinUtils: The system has no more ptys. Ask your system administrator to create more.


Hallo all,
installation of BinUtils-2.22 within chapter 2.13 failed for me in the chroot environment:

root:/# expect -c "spawn ls"
spawn ls
The system has no more ptys. Ask your system administrator to create more.
while executing
"spawn ls"

When I change to root and later to lfs it seems to be ok:
root@debian:~# expect -c "spawn ls"
spawn ls
root@debian:~# exit
logout
lfs@debian:~$ expect -c "spawn ls"
spawn ls
lfs@debian:~$


I read similar threads, but could not find the problem yet..
Any suggestions are very welcome..
Thanks!
 
Old 10-25-2012, 11:27 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

Have a look http://www.linuxfromscratch.org/lfs/faq.html#no-ptys

Last edited by spiky0011; 10-25-2012 at 11:29 AM.
 
1 members found this post helpful.
Old 10-25-2012, 12:31 PM   #3
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 832

Rep: Reputation: 167Reputation: 167
Don't forget to add this line to youe /etc/fstab:

devpts /dev/pts devpts gid=4,mode=620 0 0

And create a folder in /lib/udev/devices called pts

Also I have this in my kernel config:

CONFIG_UNIX98_PTYS=y
CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

My Kernel version is 3.5.2
And it all seems automatic with this config.
 
1 members found this post helpful.
Old 10-27-2012, 02:37 AM   #4
ArchaicBlues
LQ Newbie
 
Registered: Oct 2012
Location: Germany
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: Disabled
Post

Sorry, I meant chapter 6.13...

I went thru http://www.linuxfromscratch.org/lfs/faq.html#no-ptys
and could not find a solution. My kernel version is 2.6.32-5-686
and the two Parameters
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
has not been set. Do I need to recompile the kernel now?

I see, that I messed up with gcc here, so I have to solve that first...


root@debian:~# bash version-check.sh
bash, version 4.2.36(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.22
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.19
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.7.1
(GNU libc) 2.16
grep (GNU grep) 2.14
gzip 1.5
Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.82
patch 2.6.1
Perl version='5.16.1';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.0.4
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
gcc compilation failed
 
Old 10-27-2012, 02:52 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
A few things I noticed:

1) Did you run the expect -c "spawn ls" command from within the chrooted environment? You should.

2) I see you use Debian as host, which does not suffer from this problem (I've been using Debian as host for a long time and never ran into this. I did on older Slackware versions).

3) In post #4 you post the output from the version-check.sh script. Is this done from within the chrooted environment or from your host? This version-check.sh script should be run from your host before starting with LFS. There's no point in running it from the chrooted environment. I'm asking because of this:
Code:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_s
The bold points to a LFS setting.

4) If, at any point, you stopped and started again: Did you remount the virtual file system and populate /dev again before entering the chrooted environment? (6.2.2 and 6.2.3).
 
1 members found this post helpful.
Old 10-27-2012, 03:18 AM   #6
ArchaicBlues
LQ Newbie
 
Registered: Oct 2012
Location: Germany
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thanks alot!
The problem has been solved, since I didn't remount the virtual file system and populate /dev again before entering the chrooted environment...
 
Old 10-27-2012, 03:21 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
You're welcome

BTW: Can you put up the [SOLVED] tag.
first post -> Thread Tools -> Mark this thread as solved
 
  


Reply

Tags
binutils, lfs, pty


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
"The system has no more ptys. Ask your system administrator to create more." czeslafff Linux From Scratch 10 07-16-2012 05:15 AM
system administrator tevinjoseph Linux - Newbie 12 07-05-2011 02:50 AM
Edit system wide kmenu as system administrator. okos Linux - Newbie 3 06-22-2009 10:02 PM
expect -c "spawn ls" The system has no more ptys status1 Linux From Scratch 12 03-29-2008 08:51 PM
Hi, I am the System Administrator cdestiny LinuxQuestions.org Member Intro 1 06-12-2007 03:52 AM


All times are GMT -5. The time now is 01:28 PM.

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