LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-28-2010, 12:39 PM   #16
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51

Quote:
Or do you mean as root do su - binutils and then open a new terminal and do the steps there.
Yes, i mean this.
 
1 members found this post helpful.
Old 04-28-2010, 12:41 PM   #17
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

I try this tomorrow because this evening is my sport evening.
I report then if I succeed.

Roelof
 
Old 04-29-2010, 02:57 AM   #18
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

One problem:

When I do su - binutils and I want to open a new terminal from prompt every command I know of opening a new terminal tells me command not found.
I tried xterm, terminal.

Roelof
 
Old 04-29-2010, 04:19 AM   #19
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
compare value of PATH variable before su and after it:
Code:
echo $PATH
Maybe you haven't setup /etc/profile or your ~/.bash_* yet, thus you don't get PATH set.

Last edited by 10110111; 04-29-2010 at 04:20 AM.
 
Old 04-29-2010, 07:59 AM   #20
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

Makes no difference. Also in chroot as root I can't get a terminal from prompt.
See this :
Code:
root:/# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
root:/# xterm
bash: xterm: command not found
root:/# terminal
bash: terminal: command not found
root:/# su - binutils
package binutils:/usr/src/binutils> echo $PATH
/usr/lib/pkgusr:/bin:/usr/bin:/tools/bin
package binutils:/usr/src/binutils> xterm
-bash: xterm: command not found
package binutils:/usr/src/binutils> terminal
-bash: terminal: command not found
package binutils:/usr/src/binutils>
Roelof

Edit :
I find something wierd,
see this:
Code:
root:/# find / -iname xterm
/tools/share/terminfo/x/xterm

root:/# /tools/share/terminfo/x/xterm
bash: /tools/share/terminfo/x/xterm: Permission denied
root:/# ls -al /tools/share/terminfo/x/xterm
-rw-r--r-- 1 root root 3258 Apr 23 15:32 /tools/share/terminfo/x/xterm

Last edited by charlie_lab; 04-29-2010 at 08:04 AM.
 
Old 04-30-2010, 03:05 AM   #21
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

Nobody who knows the answer ?

Roelof
 
Old 04-30-2010, 06:25 AM   #22
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
What exactly is the question at this point? Is it the xterm issue? Or is it still the original question from post #1? If so, then at which point did the error occur? Was it after the configure, make ...?
And having no ptys is definitely not good. When you say you have no problems with that as root, are you still root in the chroot environment or your 'normal' environment?
What is the output of
Code:
mount
 
Old 04-30-2010, 08:45 AM   #23
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
Quote:
in chroot as root I can't get a terminal from prompt
You can't because you haven't installed xterm into chroot. But you don't have to. Start xterm from the host system as non-root and then do what you need.
 
Old 05-15-2010, 04:19 PM   #24
anket
LQ Newbie
 
Registered: Feb 2008
Posts: 29

Rep: Reputation: 16
I just wanted to report that I have the same issue as well. No errors were reported when I ran the `expect -c "spawn ls"` command as root.

I was able to run the check as root; the tests were successfully completed. I just changed my build script to bypass the checks, and install the package anyway.
 
Old 05-23-2010, 05:42 PM   #25
anket
LQ Newbie
 
Registered: Feb 2008
Posts: 29

Rep: Reputation: 16
UPDATE: Solution to PTY error.

The response provided in the LFS FAQ about this issue [1] is out of date; this is because the material references an obsolete kernel option.

According to the Linux Kernel Driver Database [2], the kernel option for enabling the devpts filesystem ("CONFIG_DEVPTS_FS=y") is obsolete. The functionality is available via the pt_chown program, which is included in glibc, the GNU C Library.

The solution to this issue is to adjust permissions for the program. If using the user-based package management scheme [3], the following should fix the issue:

Quote:
chown -v root $LFS/tools/libexec/pt_chown
chmod -v u+s $LFS/tools/libexec/pt_chown
Alternatively, follow the instructions provided in another thread [4].

Hope this helps.

[1] http://www.linuxfromscratch.org//lfs/faq.html#no-ptys
[2] http://cateee.net/lkddb/web-lkddb/DEVPTS_FS.html
[3] http://www.linuxquestions.org/questi...1/#post3970065
[4] http://www.linuxquestions.org/questi...9/#post3065377

Last edited by anket; 05-31-2010 at 08:43 PM.
 
Old 05-24-2010, 06:15 AM   #26
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
HEllo Anket,

If I understood you right. I have to do these steps in the binutils source directory?

Roelof
 
Old 05-25-2010, 05:18 PM   #27
anket
LQ Newbie
 
Registered: Feb 2008
Posts: 29

Rep: Reputation: 16
Quote:
Originally Posted by charlie_lab View Post
HEllo Anket,

If I understood you right. I have to do these steps in the binutils source directory?

Roelof
Actually, the commands should be run as the superuser (i.e. root) *before* creating the binutils source directory.

The commands are using the explicit path to the pt_chown program. Therefore, they can be run from *anywhere* in the chroot environment.

Hope this helps.
 
  


Reply



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
[SOLVED] user based - Glibc problem charlie_lab Linux From Scratch 4 04-26-2010 01:41 PM
user based man pages problem charlie_lab Linux From Scratch 18 04-21-2010 07:29 AM
nvidia display drivers installation error with binutils, binutils allready installed mandrakeBren Linux - Newbie 9 01-06-2009 12:52 PM
User based Authentication in Squid instead of Terminal based. TSK2000 Linux - Software 1 12-30-2005 02:22 AM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration