Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Just Joined! LinuxOwner's Avatar
    Join Date
    Jan 2012
    Location
    New York
    Posts
    11

    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.

    ThankYou
    Last edited by LinuxOwner; 01-27-2012 at 11:26 PM. Reason: Added additional content

  2. #2
    Linux 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:
    Code:
    sudo apt-get install libcurl-dev libboost-all-dev
    Then grab the curlpp source:

    Code:
    wget http://curlpp.googlecode.com/files/curlpp-0.7.3.tar.gz
    uncompress it:
    Code:
    tar zxf curlpp-0.7.3.tar.gz
    change dir into it:
    Code:
    cd curlpp-0.7.3
    then run the basic compilation steps (detailed in the INSTALL file):
    Code:
    ./configure
    make
    sudo make install
    report your success (i hope) or failure (i hope not).

  3. #3
    Just Joined! LinuxOwner's Avatar
    Join Date
    Jan 2012
    Location
    New York
    Posts
    11
    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!

  4. #4
    Just Joined! LinuxOwner's Avatar
    Join Date
    Jan 2012
    Location
    New York
    Posts
    11
    Yeah. I FAIL

    Results:

    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$
    Smash PC FTW?
    Last edited by LinuxOwner; 01-28-2012 at 07:21 AM. Reason: Fixing code Tags

  5. #5
    Linux 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

  6. #6
    Just Joined! LinuxOwner's Avatar
    Join Date
    Jan 2012
    Location
    New York
    Posts
    11
    Atreyu

    I've been working on it. This is the latest error.

    Code:
    curl/curl.h. You need a working libcurl installation.
    So, I'm going to investigate this now.
    Last edited by LinuxOwner; 01-28-2012 at 07:24 AM. Reason: adding code tags

  7. #7
    Linux 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

  8. #8
    Just Joined! LinuxOwner's Avatar
    Join Date
    Jan 2012
    Location
    New York
    Posts
    11


    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:~$
    I will keep trying.
    Last edited by LinuxOwner; 01-28-2012 at 07:22 AM. Reason: Adding Code tags

  9. #9
    Linux Guru
    Join Date
    May 2011
    Posts
    1,855
    if you'll notice in the error message, your libboost is a different version. try this:

    Code:
    sudo dpkg --force-all -i /var/cache/apt/archives/libboost1.42-dev_1.42.0-3ubuntu1_amd64.deb
    ps: note my edit to my previous post

  10. #10
    Just Joined! LinuxOwner's Avatar
    Join Date
    Jan 2012
    Location
    New York
    Posts
    11
    I tired your:

    Code:
    sudo dpkg --force-all -i /var/cache/apt/archives/libboost1.42-dev_1.42.0-3ubuntu1_amd64.deb
    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.
    Last edited by LinuxOwner; 01-28-2012 at 07:23 AM.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...