Installing Boost (was: Re: Regex problem)

I just ssh'd onto a Linux machine here at my school and compiled and ran it there, and the test code works fine, so I guess I have a problem with my boost install. All I did was download the tar, untar it, cd into the directory, and run "sudo make install". It ran for about four hours (I have an older Powerbook G4). Did I miss a step? Dave

I've just redownloaded the .tar file and untarred it and all that. I ran
./configure --with-libraries=regex
Now when I'm running the makefile (with sudo), I've gotten this warning 4
times (as of right now): warning: Unable to construct ./install-unversioned
Ideas?
Dave
On Wed, Mar 12, 2008 at 11:10 AM, Dave DeLong
I just ssh'd onto a Linux machine here at my school and compiled and ran it there, and the test code works fine, so I guess I have a problem with my boost install. All I did was download the tar, untar it, cd into the directory, and run "sudo make install". It ran for about four hours (I have an older Powerbook G4). Did I miss a step?
Dave

You went straight to 'sudo make install' without 'configure' and 'make'
first?
I don't know for certain what happened in your case, but I would not
recommend assuming any configuration in there after the unpack was suitable
for a platform and skip that step.
I usually run 'configure' to check that the 'darwin' system type is
recognized an all prerequisites are found. I also run 'make' separately from
'install' so I can run any check or test phases before installing.
That has saved me grief a few times with GMP (Gnu Multi-Precision library)
alone. GMP will appear to compile correctly with no errors and you'd think
you could just install it. Yet that build will fail significant tests. If
you blindly install, you'll have a flawed installation that will give bogus
calculation results. SInce I use GMP to generate prime pairs for asymmetric
encryption and quantitative finance calculations, among other things, that
would be very, very bad.
I would caution you to always 'configure', 'make', 'test/check, and only
then to 'install'. The time you save in the end chasing ghosts in your
machine will be worth it.
On 3/12/08, Dave DeLong
I just ssh'd onto a Linux machine here at my school and compiled and ran it there, and the test code works fine, so I guess I have a problem with my boost install. All I did was download the tar, untar it, cd into the directory, and run "sudo make install". It ran for about four hours (I have an older Powerbook G4).
Did I miss a step?
Dave
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

I followed the instructions that were found on the boost website here:
http://boost.org/more/getting_started/unix-variants.html#easy-build-and-inst...
I did ./configure and chose all the default options (there's a reason
they're the default, right?). I have no plans on using boost again in the
future. It's required in a project for one of my classes.
I did all the page said to do. If there's more to do, wouldn't it have said
to do more?
Dave
On Wed, Mar 12, 2008 at 11:43 AM, Daniel Lord
You went straight to 'sudo make install' without 'configure' and 'make' first? I don't know for certain what happened in your case, but I would not recommend assuming any configuration in there after the unpack was suitable for a platform and skip that step.
I usually run 'configure' to check that the 'darwin' system type is recognized an all prerequisites are found. I also run 'make' separately from 'install' so I can run any check or test phases before installing.
That has saved me grief a few times with GMP (Gnu Multi-Precision library) alone. GMP will appear to compile correctly with no errors and you'd think you could just install it. Yet that build will fail significant tests. If you blindly install, you'll have a flawed installation that will give bogus calculation results. SInce I use GMP to generate prime pairs for asymmetric encryption and quantitative finance calculations, among other things, that would be very, very bad.
I would caution you to always 'configure', 'make', 'test/check, and only then to 'install'. The time you save in the end chasing ghosts in your machine will be worth it.

Dave, sorry we had a race condition on our posts.
Regex compiles for me with a straght 'configure', 'make', and 'sudo make
install'. I don't use "-with-libraries=regex", I just build everything and
let it install in the default /usr/local tree. However, while the dynamic
libs install with the right permissions, on my systems (Mac Pro 10.5.2 and
MacbookPro 10.5.2) the static libs end up 'rw' for root only so I do this
afterwards to fix that:
"sudo find /usr/local/lib -regex '.*\.a' -exec chmod 666 {} \;"
Daniel
On 3/12/08, Daniel Lord
You went straight to 'sudo make install' without 'configure' and 'make' first? I don't know for certain what happened in your case, but I would not recommend assuming any configuration in there after the unpack was suitable for a platform and skip that step.
I usually run 'configure' to check that the 'darwin' system type is recognized an all prerequisites are found. I also run 'make' separately from 'install' so I can run any check or test phases before installing.
That has saved me grief a few times with GMP (Gnu Multi-Precision library) alone. GMP will appear to compile correctly with no errors and you'd think you could just install it. Yet that build will fail significant tests. If you blindly install, you'll have a flawed installation that will give bogus calculation results. SInce I use GMP to generate prime pairs for asymmetric encryption and quantitative finance calculations, among other things, that would be very, very bad.
I would caution you to always 'configure', 'make', 'test/check, and only then to 'install'. The time you save in the end chasing ghosts in your machine will be worth it.
On 3/12/08, Dave DeLong
wrote: I just ssh'd onto a Linux machine here at my school and compiled and ran it there, and the test code works fine, so I guess I have a problem with my boost install. All I did was download the tar, untar it, cd into the directory, and run "sudo make install". It ran for about four hours (I have an older Powerbook G4).
Did I miss a step?
Dave
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

I eventually gave up on this end (because it wasn't working), and installed
it via macports.org, and everything is working fine now. =)
Thanks for your help!
Dave
On Wed, Mar 12, 2008 at 1:07 PM, Daniel Lord
Dave, sorry we had a race condition on our posts. Regex compiles for me with a straght 'configure', 'make', and 'sudo make install'. I don't use "-with-libraries=regex", I just build everything and let it install in the default /usr/local tree. However, while the dynamic libs install with the right permissions, on my systems (Mac Pro 10.5.2 and MacbookPro 10.5.2) the static libs end up 'rw' for root only so I do this afterwards to fix that:
"sudo find /usr/local/lib -regex '.*\.a' -exec chmod 666 {} \;"
Daniel
participants (2)
-
Daniel Lord
-
Dave DeLong