Re: [lfs-support] configure, make and make install as who

2012-01-18 Thread Dave H
hi sirs thank you for responding.

as a follow up, i have changed:

PATH=/tools/bin:/bin:/usr/bin
to
PATH=/tools/bin:/usr/local/bin:/bin:/usr/bin

and now user lfs and run m4, among the rest of the stuff.

2. you might  find it easier to using the package manager...
That never crossed my mind for some reason.  im still trying to put things
together here.  when actually sucessfully build my system, i might go back
and create a custom tasksel for the all of the programs i needed to make it
easier for other peoplee in the future.


again thank you for your replies.

sincerely,

Dave


On Tue, Jan 17, 2012 at 8:38 AM, Firerat fire...@googlemail.com wrote:


 On Jan 17, 2012 1:30 PM, Andrew Benton b3n...@gmail.com wrote:
 
  On Tue, 17 Jan 2012 03:42:35 -0500
  Dave H thegenrl...@gmail.com wrote:
 
   Hello I'm stuck at a point and I really don't know what's wrong.  Here
 is
   my situation.
  
   Gathered from the list of All Packages list page 3.2, it states
 Autoconf
   (2.68) and M4 (1.4.16)
  
   So I downloaded, extracted, M4 (1.4.16) and did the following while in
 the
   directory $LFS/sources/m4-1.4.16:
  
   ./configure(as user lfs)
   make  (as user lfs)
   sudo make install (as root)
 
  This is very wrong. In chapter 5 run make install as user lfs. If you
  do it as root you run the risk of destroying your host system. Also,
  root does not have the same environment variables set as the user lfs
  so the commands will not be executed in the same way if they are run by
  root.
 
 Wrong!
 They were installing the required version of M4 to the host

   question: should /usr/local/bin be in my path variable for user lfs?
 
  No
 
 Wrong, if the build requires things installed in /usr/local then it needs
 to be in the path

   currently $PATH=/tools/bin:/bin:/usr/bin.
   question: should i be ./configure,make,make install all as root?
 
  No. Do all of chapter 5 as the user lfs.
 
 That is correct

 well apart from changing ownership which must be done as root

 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] configure, make and make install as who

2012-01-17 Thread Dave H
Hello I'm stuck at a point and I really don't know what's wrong.  Here is
my situation.

Gathered from the list of All Packages list page 3.2, it states Autoconf
(2.68) and M4 (1.4.16)

So I downloaded, extracted, M4 (1.4.16) and did the following while in the
directory $LFS/sources/m4-1.4.16:

./configure(as user lfs)
make  (as user lfs)
sudo make install (as root)

Everything seemed to go ok.


However, when I attempt to run ./configure on Autoconf (2.68) I receive the
following error:
“
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... configure: error: no
acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.14 is recommended
“

OK, so I removed M4 (1.4.16) and did the same thing to M4 (1.4.9) ,
thinking 1.4.9 is  1.4.6, so that should work

Going back to autoconf, when I issue ./configure in
$LFS/sources/autoconf-2.68, the same problem returns.


Also, I noticed this when I issue m4 --version as user lfs:
“
Command 'm4' is available in '/usr/local/bin/m4'
The command could not be located because '/usr/local/bin' is not included
in the PATH environment variable.
m4: command not found
“

question: should /usr/local/bin be in my path variable for user lfs?
currently $PATH=/tools/bin:/bin:/usr/bin.
question: should i be ./configure,make,make install all as root?


any help is greatly appreciated as i am pretty lost here after spending
hours at this.

best regards and thanks for your time,

dave
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] configure, make and make install as who

2012-01-17 Thread Firerat
On Jan 17, 2012 8:43 AM, Dave H thegenrl...@gmail.com wrote:


 So I downloaded, extracted, M4 (1.4.16) and did the following while in
the directory $LFS/sources/m4-1.4.16:

You might find it easier to use the host system's package manager to
install the required packages

 question: should /usr/local/bin be in my path variable for user lfs?
currently $PATH=/tools/bin:/bin:/usr/bin.
That would probably work,
you should have it after tools.. And before /bin.. if it were on the end
and you have an older version in /{usr/}bin you will still be using the
older version


 question: should i be ./configure,make,make install all as root?
No, never
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] configure, make and make install as who

2012-01-17 Thread Andrew Benton
On Tue, 17 Jan 2012 03:42:35 -0500
Dave H thegenrl...@gmail.com wrote:

 Hello I'm stuck at a point and I really don't know what's wrong.  Here is
 my situation.
 
 Gathered from the list of All Packages list page 3.2, it states Autoconf
 (2.68) and M4 (1.4.16)
 
 So I downloaded, extracted, M4 (1.4.16) and did the following while in the
 directory $LFS/sources/m4-1.4.16:
 
 ./configure(as user lfs)
 make  (as user lfs)
 sudo make install (as root)

This is very wrong. In chapter 5 run make install as user lfs. If you
do it as root you run the risk of destroying your host system. Also,
root does not have the same environment variables set as the user lfs
so the commands will not be executed in the same way if they are run by
root.

 question: should /usr/local/bin be in my path variable for user lfs?

No

 currently $PATH=/tools/bin:/bin:/usr/bin.
 question: should i be ./configure,make,make install all as root?

No. Do all of chapter 5 as the user lfs.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] configure, make and make install as who

2012-01-17 Thread Firerat
On Jan 17, 2012 1:30 PM, Andrew Benton b3n...@gmail.com wrote:

 On Tue, 17 Jan 2012 03:42:35 -0500
 Dave H thegenrl...@gmail.com wrote:

  Hello I'm stuck at a point and I really don't know what's wrong.  Here
is
  my situation.
 
  Gathered from the list of All Packages list page 3.2, it states Autoconf
  (2.68) and M4 (1.4.16)
 
  So I downloaded, extracted, M4 (1.4.16) and did the following while in
the
  directory $LFS/sources/m4-1.4.16:
 
  ./configure(as user lfs)
  make  (as user lfs)
  sudo make install (as root)

 This is very wrong. In chapter 5 run make install as user lfs. If you
 do it as root you run the risk of destroying your host system. Also,
 root does not have the same environment variables set as the user lfs
 so the commands will not be executed in the same way if they are run by
 root.

Wrong!
They were installing the required version of M4 to the host

  question: should /usr/local/bin be in my path variable for user lfs?

 No

Wrong, if the build requires things installed in /usr/local then it needs
to be in the path
  currently $PATH=/tools/bin:/bin:/usr/bin.
  question: should i be ./configure,make,make install all as root?

 No. Do all of chapter 5 as the user lfs.

That is correct

well apart from changing ownership which must be done as root
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] configure, make and make install as who

2012-01-17 Thread Ken Moffat
On Tue, Jan 17, 2012 at 01:38:37PM +, Firerat wrote:
 On Jan 17, 2012 1:30 PM, Andrew Benton b3n...@gmail.com wrote:
 
 Wrong!
 They were installing the required version of M4 to the host
 
   question: should /usr/local/bin be in my path variable for user lfs?
 
  No
 
 Wrong, if the build requires things installed in /usr/local then it needs
 to be in the path
   currently $PATH=/tools/bin:/bin:/usr/bin.
   question: should i be ./configure,make,make install all as root?
 

 It's a long time since I've seen anyone mention that they compiled
programs to make the host fit for purpose - usually they just use
the package manager.  But yes, if a required package is in
/usr/local then the PATH should be
 /tools/bin:/usr/local/bin:/usr/bin:/bin

 In these circumstances, for chapter 5 it might also help to export
PKGCONFIG_PATH as
/usr/local/lib/pkgconfig:/usrlocal/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
(Try without this, to see if putting the new m4 ahead of the old one
is sufficient.  If it isn't try this)

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] configure, make and make install as who

2012-01-17 Thread Ken Moffat
On Tue, Jan 17, 2012 at 04:24:39PM +0100, Matijn Woudt wrote:
 On Tue, Jan 17, 2012 at 4:22 PM, Ken Moffat zarniwh...@ntlworld.com wrote:
 
   In these circumstances, for chapter 5 it might also help to export
  PKGCONFIG_PATH as
  /usr/local/lib/pkgconfig:/usrlocal/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
  (Try without this, to see if putting the new m4 ahead of the old one
  is sufficient.  If it isn't try this)
 
  ĸen
 
 You're missing a '/' in PKGCONFIG_PATH, the correct one would be:
 /usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
 
 Matijn
 Yes.  Thanks.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page