|
Hi, everyone
I'm building qpid from git code repository and version is 5c5088749ba26b1d3d6fb8132c14d3be0b20b959. I built it using automake and configure succeeded in creating Makefile. I guess the compiling is ok, but linking failed due to lack of libraries boost_program_option and boost_filesystem. I've installed libboost-dev, but I cannot find the two libraries in my system. I've searched a lot and have no clue how to get this around. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
What specific error do you get?
You can try adding <path-to-boost-lib-dir> to your LDFLAGS. LDFLAGS="-L<path>" ... You can also try adding the flags -lboost_system and -lboost_filesystem to your CXXFLAGS. It will work eventually. :) Salman -----Original Message----- From: Zhihua Che [mailto:[hidden email]] Sent: Thursday, March 29, 2012 2:23 AM To: [hidden email] Subject: [Building Error] cannot find boost_program_option/boost_filesystem Hi, everyone I'm building qpid from git code repository and version is 5c5088749ba26b1d3d6fb8132c14d3be0b20b959. I built it using automake and configure succeeded in creating Makefile. I guess the compiling is ok, but linking failed due to lack of libraries boost_program_option and boost_filesystem. I've installed libboost-dev, but I cannot find the two libraries in my system. I've searched a lot and have no clue how to get this around. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] CONFIDENTIALITY AND SECURITY NOTICE The contents of this message and any attachments may be confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. This message is not intended to be used by, and should not be relied upon in any way, by any third party. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Thanks for your reply.
I guess I've solved this problem and I also meet that typical link problem and address it using that fix-explicit-link-problem.patch:-) and finally make succeeded. But I'm struggling with "make install":-) which complains can't find -lqpidbroker. I'm sure qpidbroker is built and stored in src/.libs, and it still fails even if I add LDFLAGS=-L<build-dir>/src/.libs to "make install" command line. this is what I get. /usr/bin/ld: cannot find -lqpidbroker collect2: ld returned 1 exit status libtool: install: error: relink `ha.la' with the above command before installing it 在 2012年3月29日 下午10:13,Pervez, Salman <[hidden email]> 写道: > What specific error do you get? > > You can try adding <path-to-boost-lib-dir> to your LDFLAGS. > > LDFLAGS="-L<path>" ... > > You can also try adding the flags -lboost_system and -lboost_filesystem to your CXXFLAGS. > > It will work eventually. :) > > Salman > > -----Original Message----- > From: Zhihua Che [mailto:[hidden email]] > Sent: Thursday, March 29, 2012 2:23 AM > To: [hidden email] > Subject: [Building Error] cannot find boost_program_option/boost_filesystem > > Hi, everyone > > I'm building qpid from git code repository and version is > 5c5088749ba26b1d3d6fb8132c14d3be0b20b959. I built it using automake > and configure succeeded in creating Makefile. I guess the compiling is > ok, but linking failed due to lack of libraries boost_program_option > and boost_filesystem. I've installed libboost-dev, but I cannot find > the two libraries in my system. I've searched a lot and have no clue > how to get this around. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > > > CONFIDENTIALITY AND SECURITY NOTICE > > The contents of this message and any attachments may be confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. This message is not intended to be used by, and should not be relied upon in any way, by any third party. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Hi Zhihua, can you please post your build commands including configure and make? I am curious how you chose to build this and it might help solve the problem.
When you say LDFLAGS=-L<build-dir>/src/.libs to "make install", do you really mean LDFLAGS=-L<source-dir>/src/.libs to "make install"? There is no .libs dir in my build directory that I could find. Perhaps linking with the actual build dir might help, I'm not sure. But ideally make install should just find stuff. So maybe the problem is with something you might have done earlier? Salman -----Original Message----- From: Zhihua Che [mailto:[hidden email]] Sent: Friday, March 30, 2012 3:41 AM To: [hidden email] Subject: Re: [Building Error] cannot find boost_program_option/boost_filesystem Thanks for your reply. I guess I've solved this problem and I also meet that typical link problem and address it using that fix-explicit-link-problem.patch:-) and finally make succeeded. But I'm struggling with "make install":-) which complains can't find -lqpidbroker. I'm sure qpidbroker is built and stored in src/.libs, and it still fails even if I add LDFLAGS=-L<build-dir>/src/.libs to "make install" command line. this is what I get. /usr/bin/ld: cannot find -lqpidbroker collect2: ld returned 1 exit status libtool: install: error: relink `ha.la' with the above command before installing it 在 2012年3月29日 下午10:13,Pervez, Salman <[hidden email]> 写道: > What specific error do you get? > > You can try adding <path-to-boost-lib-dir> to your LDFLAGS. > > LDFLAGS="-L<path>" ... > > You can also try adding the flags -lboost_system and -lboost_filesystem to your CXXFLAGS. > > It will work eventually. :) > > Salman > > -----Original Message----- > From: Zhihua Che [mailto:[hidden email]] > Sent: Thursday, March 29, 2012 2:23 AM > To: [hidden email] > Subject: [Building Error] cannot find boost_program_option/boost_filesystem > > Hi, everyone > > I'm building qpid from git code repository and version is > 5c5088749ba26b1d3d6fb8132c14d3be0b20b959. I built it using automake > and configure succeeded in creating Makefile. I guess the compiling is > ok, but linking failed due to lack of libraries boost_program_option > and boost_filesystem. I've installed libboost-dev, but I cannot find > the two libraries in my system. I've searched a lot and have no clue > how to get this around. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > > > CONFIDENTIALITY AND SECURITY NOTICE > > The contents of this message and any attachments may be confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. This message is not intended to be used by, and should not be relied upon in any way, by any third party. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Hi, Pervez
Thanks for your patience. I guess I find a solution:-) Previously, I added LDFLAGS=-L<build-dir>/src/.libs, not <src-dir>/src/.libs. .libs is generated during building, it's where built libraries are outputed. The following is my solution. Wish It would help others. I apply the attchment patch and export LDFLAGS=-L<build-dir>/src/.libs. This patch solve the link problem which complains "cannot find libboost_program_options etc. export LDFLAGS solve the "make install" problem. The patch is originated from Cajus Pollmeier. Thanks for his work. And this one is applicable to qpid higher than 0.14 在 2012年3月30日 下午10:25,Pervez, Salman <[hidden email]> 写道: > Hi Zhihua, can you please post your build commands including configure and make? I am curious how you chose to build this and it might help solve the problem. > > When you say LDFLAGS=-L<build-dir>/src/.libs to "make install", do you really mean LDFLAGS=-L<source-dir>/src/.libs to "make install"? There is no .libs dir in my build directory that I could find. Perhaps linking with the actual build dir might help, I'm not sure. > > But ideally make install should just find stuff. So maybe the problem is with something you might have done earlier? > > Salman > > -----Original Message----- > From: Zhihua Che [mailto:[hidden email]] > Sent: Friday, March 30, 2012 3:41 AM > To: [hidden email] > Subject: Re: [Building Error] cannot find boost_program_option/boost_filesystem > > Thanks for your reply. > > I guess I've solved this problem and I also meet that typical link > problem and address it using that fix-explicit-link-problem.patch:-) > and finally make succeeded. > > But I'm struggling with "make install":-) > which complains can't find -lqpidbroker. I'm sure qpidbroker is built > and stored in src/.libs, and it still fails even if I add > LDFLAGS=-L<build-dir>/src/.libs to "make install" command line. > > this is what I get. > > /usr/bin/ld: cannot find -lqpidbroker > collect2: ld returned 1 exit status > libtool: install: error: relink `ha.la' with the above command before > installing it > > > > > 在 2012年3月29日 下午10:13,Pervez, Salman <[hidden email]> 写道: >> What specific error do you get? >> >> You can try adding <path-to-boost-lib-dir> to your LDFLAGS. >> >> LDFLAGS="-L<path>" ... >> >> You can also try adding the flags -lboost_system and -lboost_filesystem to your CXXFLAGS. >> >> It will work eventually. :) >> >> Salman >> >> -----Original Message----- >> From: Zhihua Che [mailto:[hidden email]] >> Sent: Thursday, March 29, 2012 2:23 AM >> To: [hidden email] >> Subject: [Building Error] cannot find boost_program_option/boost_filesystem >> >> Hi, everyone >> >> I'm building qpid from git code repository and version is >> 5c5088749ba26b1d3d6fb8132c14d3be0b20b959. I built it using automake >> and configure succeeded in creating Makefile. I guess the compiling is >> ok, but linking failed due to lack of libraries boost_program_option >> and boost_filesystem. I've installed libboost-dev, but I cannot find >> the two libraries in my system. I've searched a lot and have no clue >> how to get this around. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] >> >> >> >> CONFIDENTIALITY AND SECURITY NOTICE >> >> The contents of this message and any attachments may be confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. This message is not intended to be used by, and should not be relied upon in any way, by any third party. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Oh, sorry, I post a wrong patch:-(
I'll post the right one next day. 在 2012年3月30日 下午11:32,Zhihua Che <[hidden email]> 写道: > Hi, Pervez > Thanks for your patience. I guess I find a solution:-) > > Previously, I added LDFLAGS=-L<build-dir>/src/.libs, not <src-dir>/src/.libs. > .libs is generated during building, it's where built libraries are outputed. > > The following is my solution. Wish It would help others. > > I apply the attchment patch and export LDFLAGS=-L<build-dir>/src/.libs. > This patch solve the link problem which complains "cannot find > libboost_program_options etc. > export LDFLAGS solve the "make install" problem. > > The patch is originated from Cajus Pollmeier. Thanks for his work. > And this one is applicable to qpid higher than 0.14 > > 在 2012年3月30日 下午10:25,Pervez, Salman <[hidden email]> 写道: >> Hi Zhihua, can you please post your build commands including configure and make? I am curious how you chose to build this and it might help solve the problem. >> >> When you say LDFLAGS=-L<build-dir>/src/.libs to "make install", do you really mean LDFLAGS=-L<source-dir>/src/.libs to "make install"? There is no .libs dir in my build directory that I could find. Perhaps linking with the actual build dir might help, I'm not sure. >> >> But ideally make install should just find stuff. So maybe the problem is with something you might have done earlier? >> >> Salman >> >> -----Original Message----- >> From: Zhihua Che [mailto:[hidden email]] >> Sent: Friday, March 30, 2012 3:41 AM >> To: [hidden email] >> Subject: Re: [Building Error] cannot find boost_program_option/boost_filesystem >> >> Thanks for your reply. >> >> I guess I've solved this problem and I also meet that typical link >> problem and address it using that fix-explicit-link-problem.patch:-) >> and finally make succeeded. >> >> But I'm struggling with "make install":-) >> which complains can't find -lqpidbroker. I'm sure qpidbroker is built >> and stored in src/.libs, and it still fails even if I add >> LDFLAGS=-L<build-dir>/src/.libs to "make install" command line. >> >> this is what I get. >> >> /usr/bin/ld: cannot find -lqpidbroker >> collect2: ld returned 1 exit status >> libtool: install: error: relink `ha.la' with the above command before >> installing it >> >> >> >> >> 在 2012年3月29日 下午10:13,Pervez, Salman <[hidden email]> 写道: >>> What specific error do you get? >>> >>> You can try adding <path-to-boost-lib-dir> to your LDFLAGS. >>> >>> LDFLAGS="-L<path>" ... >>> >>> You can also try adding the flags -lboost_system and -lboost_filesystem to your CXXFLAGS. >>> >>> It will work eventually. :) >>> >>> Salman >>> >>> -----Original Message----- >>> From: Zhihua Che [mailto:[hidden email]] >>> Sent: Thursday, March 29, 2012 2:23 AM >>> To: [hidden email] >>> Subject: [Building Error] cannot find boost_program_option/boost_filesystem >>> >>> Hi, everyone >>> >>> I'm building qpid from git code repository and version is >>> 5c5088749ba26b1d3d6fb8132c14d3be0b20b959. I built it using automake >>> and configure succeeded in creating Makefile. I guess the compiling is >>> ok, but linking failed due to lack of libraries boost_program_option >>> and boost_filesystem. I've installed libboost-dev, but I cannot find >>> the two libraries in my system. I've searched a lot and have no clue >>> how to get this around. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [hidden email] >>> For additional commands, e-mail: [hidden email] >>> >>> >>> >>> CONFIDENTIALITY AND SECURITY NOTICE >>> >>> The contents of this message and any attachments may be confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. This message is not intended to be used by, and should not be relied upon in any way, by any third party. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] >> --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
This is the patch
在 2012年3月30日 下午11:34,Zhihua Che <[hidden email]> 写道: > Oh, sorry, I post a wrong patch:-( > I'll post the right one next day. > > 在 2012年3月30日 下午11:32,Zhihua Che <[hidden email]> 写道: >> Hi, Pervez >> Thanks for your patience. I guess I find a solution:-) >> >> Previously, I added LDFLAGS=-L<build-dir>/src/.libs, not <src-dir>/src/.libs. >> .libs is generated during building, it's where built libraries are outputed. >> >> The following is my solution. Wish It would help others. >> >> I apply the attchment patch and export LDFLAGS=-L<build-dir>/src/.libs. >> This patch solve the link problem which complains "cannot find >> libboost_program_options etc. >> export LDFLAGS solve the "make install" problem. >> >> The patch is originated from Cajus Pollmeier. Thanks for his work. >> And this one is applicable to qpid higher than 0.14 >> >> 在 2012年3月30日 下午10:25,Pervez, Salman <[hidden email]> 写道: >>> Hi Zhihua, can you please post your build commands including configure and make? I am curious how you chose to build this and it might help solve the problem. >>> >>> When you say LDFLAGS=-L<build-dir>/src/.libs to "make install", do you really mean LDFLAGS=-L<source-dir>/src/.libs to "make install"? There is no .libs dir in my build directory that I could find. Perhaps linking with the actual build dir might help, I'm not sure. >>> >>> But ideally make install should just find stuff. So maybe the problem is with something you might have done earlier? >>> >>> Salman >>> >>> -----Original Message----- >>> From: Zhihua Che [mailto:[hidden email]] >>> Sent: Friday, March 30, 2012 3:41 AM >>> To: [hidden email] >>> Subject: Re: [Building Error] cannot find boost_program_option/boost_filesystem >>> >>> Thanks for your reply. >>> >>> I guess I've solved this problem and I also meet that typical link >>> problem and address it using that fix-explicit-link-problem.patch:-) >>> and finally make succeeded. >>> >>> But I'm struggling with "make install":-) >>> which complains can't find -lqpidbroker. I'm sure qpidbroker is built >>> and stored in src/.libs, and it still fails even if I add >>> LDFLAGS=-L<build-dir>/src/.libs to "make install" command line. >>> >>> this is what I get. >>> >>> /usr/bin/ld: cannot find -lqpidbroker >>> collect2: ld returned 1 exit status >>> libtool: install: error: relink `ha.la' with the above command before >>> installing it >>> >>> >>> >>> >>> 在 2012年3月29日 下午10:13,Pervez, Salman <[hidden email]> 写道: >>>> What specific error do you get? >>>> >>>> You can try adding <path-to-boost-lib-dir> to your LDFLAGS. >>>> >>>> LDFLAGS="-L<path>" ... >>>> >>>> You can also try adding the flags -lboost_system and -lboost_filesystem to your CXXFLAGS. >>>> >>>> It will work eventually. :) >>>> >>>> Salman >>>> >>>> -----Original Message----- >>>> From: Zhihua Che [mailto:[hidden email]] >>>> Sent: Thursday, March 29, 2012 2:23 AM >>>> To: [hidden email] >>>> Subject: [Building Error] cannot find boost_program_option/boost_filesystem >>>> >>>> Hi, everyone >>>> >>>> I'm building qpid from git code repository and version is >>>> 5c5088749ba26b1d3d6fb8132c14d3be0b20b959. I built it using automake >>>> and configure succeeded in creating Makefile. I guess the compiling is >>>> ok, but linking failed due to lack of libraries boost_program_option >>>> and boost_filesystem. I've installed libboost-dev, but I cannot find >>>> the two libraries in my system. I've searched a lot and have no clue >>>> how to get this around. >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [hidden email] >>>> For additional commands, e-mail: [hidden email] >>>> >>>> >>>> >>>> CONFIDENTIALITY AND SECURITY NOTICE >>>> >>>> The contents of this message and any attachments may be confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. This message is not intended to be used by, and should not be relied upon in any way, by any third party. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [hidden email] >>> For additional commands, e-mail: [hidden email] >>> --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Hi, everyone
Sorry to bother you all. I'd say I get another problem about qpid-config. I''ve written an example using qpid::messaging. And it works:-). Furthermore, I wanna I can control my qpidd using tools like qpid-config. I installed tools following the steps below: cd <src-dir>/extras/qmf/ python setup.py build python setup.py install cd <src-dir>/tools python setup.py build sudo python setup.py install export PYTHONPATH=<src/dir>/python:<src/dir>/extras/qmf/src/py After these setups, I issued qpid-config --help, it printed help info. I thought it is installed correctly. Unfortunately, I was wrong, when I issued qpid-config add queue xxx, it complained Failed: VersionError: client: 0-10, server: 9-1 I guess it was caused by mismatch between the version of broker and that of client. But I installed them all from the same code repository. Did I miss something. Appreciate any help:-( --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
I learn from FAQ that
How to install the qpid-tools for c++ broker? * * If you are installing from source, make sure you configure with the same prefix where Python is installed. This is most likely: # configure --prefix=/usr # make # make install As for me, I configure with --prefix=/usr/local, does it matter? I really doubt if it's necessary:-( 在 2012年3月31日 下午5:10,Zhihua Che <[hidden email]> 写道: > Hi, everyone > > Sorry to bother you all. I'd say I get another problem about > qpid-config. I''ve written an example using qpid::messaging. And it > works:-). > > Furthermore, I wanna I can control my qpidd using tools like qpid-config. > I installed tools following the steps below: > > cd <src-dir>/extras/qmf/ > python setup.py build > python setup.py install > > cd <src-dir>/tools > python setup.py build > sudo python setup.py install > > export PYTHONPATH=<src/dir>/python:<src/dir>/extras/qmf/src/py > > After these setups, I issued qpid-config --help, it printed help info. > I thought it is installed correctly. > Unfortunately, I was wrong, when I issued qpid-config add queue xxx, > it complained > > Failed: VersionError: client: 0-10, server: 9-1 > > I guess it was caused by mismatch between the version of broker and > that of client. But I installed them all from the same code > repository. Did I miss something. > > Appreciate any help:-( --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
I guess I solve this. I remember I started up qpidd with non-default
port. So I issued qpid-config with explicit -b option, and it works:-) 在 2012年3月31日 下午5:51,Zhihua Che <[hidden email]> 写道: > I learn from FAQ that > > How to install the qpid-tools for c++ broker? > * > * > If you are installing from source, make sure you configure with the > same prefix where Python is installed. This is most likely: > > # configure --prefix=/usr > # make > # make install > > As for me, I configure with --prefix=/usr/local, does it matter? I > really doubt if it's necessary:-( > > 在 2012年3月31日 下午5:10,Zhihua Che <[hidden email]> 写道: >> Hi, everyone >> >> Sorry to bother you all. I'd say I get another problem about >> qpid-config. I''ve written an example using qpid::messaging. And it >> works:-). >> >> Furthermore, I wanna I can control my qpidd using tools like qpid-config. >> I installed tools following the steps below: >> >> cd <src-dir>/extras/qmf/ >> python setup.py build >> python setup.py install >> >> cd <src-dir>/tools >> python setup.py build >> sudo python setup.py install >> >> export PYTHONPATH=<src/dir>/python:<src/dir>/extras/qmf/src/py >> >> After these setups, I issued qpid-config --help, it printed help info. >> I thought it is installed correctly. >> Unfortunately, I was wrong, when I issued qpid-config add queue xxx, >> it complained >> >> Failed: VersionError: client: 0-10, server: 9-1 >> >> I guess it was caused by mismatch between the version of broker and >> that of client. But I installed them all from the same code >> repository. Did I miss something. >> >> Appreciate any help:-( --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
| Powered by Nabble | Edit this page |
