Boost asio auf CentOS 5 installieren

2820

Ich habe versucht zu laufen:

yum install boost boost-devel boost-doc   (1/3): boost-1.33.1-15.el5.i386.rpm (2/3): boost-doc-1.33.1-15.el5.i386.rpm (3/3): boost-devel-1.33.1-15.el5.i386.rpm  

Dann wurde die boost lib erfolgreich installiert, aber wenn ich mein Skript kompiliere:

#include <boost/shared_ptr.hpp> #include <boost/enable_shared_from_this.hpp> #include <boost/bind.hpp> #include <boost/asio.hpp> #include <boost/thread/mutex.hpp> 

But when it gets to:

#include <boost/asio.hpp> 

Errors out:

Boost/asio.hpp: No such file or directory. 

Question:
How do you install ASIO on CentOS?


UPDATE

I tried:

yum install asio-devel 

Returned:

No package asio-devel available. 

UPDATE2

Checked:

/usr/include/boost 

And confirmed that asio wasn't there.
I'm trying to download the asio files and just upload it to the directory right now.
Hopefully it works.

0
Welche Dateien bietet das Boost-Devel-RPM? es sollte Asio enthalten. Sind Sie sicher, dass sie nicht in / usr / include enthalten sind? Sam Miller vor 11 Jahren 0
Asio war seit Version 1.35 (IIRC) in Boost. Vielleicht haben Sie eine frühere Version? vor 11 Jahren 0
Kann man es deinstallieren und dann erneut installieren, um es zu überprüfen? vor 11 Jahren 0
Ich habe versucht, neu zu installieren und habe nur überprüft, und ASIO fehlt wirklich in / usr / include / boost vor 11 Jahren 0
@IgorR. Es scheint, dass er CentOS 5 verwendet, das Boost 1.33.1 einschließt, das, wie Sie vermuten, asio nicht enthält. Er könnte die Boost-Version 1.41.0 verwenden, die von epel als Paket `boost141-devel` erhältlich ist. Bill Lynch vor 11 Jahren 0
@sharth hallo, sollte ich `yum boost141 installieren? boost141-devel boost141-doc? vor 11 Jahren 0

0 Antworten auf die Frage