Advertisement
eastpole

pastebincl problem in Debian 5.0.10

Feb 9th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.00 KB | None | 0 0
  1. tai@midget:~/bin/pastebincl-1.0/src$ make
  2. g++ -lcurl -c CurlPost.cpp -Wall -Werror -O2 -o CurlPost.o
  3. In file included from CurlPost.cpp:34:
  4. CurlPost.h:39:23: error: curl/curl.h: No such file or directory
  5. CurlPost.cpp: In member function 'std::string CurlPost::execute()':
  6. CurlPost.cpp:43: error: 'CURL' was not declared in this scope
  7. CurlPost.cpp:43: error: 'curl' was not declared in this scope
  8. CurlPost.cpp:44: error: 'CURLcode' was not declared in this scope
  9. CurlPost.cpp:44: error: expected `;' before 'res'
  10. CurlPost.cpp:54: error: 'CURLFORM_COPYNAME' was not declared in this scope
  11. CurlPost.cpp:55: error: 'CURLFORM_COPYCONTENTS' was not declared in this scope
  12. CurlPost.cpp:56: error: 'CURLFORM_END' was not declared in this scope
  13. CurlPost.cpp:56: error: 'curl_formadd' was not declared in this scope
  14. CurlPost.cpp:60: error: 'curl_easy_init' was not declared in this scope
  15. CurlPost.cpp:61: error: 'curl_slist_append' was not declared in this scope
  16. CurlPost.cpp:66: error: 'CURLOPT_URL' was not declared in this scope
  17. CurlPost.cpp:66: error: 'curl_easy_setopt' was not declared in this scope
  18. CurlPost.cpp:67: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
  19. CurlPost.cpp:68: error: 'CURLOPT_HTTPPOST' was not declared in this scope
  20. CurlPost.cpp:69: error: 'CURLOPT_WRITEFUNCTION' was not declared in this scope
  21. CurlPost.cpp:70: error: 'CURLOPT_WRITEDATA' was not declared in this scope
  22. CurlPost.cpp:73: error: 'res' was not declared in this scope
  23. CurlPost.cpp:73: error: 'curl_easy_perform' was not declared in this scope
  24. CurlPost.cpp:76: error: 'curl_easy_cleanup' was not declared in this scope
  25. CurlPost.cpp:77: error: 'curl_formfree' was not declared in this scope
  26. CurlPost.cpp:78: error: 'curl_slist_free_all' was not declared in this scope
  27. CurlPost.cpp: In static member function 'static void CurlPost::init()':
  28. CurlPost.cpp:90: error: 'CURL_GLOBAL_ALL' was not declared in this scope
  29. CurlPost.cpp:90: error: 'curl_global_init' was not declared in this scope
  30. CurlPost.cpp: In static member function 'static void CurlPost::clean()':
  31. CurlPost.cpp:95: error: 'curl_global_cleanup' was not declared in this scope
  32. make: *** [CurlPost.o] Error 1
  33. tai@midget:~/bin/pastebincl-1.0/src$ which curl
  34. /usr/bin/curl
  35.  
  36.  
  37. tai@midget:/opt/src/pastebincl-1.0$ sudo apt-get install libcurl4-openssl-dev
  38. Reading package lists... Done
  39. Building dependency tree
  40. Reading state information... Done
  41. The following extra packages will be installed:
  42.  comerr-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev libssh2-1-dev libssl-dev pkg-config zlib1g-dev
  43. Suggested packages:
  44.  doc-base libcurl3-dbg krb5-doc
  45. The following NEW packages will be installed:
  46.  comerr-dev libcurl4-openssl-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev libssh2-1-dev libssl-dev pkg-config zlib1g-dev
  47. 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
  48. Need to get 5131kB of archives.
  49. After this operation, 13.9MB of additional disk space will be used.
  50. Do you want to continue [Y/n]? y
  51. Get:1 http://archive.debian.org lenny/main zlib1g-dev 1:1.2.3.3.dfsg-12 [157kB]
  52. Get:2 http://archive.debian.org lenny/main libssl-dev 0.9.8g-15+lenny16 [2114kB]
  53. Get:3 http://archive.debian.org lenny/main pkg-config 0.22-1 [52.2kB]
  54. Get:4 http://archive.debian.org lenny/main libidn11-dev 1.8+20080606-1 [574kB]
  55. Get:5 http://archive.debian.org lenny/main libkadm55 1.6.dfsg.4~beta1-5lenny7 [155kB]
  56. Get:6 http://archive.debian.org lenny/main comerr-dev 2.1-1.41.3-1 [42.5kB]
  57. Get:7 http://archive.debian.org lenny/main libkrb5-dev 1.6.dfsg.4~beta1-5lenny7 [92.4kB]
  58. Get:8 http://archive.debian.org lenny/main libssh2-1-dev 0.18-1 [152kB]
  59. Get:9 http://archive.debian.org lenny/main libldap2-dev 2.4.11-1+lenny2.1 [871kB]
  60. Get:10 http://archive.debian.org lenny/main libcurl4-openssl-dev 7.18.2-8lenny6 [921kB]
  61. Fetched 5131kB in 2min21s (36.3kB/s)
  62. Selecting previously deselected package zlib1g-dev.
  63. (Reading database ... 23085 files and directories currently installed.)
  64. Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.3.dfsg-12_i386.deb) ...
  65. Selecting previously deselected package libssl-dev.
  66. Unpacking libssl-dev (from .../libssl-dev_0.9.8g-15+lenny16_i386.deb) ...
  67. Selecting previously deselected package pkg-config.
  68. Unpacking pkg-config (from .../pkg-config_0.22-1_i386.deb) ...
  69. Selecting previously deselected package libidn11-dev.
  70. Unpacking libidn11-dev (from .../libidn11-dev_1.8+20080606-1_i386.deb) ...
  71. Selecting previously deselected package libkadm55.
  72. Unpacking libkadm55 (from .../libkadm55_1.6.dfsg.4~beta1-5lenny7_i386.deb) ...
  73. Selecting previously deselected package comerr-dev.
  74. Unpacking comerr-dev (from .../comerr-dev_2.1-1.41.3-1_i386.deb) ...
  75. Selecting previously deselected package libkrb5-dev.
  76. Unpacking libkrb5-dev (from .../libkrb5-dev_1.6.dfsg.4~beta1-5lenny7_i386.deb) ...
  77. Selecting previously deselected package libssh2-1-dev.
  78. Unpacking libssh2-1-dev (from .../libssh2-1-dev_0.18-1_i386.deb) ...
  79. Selecting previously deselected package libldap2-dev.
  80. Unpacking libldap2-dev (from .../libldap2-dev_2.4.11-1+lenny2.1_i386.deb) ...
  81. Selecting previously deselected package libcurl4-openssl-dev.
  82. Unpacking libcurl4-openssl-dev (from .../libcurl4-openssl-dev_7.18.2-8lenny6_i386.deb) ...
  83. Processing triggers for man-db ...
  84. Setting up zlib1g-dev (1:1.2.3.3.dfsg-12) ...
  85. Setting up libssl-dev (0.9.8g-15+lenny16) ...
  86. Setting up pkg-config (0.22-1) ...
  87. Setting up libidn11-dev (1.8+20080606-1) ...
  88. Setting up libkadm55 (1.6.dfsg.4~beta1-5lenny7) ...
  89. Setting up comerr-dev (2.1-1.41.3-1) ...
  90. Setting up libkrb5-dev (1.6.dfsg.4~beta1-5lenny7) ...
  91. Setting up libssh2-1-dev (0.18-1) ...
  92. Setting up libldap2-dev (2.4.11-1+lenny2.1) ...
  93. Setting up libcurl4-openssl-dev (7.18.2-8lenny6) ...
  94. tai@midget:/opt/src/pastebincl-1.0$
  95. tai@midget:/opt/src/pastebincl-1.0$
  96. tai@midget:/opt/src/pastebincl-1.0$ ls -al
  97. total 56
  98. drwxr-xr-x 3 tai  tai   4096 Jan  8  2012 .
  99. drwxr-xr-x 4 root root  4096 Feb  9 13:55 ..
  100. -rw-r--r-- 1 tai  tai   1538 Dec 28  2011 COMPILE.txt
  101. -rw-r--r-- 1 tai  tai  32472 Dec 25  2011 LICENCE.txt
  102. -rw-r--r-- 1 tai  tai    503 Jan  8  2012 Makefile
  103. -rw-r--r-- 1 tai  tai   2849 Jan  8  2012 pastebincl.man.1
  104. drwxr-xr-x 2 tai  tai   4096 Feb  9 13:19 src
  105. tai@midget:/opt/src/pastebincl-1.0$ make
  106. cd src/ && make
  107. make[1]: Entering directory `/opt/src/pastebincl-1.0/src'
  108. g++ -lcurl -c CurlPost.cpp -Wall -Werror -O2 -o CurlPost.o
  109. g++ -lcurl -c func.cpp -Wall -Werror -O2 -o func.o
  110. g++ -lcurl -c main.cpp -Wall -Werror -O2 -o main.o
  111. g++ -lcurl -c ParameterRead.cpp -Wall -Werror -O2 -o ParameterRead.o
  112. g++ -lcurl -c ConfigRead.cpp -Wall -Werror -O2 -o ConfigRead.o -DENCODING_KEY=\"`python genkey.py`\"
  113. g++ -lcurl CurlPost.o func.o main.o ParameterRead.o ConfigRead.o -Wall -Werror -O2 -o pastebincl
  114. cp pastebincl ../
  115. make[1]: Leaving directory `/opt/src/pastebincl-1.0/src'
  116.  
  117.  
  118. tai@midget:/opt/src/pastebincl-1.0$ sudo make install
  119. [sudo] password for tai:
  120. mkdir -p "/usr/bin/"
  121. mkdir -p "/usr/share/man/man1/"
  122. cp pastebincl /usr/bin/
  123. chmod +x /usr/bin/pastebincl
  124. cp pastebincl.man.1 /usr/share/man/man1/pastebincl.1
  125. gzip /usr/share/man/man1/pastebincl.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement