Results 1 to 10 of 15
I was wondering if there are any Ubuntu users out there who would be happy to guide me through the requirements of creating a C++ app which will connect to ...
- 01-27-2012 #1
Installing cURLpp
I was wondering if there are any Ubuntu users out there who would be happy to guide me through the requirements of creating a C++ app which will connect to my website.
The website I wish to connect is mine, and has already been created. It has a login.
The IDE I have is Code::Blocks. I have it set to use the GNU GCC Compiler. It seems to me that this is not all that is needed. I tried to install something called BOOST as I thought this was needed. Failed, so I uninstalled.
I was advised by someone else to use cURLpp. I followed up on the link which was given to me. The main page for curlpp (can't include link as I don't meet min posts) does not seem to be quite friendly. Additionally, I do not see where there is any info about how to install same.
I'm looking for people who wont mind texting back and forth regarding this matter. Yes, I am a horrible Noob, but I learn quickly and eager to get started.
Frustrated, I registered and am seeking guidance.
ThankYouLast edited by LinuxOwner; 01-27-2012 at 11:26 PM. Reason: Added additional content
- 01-28-2012 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
I guess there is no Ubuntu package for curlpp, so I reckon you'll have to build it yourself. you'll need that boost lib stuff, and curl header files, too. I'm not sure what the packages are in Ubuntu, but here's my guess:
Then grab the curlpp source:Code:sudo apt-get install libcurl-dev libboost-all-dev
uncompress it:Code:wget http://curlpp.googlecode.com/files/curlpp-0.7.3.tar.gz
change dir into it:Code:tar zxf curlpp-0.7.3.tar.gz
then run the basic compilation steps (detailed in the INSTALL file):Code:cd curlpp-0.7.3
report your success (i hope) or failure (i hope not).Code:./configure make sudo make install
- 01-28-2012 #3
Atreyu,
Honestly, this is the nicest thing anyone has done all day. I'm not very versed in forums. I have been struggling today to find assistance and have met with negative results from both Google and Humans. So, Thank you for your great response, it is greatly appreciated and means there is still hope left.
OK ok ok. So as you read in my previous post, I tried to install the Boost thingy but did not have much luck. I will definitely do as you have typed and give it another go. In fact, I'm eager to finish this post so I can get started.
Again Lots O' Thanks!
- 01-28-2012 #4
Yeah. I FAIL
Results:
Smash PC FTW?Code:linuxowner@linuxowner-Desktop:~/curlpp-0.7.3$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libboost1.42-dev Suggested packages: libboost1.42-doc libboost-date-time1.42-dev libboost-filesystem1.42-dev libboost-graph1.42-dev libboost-iostreams1.42-dev libboost-math1.42-dev libboost-program-options1.42-dev libboost-python1.42-dev libboost-regex1.42-dev libboost-serialization1.42-dev libboost-signals1.42-dev libboost-system1.42-dev libboost-test1.42-dev libboost-thread1.42-dev libboost-wave1.42-dev doxygen docbook-xsl default-jdk fop The following NEW packages will be installed: libboost1.42-dev 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 8 not fully installed or removed. Need to get 0B/6,442kB of archives. After this operation, 68.7MB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 265039 files and directories currently installed.) Unpacking libboost1.42-dev (from .../libboost1.42-dev_1.42.0-3ubuntu1_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/libboost1.42-dev_1.42.0-3ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/include/boost/aligned_storage.hpp', which is also in package libboost-type-traits-dev 111111-maverick dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libboost1.42-dev_1.42.0-3ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) linuxowner@linuxowner-Desktop:~/curlpp-0.7.3$ ^C linuxowner@linuxowner-Desktop:~/curlpp-0.7.3$
Last edited by LinuxOwner; 01-28-2012 at 07:21 AM. Reason: Fixing code Tags
- 01-28-2012 #5Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
That's odd. When I run the apt-get command (the one I posted, not the one you posted - if that makes a difference), it competed successfully on my system (Ubuntu 10.04.3).
Check out this possible solution, though:
https://answers.launchpad.net/ubuntu...uestion/179025
- 01-28-2012 #6
Atreyu
I've been working on it. This is the latest error.
So, I'm going to investigate this now.Code:curl/curl.h. You need a working libcurl installation.
Last edited by LinuxOwner; 01-28-2012 at 07:24 AM. Reason: adding code tags
- 01-28-2012 #7Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
you need the libcurl-dev package i mentioned earlier, i believe.
Edit: okay, that led me to libcurl4-openssl-dev, try that one.Last edited by atreyu; 01-28-2012 at 05:02 AM. Reason: libcurl4-openssl-dev
- 01-28-2012 #8

I will keep trying.Code:linuxowner@linuxowner-Desktop:~$ sudo dpkg --force-all -i /var/cache/apt/archives/libboost1.46-dev_1.46.1-5ubuntu2_amd64.deb; sudo apt-get -f install [sudo] password for linuxowner: dpkg: error processing /var/cache/apt/archives/libboost1.46-dev_1.46.1-5ubuntu2_amd64.deb (--install): cannot access archive: No such file or directory Errors were encountered while processing: /var/cache/apt/archives/libboost1.46-dev_1.46.1-5ubuntu2_amd64.deb Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. linuxowner@linuxowner-Desktop:~$
Last edited by LinuxOwner; 01-28-2012 at 07:22 AM. Reason: Adding Code tags
- 01-28-2012 #9Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
if you'll notice in the error message, your libboost is a different version. try this:
ps: note my edit to my previous postCode:sudo dpkg --force-all -i /var/cache/apt/archives/libboost1.42-dev_1.42.0-3ubuntu1_amd64.deb
- 01-28-2012 #10
I tired your:
It ran but with an errror on everyline saying that It is attempting to overwrite something this or that. It was way too much to paste into here. Perhaps I should uninstall everything and try again. I'm so lost I don't seem to be making anything better, only worse.Code:sudo dpkg --force-all -i /var/cache/apt/archives/libboost1.42-dev_1.42.0-3ubuntu1_amd64.deb
Last edited by LinuxOwner; 01-28-2012 at 07:23 AM.


Reply With Quote