What CentOS 6 package name do I need to install boost header files:
yum install boost
doesn't seem to work. Is there a special compiler directive I need to use to point to the include files? Or is there another package to install?
I am not new to unix, but I am new to Mac OS. I have seen that its pretty easy to use macports to get/build the tip version of boost. But I need to get/build/install boost v1.41, not the latest boost. That is because the test framework I am working with won't compile against anything newer than boost v1.41. Though I would prefer to be able to bring the framework up to using v1.46 of boost, I am not permitted the time.
I know with Gentoo linux I can set a specific version of a lib/app that I want to emerge. Easy stuff once you know how to do it. With macports I can't find anything that is like that.
So my question: How can I use macports to get/build/install boost v1.41?
(Setup: Drupal 6.20, Boost 1.18, Nginx 0.7.67)
When the URL of the boosted node contain character →
or 中国新闻网新闻中心
, the node is correctly cached in the cache directory, and correctly reflecting the URL.
But when accessing the node, the uncached node loaded instead.
Below is the Nginx rules I use:
server {
server_name *.com *.net *.org;
location / {
root /var/www/html/$host;
index index.php;
set $boost "";
set $boost_query "_";
if ( $request_method = GET ) {
set $boost G;
}
if ($http_cookie !~ "DRUPAL_UID") {
set $boost "${boost}D";
}
if ($query_string = "") {
set $boost "${boost}Q";
}
if ( -f $document_root/cache/normal/$host$request_uri$boost_query.html ) {
set $boost "${boost}F";
}
if ($boost = GDQF){
rewrite ^.*$ /cache/normal/$host/$request_uri$boost_query.html break;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
break;
}
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/$host$fastcgi_script_name;
include fastcgi_params;
}
}
I've tried adding charset utf-8;
under http {
and under server {
. Both of them not works.
I installed boost.x86_64
on my Linux system:
$ sudo yum install boost.x86_64
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Adding en_US to language list
Loading mirror speeds from cached hostfile
* fedora: mirror.uoregon.edu
* updates: mirror.uoregon.edu
Setting up Install Process
Package boost-1.44.0-8.fc14.x86_64 already installed and latest version
Nothing to do
But when I looked for the boost files, I couldn't find them:
$ sudo repoquery --list boost-1.44.0-8.fc14.x86_64
$
This is a bit strange, as I have boost and several of its dependencies installed:
$ sudo rpm -qa | grep boost
boost-signals-1.44.0-8.fc14.x86_64
boost-graph-1.44.0-8.fc14.x86_64
boost-program-options-1.44.0-8.fc14.x86_64
boost-system-1.44.0-8.fc14.x86_64
boost-date-time-1.44.0-8.fc14.x86_64
boost-wave-1.44.0-8.fc14.x86_64
boost-serialization-1.44.0-8.fc14.x86_64
boost-1.44.0-8.fc14.x86_64
boost-thread-1.44.0-8.fc14.x86_64
boost-test-1.44.0-8.fc14.x86_64
boost-python-1.44.0-8.fc14.x86_64
boost-regex-1.44.0-8.fc14.x86_64
boost-random-1.44.0-8.fc14.x86_64
boost-filesystem-1.44.0-8.fc14.x86_64
boost-iostreams-1.44.0-8.fc14.x86_64
Is there another destination for files that repoquery
cannot find?
The reason I ask is that I have a boost dependency in a software tool I am trying to compile, and it cannot locate the boost installation (and neither can repoquery
, apparently).
Thanks for any suggestions or tips.
EDIT
I overlooked installing the headers, as well:
$ sudo yum install boost-devel.x86_64
Once I did this, I could find those headers:
$ repoquery --list boost-devel.x86_64
/usr/include/boost
/usr/include/boost/accumulators
/usr/include/boost/accumulators/accumulators.hpp
/usr/include/boost/accumulators/accumulators_fwd.hpp
/usr/include/boost/accumulators/framework
/usr/include/boost/accumulators/framework/accumulator_base.hpp
...