Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Bruce Dubbs
Feuerbacher, Alan wrote:
 Hi,

 In the LFS book, version SVN-20120824, section 6.19.Bzip2-1.0.6,
 there is a line near the end:

 ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so

 The problem I've experienced is that when bzip2 fires up after this
 compilation step, it can't find the library libbz2.so.1.0 . When I
 make another link like this:

 ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so.1.0

 everything works fine when bzip2 is executed, i.e., libbz2.so.1.0 is
 found.

The file should be in /lib, not /usr/lib.  You may have to run ldconfig 
first.  The link should not be needed.

$ ldd /bin/bzip2
 linux-gate.so.1 (0xe000)
 libbz2.so.1.0 = /lib/libbz2.so.1.0 (0xb778b000)
 libc.so.6 = /lib/libc.so.6 (0xb75da000)
 /lib/ld-linux.so.2 (0xb77b4000)

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Feuerbacher, Alan


 -Original Message-
 From: lfs-support-boun...@linuxfromscratch.org [mailto:lfs-support-
 boun...@linuxfromscratch.org] On Behalf Of Bruce Dubbs
 Sent: Friday, August 24, 2012 12:34 PM
 To: LFS Support List
 Subject: Re: [lfs-support] Link to libbz2.so
 
 Feuerbacher, Alan wrote:
  Hi,
 
  In the LFS book, version SVN-20120824, section 6.19.Bzip2-1.0.6,
 there
  is a line near the end:
 
  ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
 
  The problem I've experienced is that when bzip2 fires up after this
  compilation step, it can't find the library libbz2.so.1.0 . When I
  make another link like this:
 
  ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so.1.0
 
  everything works fine when bzip2 is executed, i.e., libbz2.so.1.0 is
  found.
 
 The file should be in /lib, not /usr/lib.  You may have to run ldconfig
 first.  The link should not be needed.
 
 $ ldd /bin/bzip2
  linux-gate.so.1 (0xe000)
  libbz2.so.1.0 = /lib/libbz2.so.1.0 (0xb778b000)
  libc.so.6 = /lib/libc.so.6 (0xb75da000)
  /lib/ld-linux.so.2 (0xb77b4000)
 
-- Bruce

Thanks. Does that mean that the entry showing /usr/lib/libbz2.so in the LFS 
book should really be /lib/libbz2.so ?

Alan

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Bruce Dubbs
Feuerbacher, Alan wrote:

 In the LFS book, version SVN-20120824, section 6.19.Bzip2-1.0.6,
 there
 is a line near the end:

 ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so

 The problem I've experienced is that when bzip2 fires up after
 this compilation step, it can't find the library libbz2.so.1.0 .
 When I make another link like this:

 ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so.1.0

 everything works fine when bzip2 is executed, i.e., libbz2.so.1.0
 is found.

 The file should be in /lib, not /usr/lib.  You may have to run
 ldconfig first.  The link should not be needed.

 $ ldd /bin/bzip2 linux-gate.so.1 (0xe000) libbz2.so.1.0 =
 /lib/libbz2.so.1.0 (0xb778b000) libc.so.6 = /lib/libc.so.6
 (0xb75da000) /lib/ld-linux.so.2 (0xb77b4000)

 Thanks. Does that mean that the entry showing /usr/lib/libbz2.so in
 the LFS book should really be /lib/libbz2.so ?

No.  The .so files are used for the ld command when a program is being 
linked.  That should be in /usr/lib.  The .so.1 (or .so.x.y) files can 
be in /usr/lib or /lib, but programs and libraries that may be needed 
before /usr is mounted (if it is separate from the root partition) 
should be in /lib (or /bin,/sbin).  ldd loads the program for execution 
and will look for libbz2.so.1.0 in /lib.  In this case we have:

   /lib/libbz2.so.1.0 - libbz2.so.1.0.6
   /usr/lib/libbz2.so - ../../lib/libbz2.so.1.0

If you have static libraries (disliked by some of out devs), it shoudl 
be in /usr/lib, e.g. /usr/lib/libbz2.a.

Note, there are efforts under way to remove /bin, /sbin, and /lib and 
put everything in /usr.  We may do that for LFS 7.3.

   -- Bruce

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Feuerbacher, Alan


 -Original Message-
 From: lfs-support-boun...@linuxfromscratch.org [mailto:lfs-support-
 boun...@linuxfromscratch.org] On Behalf Of Bruce Dubbs
 Sent: Friday, August 24, 2012 1:24 PM
 To: LFS Support List
 Subject: Re: [lfs-support] Link to libbz2.so
 
 Feuerbacher, Alan wrote:
 
  In the LFS book, version SVN-20120824, section 6.19.Bzip2-1.0.6,
  there
  is a line near the end:
 
  ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
 
  The problem I've experienced is that when bzip2 fires up after this
  compilation step, it can't find the library libbz2.so.1.0 .
  When I make another link like this:
 
  ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so.1.0
 
  everything works fine when bzip2 is executed, i.e., libbz2.so.1.0
 is
  found.
 
  The file should be in /lib, not /usr/lib.  You may have to run
  ldconfig first.  The link should not be needed.
 
  $ ldd /bin/bzip2 linux-gate.so.1 (0xe000) libbz2.so.1.0 =
  /lib/libbz2.so.1.0 (0xb778b000) libc.so.6 = /lib/libc.so.6
  (0xb75da000) /lib/ld-linux.so.2 (0xb77b4000)
 
  Thanks. Does that mean that the entry showing /usr/lib/libbz2.so in
  the LFS book should really be /lib/libbz2.so ?
 
 No.  The .so files are used for the ld command when a program is being
 linked.  That should be in /usr/lib.  The .so.1 (or .so.x.y) files can
 be in /usr/lib or /lib, but programs and libraries that may be needed
 before /usr is mounted (if it is separate from the root partition)
 should be in /lib (or /bin,/sbin).  ldd loads the program for execution
 and will look for libbz2.so.1.0 in /lib.  In this case we have:
 
/lib/libbz2.so.1.0 - libbz2.so.1.0.6
/usr/lib/libbz2.so - ../../lib/libbz2.so.1.0

Again, thanks for your comments. However, my system doesn't behave the way I 
would expect, in terms of what you've said. Here is what I have in /lib and 
/usr/lib :

/lib/libbz2.so.1.0 - libbz2.so.1.0.6
/lib/libbz2.so.1.0.6

/usr/lib/libbz2.so - ../../lib/libbz2.so.1.0
/usr/lib/libbz2.so.1.0 - ../../lib/libbz2.so.1.0

If I do something trivial with bzip2 it works fine:

$ pwd
/usr/lib
$ bzip2 --version
bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.
   
   Copyright (C) 1996-2010 by Julian Seward.
. . .

But if I remove the link /usr/lib/libbz2.so.1.0 it quits working:

$ rm libbz2.so.1.0
$ bzip2 --version
bzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared 
object file: No such file or directory

Any idea what's going on?

 If you have static libraries (disliked by some of out devs), it shoudl
 be in /usr/lib, e.g. /usr/lib/libbz2.a.

I have that.
 
 Note, there are efforts under way to remove /bin, /sbin, and /lib and
 put everything in /usr.  We may do that for LFS 7.3.

Interesting. I'm just a beginner with LFS, so what I know about where these 
programs are placed is mostly from LFS sources. The LFS book talks about the 
FileSystem Hierarchy Standard (FHS). Do the contemplated changes reflect a 
change in this standard, or only in what LFS folks are doing?

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Bruce Dubbs
Feuerbacher, Alan wrote:

 /lib/libbz2.so.1.0 - libbz2.so.1.0.6 /usr/lib/libbz2.so -
 ../../lib/libbz2.so.1.0

 Again, thanks for your comments. However, my system doesn't behave
 the way I would expect, in terms of what you've said. Here is what I
 have in /lib and /usr/lib :

 /lib/libbz2.so.1.0 - libbz2.so.1.0.6 /lib/libbz2.so.1.0.6

 /usr/lib/libbz2.so - ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so.1.0
 - ../../lib/libbz2.so.1.0

 If I do something trivial with bzip2 it works fine:

 $ pwd /usr/lib $ bzip2 --version
  bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.

 But if I remove the link /usr/lib/libbz2.so.1.0 it quits working:

 $ rm libbz2.so.1.0 $ bzip2 --version
  bzip2: error while loading
 shared libraries: libbz2.so.1.0: cannot open shared object file: No
 such file or directory

 Any idea what's going on?

Please trim your posts to the minimum needed.

Try:
$ ldconfig -a
$ ldd /bin/bzip2

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Feuerbacher, Alan
Bruce Dubbs wrote:

 Try:
 $ ldconfig -a

My ldconfig doesn't have a -a option.

 $ ldd /bin/bzip2

Here you go. Remember that the link in question was removed.

$ ldd /bin/bzip2
linux-vdso.so.1 (0x7fffa6cb6000)
libbz2.so.1.0 = not found
libc.so.6 = /usr/lib/libc.so.6 (0x2ace46714000)
/usr/lib64/ld-linux-x86-64.so.2 (0x2ace464f1000)

Now if I put the link back:

ln -svf ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so.1.0
'/usr/lib/libbz2.so.1.0' - '../../lib/libbz2.so.1.0'

and repeat I get this:

$ ldd /bin/bzip2
linux-vdso.so.1 (0x7fff455fd000)
libbz2.so.1.0 = /usr/lib/libbz2.so.1.0 (0x2b55c2682000)
libc.so.6 = /usr/lib/libc.so.6 (0x2b55c2892000)
/usr/lib64/ld-linux-x86-64.so.2 (0x2b55c245f000)

I'm still at a loss.

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Bruce Dubbs
Feuerbacher, Alan wrote:
 Bruce Dubbs wrote:

 Try:
 $ ldconfig -a

 My ldconfig doesn't have a -a option.

Sorry. Without the link and as root:

# ldconfig -v | less

The /lib section should have libbz2.so.1.0 - libbz2.so.1.0.6

Then

$ ls -l /lib/libbz*

lrwxrwxrwx 1 root root15 Aug 22 05:24 /lib/libbz2.so.1.0 - 
libbz2.so.1.0.6
-rwxr-xr-x 1 root root 69018 Aug 22 15:43 /lib/libbz2.so.1.0.6

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Feuerbacher, Alan
Bruce Dubbs wrote:

  My ldconfig doesn't have a -a option.
 
 Sorry. Without the link and as root:
 
 # ldconfig -v | less

What does running this as root get you as opposed to running it as a regular 
user? I don't have root access. So I ran this as a regular user.

I'm doing all this in unusual circumstances but it's a long story. Basically 
I'm using LFS as a basis for installing a system in parallel with the existing 
Redhat (RHEL5) system. The system is not my own but my company's system, and 
I'm not allowed to mess with the actual operating system. Nor can we upgrade to 
a newer system for various reasons. So I have to install everything in my own 
directories. I've succeeded in doing this, and am now tying up a lot of loose 
ends.

So in these emails when I write /usr/lib, what I really have is 
/home/afbacher/LFS71/lfs80/usr/lib, and I'm chopping out the stuff I think is 
irrelevant to getting help from you gurus.

 The /lib section should have libbz2.so.1.0 - libbz2.so.1.0.6

There are no entries anywhere for this stuff.

 Then
 
 $ ls -l /lib/libbz*
 
 lrwxrwxrwx 1 root root15 Aug 22 05:24 /lib/libbz2.so.1.0 -
 libbz2.so.1.0.6
 -rwxr-xr-x 1 root root 69018 Aug 22 15:43 /lib/libbz2.so.1.0.6

Doing the equivalent, and not chopping anything out, I get this:

afbacher:~/LFS71/lfs80/lib$ ls -l /home/afbacher/LFS71/lfs80/lib/libbz*
lrwxrwxrwx 1 afbacher pmbude   15 Aug 22 10:55 
/home/afbacher/LFS71/lfs80/lib/libbz2.so.1.0 - libbz2.so.1.0.6*
-rwxr-xr-x 1 afbacher pmbude 219K Aug 22 09:41 
/home/afbacher/LFS71/lfs80/lib/libbz2.so.1.0.6*

afbacher:~/LFS71/lfs80/lib$ ls -l /home/afbacher/LFS71/lfs80/usr/lib/libbz*
-rw-r--r-- 1 afbacher pmbude 343K Aug 22 09:45 
/home/afbacher/LFS71/lfs80/usr/lib/libbz2.a
lrwxrwxrwx 1 afbacher pmbude   23 Aug 22 10:56 
/home/afbacher/LFS71/lfs80/usr/lib/libbz2.so - ../../lib/libbz2.so.1.0*
lrwxrwxrwx 1 afbacher pmbude   23 Aug 24 15:09 
/home/afbacher/LFS71/lfs80/usr/lib/libbz2.so.1.0 - ../../lib/libbz2.so.1.0*

I suspect that something to do with ldconfig is my problem, but I don't 
understand how that plays into the complete Linux system.

Alan

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Eleanore Boyd
On 8/24/2012 3:40 PM, Feuerbacher, Alan wrote:
 Bruce Dubbs wrote:

 My ldconfig doesn't have a -a option.
 Sorry. Without the link and as root:

 # ldconfig -v | less
 What does running this as root get you as opposed to running it as a regular 
 user? I don't have root access. So I ran this as a regular user.

 I'm doing all this in unusual circumstances but it's a long story. Basically 
 I'm using LFS as a basis for installing a system in parallel with the 
 existing Redhat (RHEL5) system. The system is not my own but my company's 
 system, and I'm not allowed to mess with the actual operating system. Nor can 
 we upgrade to a newer system for various reasons. So I have to install 
 everything in my own directories. I've succeeded in doing this, and am now 
 tying up a lot of loose ends.

 So in these emails when I write /usr/lib, what I really have is 
 /home/afbacher/LFS71/lfs80/usr/lib, and I'm chopping out the stuff I think is 
 irrelevant to getting help from you gurus.

 The /lib section should have libbz2.so.1.0 - libbz2.so.1.0.6
 There are no entries anywhere for this stuff.

 Then

 $ ls -l /lib/libbz*

 lrwxrwxrwx 1 root root15 Aug 22 05:24 /lib/libbz2.so.1.0 -
 libbz2.so.1.0.6
 -rwxr-xr-x 1 root root 69018 Aug 22 15:43 /lib/libbz2.so.1.0.6
 Doing the equivalent, and not chopping anything out, I get this:

 afbacher:~/LFS71/lfs80/lib$ ls -l /home/afbacher/LFS71/lfs80/lib/libbz*
 lrwxrwxrwx 1 afbacher pmbude   15 Aug 22 10:55 
 /home/afbacher/LFS71/lfs80/lib/libbz2.so.1.0 - libbz2.so.1.0.6*
 -rwxr-xr-x 1 afbacher pmbude 219K Aug 22 09:41 
 /home/afbacher/LFS71/lfs80/lib/libbz2.so.1.0.6*

 afbacher:~/LFS71/lfs80/lib$ ls -l /home/afbacher/LFS71/lfs80/usr/lib/libbz*
 -rw-r--r-- 1 afbacher pmbude 343K Aug 22 09:45 
 /home/afbacher/LFS71/lfs80/usr/lib/libbz2.a
 lrwxrwxrwx 1 afbacher pmbude   23 Aug 22 10:56 
 /home/afbacher/LFS71/lfs80/usr/lib/libbz2.so - ../../lib/libbz2.so.1.0*
 lrwxrwxrwx 1 afbacher pmbude   23 Aug 24 15:09 
 /home/afbacher/LFS71/lfs80/usr/lib/libbz2.so.1.0 - ../../lib/libbz2.so.1.0*

 I suspect that something to do with ldconfig is my problem, but I don't 
 understand how that plays into the complete Linux system.

 Alan

This might be completely off-topic, but have you tried using a VM to 
build LFS? I have seen some portable versions of VirtualBox on the 
Internet, and using a live cd to build the system inside a VM might 
solve some problems. After that, it would be up to you to prove that 
your system is better than the Redhat systems still in use at your company.

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Feuerbacher, Alan
Elly wrote:

  I suspect that something to do with ldconfig is my problem, but I
 don't understand how that plays into the complete Linux system.
 
  Alan
 
 This might be completely off-topic, but have you tried using a VM to
 build LFS? I have seen some portable versions of VirtualBox on the
 Internet, and using a live cd to build the system inside a VM might
 solve some problems. After that, it would be up to you to prove that
 your system is better than the Redhat systems still in use at your
 company.

I've not tried that, but I suspect that our sysadmin would frown on it. He's on 
vacation now so I can't say for sure.

Our ability to upgrade has a lot of dependencies on existing software. We're 
forced by various limitations to use an old version of IC design software from 
Cadence Design Systems. That in turn is qualified only on Redhat RHEL5, which 
is ancient by today's standards. So my system can't be upgraded until we begin 
using the latest Cadence software. Welcome to the world of corporate computing.

All I really want to do is compile the latest version of Octave, but that 
depends on many other programs, most of which have to be a fairly late version. 
For example, Octave depends on newer versions of gcc and glibc, as well as many 
Fortran programs. RHEL5 has versions too old to work.

At any rate, I've learned a hell of a lot by this exercise and am about 99% of 
the way there in completing the latest LFS system, but installed as a user not 
as root.

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Bruce Dubbs
Feuerbacher, Alan wrote:
 Bruce Dubbs wrote:

 My ldconfig doesn't have a -a option.

 Sorry. Without the link and as root:

 # ldconfig -v | less

 What does running this as root get you as opposed to running it as a
 regular user? I don't have root access. So I ran this as a regular
 user.

 I'm doing all this in unusual circumstances but it's a long story.
 Basically I'm using LFS as a basis for installing a system in
 parallel with the existing Redhat (RHEL5) system. The system is not
 my own but my company's system, and I'm not allowed to mess with the
 actual operating system. Nor can we upgrade to a newer system for
 various reasons. So I have to install everything in my own
 directories. I've succeeded in doing this, and am now tying up a lot
 of loose ends.

You could have told us that at the beginning!

 afbacher:~/LFS71/lfs80/lib$ ls -l
 /home/afbacher/LFS71/lfs80/lib/libbz* lrwxrwxrwx 1 afbacher pmbude
 15 Aug 22 10:55 /home/afbacher/LFS71/lfs80/lib/libbz2.so.1.0 -
 libbz2.so.1.0.6* -rwxr-xr-x 1 afbacher pmbude 219K Aug 22 09:41
 /home/afbacher/LFS71/lfs80/lib/libbz2.so.1.0.6*

Use:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/afbacher/LFS71/lfs80/lib

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Eleanore Boyd

On 8/24/2012 4:07 PM, Feuerbacher, Alan wrote:

Elly wrote:


I suspect that something to do with ldconfig is my problem, but I

don't understand how that plays into the complete Linux system.

Alan


This might be completely off-topic, but have you tried using a VM to
build LFS? I have seen some portable versions of VirtualBox on the
Internet, and using a live cd to build the system inside a VM might
solve some problems. After that, it would be up to you to prove that
your system is better than the Redhat systems still in use at your
company.

I've not tried that, but I suspect that our sysadmin would frown on it. He's on 
vacation now so I can't say for sure.

Our ability to upgrade has a lot of dependencies on existing software. We're 
forced by various limitations to use an old version of IC design software from 
Cadence Design Systems. That in turn is qualified only on Redhat RHEL5, which 
is ancient by today's standards. So my system can't be upgraded until we begin 
using the latest Cadence software. Welcome to the world of corporate computing.

All I really want to do is compile the latest version of Octave, but that 
depends on many other programs, most of which have to be a fairly late version. 
For example, Octave depends on newer versions of gcc and glibc, as well as many 
Fortran programs. RHEL5 has versions too old to work.

At any rate, I've learned a hell of a lot by this exercise and am about 99% of 
the way there in completing the latest LFS system, but installed as a user not 
as root.

Alan
Then my first suggestion would be to ask the sysadmin about testing the 
latest version of the software you're using, or test it yourself. If it 
works as good or better, then see about convincing them to upgrade 
everything to its latest version. You could also make the case that many 
of the updates are security updates, and they could be incredibly 
vulnerable the longer they wait to upgrade.


Otherwise, if you have a computer at home, you could still use a VM to 
install Fedora (the freely available version of Redhat) and run Octave, 
or even to build LFS from a live cd and have a custom system without any 
changes to your natively installed system. (Or if you have Linux on the 
home computer anyway, you could just install Octave there, unless it 
/has /to be at work. And if you have no other computer, I don't know how 
else to help, sorry.)


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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Feuerbacher, Alan
Bruce wrote:

  ... So I have to install everything in my own directories. I've
  succeeded in doing this, and am now tying up a lot of loose ends.
 
 You could have told us that at the beginning!

Sorry, I didn't think it was relevant.

 Use:
 
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/afbacher/LFS71/lfs80/lib

That worked, even after removing the link I had found to be necessary. Thanks!

Another question: For making bzip2, the LFS book has the commands:

make PREFIX=/usr install
cp -av libbz2.so* /lib

Because of my unique environment I have to add /home/afbacher/LFS71/lfs80 to 
/usr and /lib in those commands. What is it about adding that prefix that 
causes bzip2 to fail to find libbz2.so.1.0 in my environment, when it 
apparently can find that library in the normal LFS-assumed environment without 
using export LD_LIBRARY_PATH=... ? I must not be understanding something 
basic about Linux search paths.

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Feuerbacher, Alan
Elly wrote:

 Then my first suggestion would be to ask the sysadmin about testing the 
 latest version of the software you're using,
 or test it yourself. If it works as good or better, then see about convincing 
 them to upgrade everything to its latest
 version. You could also make the case that many of the updates are security 
 updates, and they could be incredibly
 vulnerable the longer they wait to upgrade.

Thanks, but I've been down that path. No luck. The folks at Cadence Design 
specifically will not support their latest software on older Redhat systems, 
and will not support their older software on newer Redhat systems. I wish I had 
more input to the System people at my company who control all this, but I have 
to live with what they provide. :(

I like the idea of security vulnerabilities and will run it by my sysadmin.

 Otherwise, if you have a computer at home, you could still use a VM to 
 install Fedora (the freely available version 
 of Redhat) and run Octave, or even to build LFS from a live cd and have a 
 custom system without any changes to
 your natively installed system. (Or if you have Linux on the home computer 
 anyway, you could just install Octave
 there, unless it has to be at work. And if you have no other computer, I 
 don't know how else to help, sorry.)

That's a good suggestion, which I've already done with Ubuntu, but the problem 
is that I need this to run here at work. I need to take output from Cadence 
software and run it through Octave, which I can't do at home.

Anyway, I really appreciate your suggestions.

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Bruce Dubbs
Feuerbacher, Alan wrote:
 Bruce wrote:

 ... So I have to install everything in my own directories. I've
 succeeded in doing this, and am now tying up a lot of loose
 ends.

 You could have told us that at the beginning!

 Sorry, I didn't think it was relevant.

 Use:

 export
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/afbacher/LFS71/lfs80/lib

 That worked, even after removing the link I had found to be
 necessary. Thanks!

 Another question: For making bzip2, the LFS book has the commands:

 make PREFIX=/usr install cp -av libbz2.so* /lib

 Because of my unique environment I have to add
 /home/afbacher/LFS71/lfs80 to /usr and /lib in those commands. What
 is it about adding that prefix that causes bzip2 to fail to find
 libbz2.so.1.0 in my environment, when it apparently can find that
 library in the normal LFS-assumed environment without using export
 LD_LIBRARY_PATH=... ? I must not be understanding something basic
 about Linux search paths.

Linux looks in /lib and /usr/lib by default.  LD_LIBRARY_PATH just says 
to add that to the search path.  /etc/ld.so.conf can also add 
directories to be searched.

   -- Bruce

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Feuerbacher, Alan
Bruce wrote:

 Linux looks in /lib and /usr/lib by default.  LD_LIBRARY_PATH just says
 to add that to the search path.  /etc/ld.so.conf can also add
 directories to be searched.

So looking in /lib and /usr/lib is hardwired?

I take it that in normal circumstances, /etc/ld.so.conf is sort of a universal 
holding file for search paths.

Is there some kind of documentation that explains all this? I've looked around 
but have not found anything that really gets into such details.

Again, thanks for your help!

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


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Randy McMurchy
Feuerbacher, Alan wrote these words on 08/24/12 17:23 CST:
 Bruce wrote:
 
 Linux looks in /lib and /usr/lib by default.  LD_LIBRARY_PATH just says
 to add that to the search path.  /etc/ld.so.conf can also add
 directories to be searched.
 
 So looking in /lib and /usr/lib is hardwired?
 
 I take it that in normal circumstances, /etc/ld.so.conf is sort of a 
 universal holding file for search paths.
 
 Is there some kind of documentation that explains all this? I've looked 
 around but have not found anything that really gets into such details.

A good starting place is simply to read the ldconfig man page!

-- 
Randy

rmlscsi: [bogomips 1003.24] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
17:46:01 up 4 days, 4:50, 1 user, load average: 0.39, 0.12, 0.04
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Link to libbz2.so

2012-08-24 Thread Baho Utot
On 08/24/2012 06:46 PM, Randy McMurchy wrote:
 Feuerbacher, Alan wrote these words on 08/24/12 17:23 CST:
 Bruce wrote:

 Linux looks in /lib and /usr/lib by default.  LD_LIBRARY_PATH just says
 to add that to the search path.  /etc/ld.so.conf can also add
 directories to be searched.
 So looking in /lib and /usr/lib is hardwired?

 I take it that in normal circumstances, /etc/ld.so.conf is sort of a 
 universal holding file for search paths.

 Is there some kind of documentation that explains all this? I've looked 
 around but have not found anything that really gets into such details.
 A good starting place is simply to read the ldconfig man page!


But that would be cheating!

-- 
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.

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