Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tai@midget:~/bin/pastebincl-1.0/src$ make
- g++ -lcurl -c CurlPost.cpp -Wall -Werror -O2 -o CurlPost.o
- In file included from CurlPost.cpp:34:
- CurlPost.h:39:23: error: curl/curl.h: No such file or directory
- CurlPost.cpp: In member function 'std::string CurlPost::execute()':
- CurlPost.cpp:43: error: 'CURL' was not declared in this scope
- CurlPost.cpp:43: error: 'curl' was not declared in this scope
- CurlPost.cpp:44: error: 'CURLcode' was not declared in this scope
- CurlPost.cpp:44: error: expected `;' before 'res'
- CurlPost.cpp:54: error: 'CURLFORM_COPYNAME' was not declared in this scope
- CurlPost.cpp:55: error: 'CURLFORM_COPYCONTENTS' was not declared in this scope
- CurlPost.cpp:56: error: 'CURLFORM_END' was not declared in this scope
- CurlPost.cpp:56: error: 'curl_formadd' was not declared in this scope
- CurlPost.cpp:60: error: 'curl_easy_init' was not declared in this scope
- CurlPost.cpp:61: error: 'curl_slist_append' was not declared in this scope
- CurlPost.cpp:66: error: 'CURLOPT_URL' was not declared in this scope
- CurlPost.cpp:66: error: 'curl_easy_setopt' was not declared in this scope
- CurlPost.cpp:67: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
- CurlPost.cpp:68: error: 'CURLOPT_HTTPPOST' was not declared in this scope
- CurlPost.cpp:69: error: 'CURLOPT_WRITEFUNCTION' was not declared in this scope
- CurlPost.cpp:70: error: 'CURLOPT_WRITEDATA' was not declared in this scope
- CurlPost.cpp:73: error: 'res' was not declared in this scope
- CurlPost.cpp:73: error: 'curl_easy_perform' was not declared in this scope
- CurlPost.cpp:76: error: 'curl_easy_cleanup' was not declared in this scope
- CurlPost.cpp:77: error: 'curl_formfree' was not declared in this scope
- CurlPost.cpp:78: error: 'curl_slist_free_all' was not declared in this scope
- CurlPost.cpp: In static member function 'static void CurlPost::init()':
- CurlPost.cpp:90: error: 'CURL_GLOBAL_ALL' was not declared in this scope
- CurlPost.cpp:90: error: 'curl_global_init' was not declared in this scope
- CurlPost.cpp: In static member function 'static void CurlPost::clean()':
- CurlPost.cpp:95: error: 'curl_global_cleanup' was not declared in this scope
- make: *** [CurlPost.o] Error 1
- tai@midget:~/bin/pastebincl-1.0/src$ which curl
- /usr/bin/curl
- tai@midget:/opt/src/pastebincl-1.0$ sudo apt-get install libcurl4-openssl-dev
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- comerr-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev libssh2-1-dev libssl-dev pkg-config zlib1g-dev
- Suggested packages:
- doc-base libcurl3-dbg krb5-doc
- The following NEW packages will be installed:
- comerr-dev libcurl4-openssl-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev libssh2-1-dev libssl-dev pkg-config zlib1g-dev
- 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
- Need to get 5131kB of archives.
- After this operation, 13.9MB of additional disk space will be used.
- Do you want to continue [Y/n]? y
- Get:1 http://archive.debian.org lenny/main zlib1g-dev 1:1.2.3.3.dfsg-12 [157kB]
- Get:2 http://archive.debian.org lenny/main libssl-dev 0.9.8g-15+lenny16 [2114kB]
- Get:3 http://archive.debian.org lenny/main pkg-config 0.22-1 [52.2kB]
- Get:4 http://archive.debian.org lenny/main libidn11-dev 1.8+20080606-1 [574kB]
- Get:5 http://archive.debian.org lenny/main libkadm55 1.6.dfsg.4~beta1-5lenny7 [155kB]
- Get:6 http://archive.debian.org lenny/main comerr-dev 2.1-1.41.3-1 [42.5kB]
- Get:7 http://archive.debian.org lenny/main libkrb5-dev 1.6.dfsg.4~beta1-5lenny7 [92.4kB]
- Get:8 http://archive.debian.org lenny/main libssh2-1-dev 0.18-1 [152kB]
- Get:9 http://archive.debian.org lenny/main libldap2-dev 2.4.11-1+lenny2.1 [871kB]
- Get:10 http://archive.debian.org lenny/main libcurl4-openssl-dev 7.18.2-8lenny6 [921kB]
- Fetched 5131kB in 2min21s (36.3kB/s)
- Selecting previously deselected package zlib1g-dev.
- (Reading database ... 23085 files and directories currently installed.)
- Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.3.dfsg-12_i386.deb) ...
- Selecting previously deselected package libssl-dev.
- Unpacking libssl-dev (from .../libssl-dev_0.9.8g-15+lenny16_i386.deb) ...
- Selecting previously deselected package pkg-config.
- Unpacking pkg-config (from .../pkg-config_0.22-1_i386.deb) ...
- Selecting previously deselected package libidn11-dev.
- Unpacking libidn11-dev (from .../libidn11-dev_1.8+20080606-1_i386.deb) ...
- Selecting previously deselected package libkadm55.
- Unpacking libkadm55 (from .../libkadm55_1.6.dfsg.4~beta1-5lenny7_i386.deb) ...
- Selecting previously deselected package comerr-dev.
- Unpacking comerr-dev (from .../comerr-dev_2.1-1.41.3-1_i386.deb) ...
- Selecting previously deselected package libkrb5-dev.
- Unpacking libkrb5-dev (from .../libkrb5-dev_1.6.dfsg.4~beta1-5lenny7_i386.deb) ...
- Selecting previously deselected package libssh2-1-dev.
- Unpacking libssh2-1-dev (from .../libssh2-1-dev_0.18-1_i386.deb) ...
- Selecting previously deselected package libldap2-dev.
- Unpacking libldap2-dev (from .../libldap2-dev_2.4.11-1+lenny2.1_i386.deb) ...
- Selecting previously deselected package libcurl4-openssl-dev.
- Unpacking libcurl4-openssl-dev (from .../libcurl4-openssl-dev_7.18.2-8lenny6_i386.deb) ...
- Processing triggers for man-db ...
- Setting up zlib1g-dev (1:1.2.3.3.dfsg-12) ...
- Setting up libssl-dev (0.9.8g-15+lenny16) ...
- Setting up pkg-config (0.22-1) ...
- Setting up libidn11-dev (1.8+20080606-1) ...
- Setting up libkadm55 (1.6.dfsg.4~beta1-5lenny7) ...
- Setting up comerr-dev (2.1-1.41.3-1) ...
- Setting up libkrb5-dev (1.6.dfsg.4~beta1-5lenny7) ...
- Setting up libssh2-1-dev (0.18-1) ...
- Setting up libldap2-dev (2.4.11-1+lenny2.1) ...
- Setting up libcurl4-openssl-dev (7.18.2-8lenny6) ...
- tai@midget:/opt/src/pastebincl-1.0$
- tai@midget:/opt/src/pastebincl-1.0$
- tai@midget:/opt/src/pastebincl-1.0$ ls -al
- total 56
- drwxr-xr-x 3 tai tai 4096 Jan 8 2012 .
- drwxr-xr-x 4 root root 4096 Feb 9 13:55 ..
- -rw-r--r-- 1 tai tai 1538 Dec 28 2011 COMPILE.txt
- -rw-r--r-- 1 tai tai 32472 Dec 25 2011 LICENCE.txt
- -rw-r--r-- 1 tai tai 503 Jan 8 2012 Makefile
- -rw-r--r-- 1 tai tai 2849 Jan 8 2012 pastebincl.man.1
- drwxr-xr-x 2 tai tai 4096 Feb 9 13:19 src
- tai@midget:/opt/src/pastebincl-1.0$ make
- cd src/ && make
- make[1]: Entering directory `/opt/src/pastebincl-1.0/src'
- g++ -lcurl -c CurlPost.cpp -Wall -Werror -O2 -o CurlPost.o
- g++ -lcurl -c func.cpp -Wall -Werror -O2 -o func.o
- g++ -lcurl -c main.cpp -Wall -Werror -O2 -o main.o
- g++ -lcurl -c ParameterRead.cpp -Wall -Werror -O2 -o ParameterRead.o
- g++ -lcurl -c ConfigRead.cpp -Wall -Werror -O2 -o ConfigRead.o -DENCODING_KEY=\"`python genkey.py`\"
- g++ -lcurl CurlPost.o func.o main.o ParameterRead.o ConfigRead.o -Wall -Werror -O2 -o pastebincl
- cp pastebincl ../
- make[1]: Leaving directory `/opt/src/pastebincl-1.0/src'
- tai@midget:/opt/src/pastebincl-1.0$ sudo make install
- [sudo] password for tai:
- mkdir -p "/usr/bin/"
- mkdir -p "/usr/share/man/man1/"
- cp pastebincl /usr/bin/
- chmod +x /usr/bin/pastebincl
- cp pastebincl.man.1 /usr/share/man/man1/pastebincl.1
- gzip /usr/share/man/man1/pastebincl.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement