Kirjoittaja Aihe: (RATKAISTU) Gitin asennus jaetulle web-palvelimelle  (Luettu 2931 kertaa)

JA5U

  • Käyttäjä
  • Viestejä: 463
    • Profiili
Moi

Yritin asentaa Gitin lataamalla ensin koodipohjan ja kääntämällä? (make), mutta se päättyi näin:
Koodia: [Valitse]
http.c:1980: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1980: error: ‘struct <anonymous>’ has no member named ‘curl’
http.c:1980: error: ‘CURLOPT_WRITEFUNCTION’ undeclared (first use in this function)
http.c:1981: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1981: error: ‘struct <anonymous>’ has no member named ‘curl’
http.c:1981: error: ‘CURLOPT_ERRORBUFFER’ undeclared (first use in this function)
http.c:1981: error: ‘struct http_object_request’ has no member named ‘errorstr’
http.c:1982: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1982: error: ‘struct <anonymous>’ has no member named ‘curl’
http.c:1982: error: ‘CURLOPT_URL’ undeclared (first use in this function)
http.c:1983: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1983: error: ‘struct <anonymous>’ has no member named ‘curl’
http.c:1983: error: ‘CURLOPT_HTTPHEADER’ undeclared (first use in this function)
http.c:1994: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1994: error: ‘struct <anonymous>’ has no member named ‘curl’
http.c: In function ‘process_http_object_request’:
http.c:2007: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2009: error: ‘struct http_object_request’ has no member named ‘curl_result’
http.c:2009: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2009: error: ‘struct <anonymous>’ has no member named ‘curl_result’
http.c:2009: warning: statement with no effect
http.c:2010: error: ‘struct http_object_request’ has no member named ‘http_code’
http.c:2010: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2010: error: ‘struct <anonymous>’ has no member named ‘http_code’
http.c:2010: warning: statement with no effect
http.c:2011: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2011: warning: statement with no effect
http.c: In function ‘finish_http_object_request’:
http.c:2023: error: ‘struct http_object_request’ has no member named ‘http_code’
http.c:2023: warning: comparison between pointer and integer
http.c:2025: error: ‘struct http_object_request’ has no member named ‘curl_result’
http.c:2025: error: ‘CURLE_OK’ undeclared (first use in this function)
http.c:2032: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:2032: warning: passing argument 1 of ‘git_inflate_end’ from incompatible pointer type
cache.h:53: note: expected ‘struct git_zstream *’ but argument is of type ‘struct <anonymous> (*)[1]’
http.c:2033: error: ‘struct http_object_request’ has no member named ‘real_sha1’
http.c:2033: error: ‘struct http_object_request’ has no member named ‘c’
http.c:2033: warning: passing argument 1 of ‘SHA1_Final’ from incompatible pointer type
/usr/include/openssl/sha.h:121: note: expected ‘unsigned char *’ but argument is of type ‘struct <anonymous> *’
http.c:2033: warning: passing argument 2 of ‘SHA1_Final’ from incompatible pointer type
/usr/include/openssl/sha.h:121: note: expected ‘struct SHA_CTX *’ but argument is of type ‘struct <anonymous> (*)[1]’
http.c:2034: error: ‘struct http_object_request’ has no member named ‘zret’
http.c:2034: warning: comparison between pointer and integer
http.c:2038: error: ‘struct http_object_request’ has no member named ‘sha1’
http.c:2038: error: ‘struct http_object_request’ has no member named ‘real_sha1’
http.c:2038: warning: passing argument 1 of ‘hashcmp’ from incompatible pointer type
cache.h:902: note: expected ‘const unsigned char *’ but argument is of type ‘struct <anonymous> *’
http.c:2038: warning: passing argument 2 of ‘hashcmp’ from incompatible pointer type
cache.h:902: note: expected ‘const unsigned char *’ but argument is of type ‘struct <anonymous> *’
http.c:2042: error: ‘struct http_object_request’ has no member named ‘rename’
http.c:2043: error: ‘struct http_object_request’ has no member named ‘sha1’
http.c:2043: warning: passing argument 1 of ‘sha1_file_name’ from incompatible pointer type
cache.h:865: note: expected ‘const unsigned char *’ but argument is of type ‘struct <anonymous> *’
http.c:2043: warning: statement with no effect
http.c:2045: error: ‘struct http_object_request’ has no member named ‘rename’
http.c:2045: warning: return makes integer from pointer without a cast
http.c: In function ‘release_http_object_request’:
http.c:2065: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2066: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2066: error: ‘struct <anonymous>’ has no member named ‘callback_func’
http.c:2066: warning: statement with no effect
http.c:2067: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2067: error: ‘struct <anonymous>’ has no member named ‘callback_data’
http.c:2067: warning: statement with no effect
http.c:2068: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2068: warning: passing argument 1 of ‘release_active_slot’ from incompatible pointer type
http.c:1041: note: expected ‘struct active_request_slot *’ but argument is of type ‘struct <anonymous> *’
http.c:2069: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:2069: warning: statement with no effect
make: *** [http.o] Error 1

Tuo ei sano itselleni mitään muuta kuin, että jotain on pielessä, mutta mikä?
« Viimeksi muokattu: 22.08.16 - klo:09.07 kirjoittanut JA5U »

nm

  • Käyttäjä
  • Viestejä: 16426
    • Profiili
Vs: Gitin asennus jaetulle web-palvelimelle
« Vastaus #1 : 21.08.16 - klo:15.36 »
Git tarvitsee kääntyäkseen headerit näihin kirjastoihin: libcurl, expat, zlib ja openssl. Sinulta puuttuu ainakin libcurlin headerit, jotka ovat Ubuntussa paketissa libcurl4-gnutls-dev

Saattaisi olla helpompaa pyytää ylläpitäjää asentamaan valmis git-paketti.

JA5U

  • Käyttäjä
  • Viestejä: 463
    • Profiili
Vs: Gitin asennus jaetulle web-palvelimelle
« Vastaus #2 : 21.08.16 - klo:16.18 »
Git tarvitsee kääntyäkseen headerit näihin kirjastoihin: libcurl, expat, zlib ja openssl. Sinulta puuttuu ainakin libcurlin headerit, jotka ovat Ubuntussa paketissa libcurl4-gnutls-dev

Saattaisi olla helpompaa pyytää ylläpitäjää asentamaan valmis git-paketti.
Ainahan sitä on helpompia tapoja :) Noh, ehkä tässä tapauksessa kuitenkin kloonaan gitin takana olevat kotikoneelle ja uppaan palvelimelle.

mites tuo jatkossa menis kätevästi? siis tuo uppaaminen - rsync? onko se turvallinen?
Jos mulla on
  • palvelimella hakemisto modules/[jotain]
  • ja uppaan omalta koneelta modules/[jotain], niin
  • ei kai se tuota koko modules hakemisto korvaa?

nm

  • Käyttäjä
  • Viestejä: 16426
    • Profiili
Vs: Gitin asennus jaetulle web-palvelimelle
« Vastaus #3 : 21.08.16 - klo:16.47 »
mites tuo jatkossa menis kätevästi? siis tuo uppaaminen - rsync? onko se turvallinen?

On turvallinen. Toki erinäisillä vivuilla on mahdollista saada monenlaista vahinkoakin aikaan.

Jos mulla on
  • palvelimella hakemisto modules/[jotain]
  • ja uppaan omalta koneelta modules/[jotain], niin
  • ei kai se tuota koko modules hakemisto korvaa?

Ei korvaa. Kopioi vain pyytämäsi hakemiston.

JA5U

  • Käyttäjä
  • Viestejä: 463
    • Profiili
Vs: Gitin asennus jaetulle web-palvelimelle
« Vastaus #4 : 22.08.16 - klo:09.07 »
mites tuo jatkossa menis kätevästi? siis tuo uppaaminen - rsync? onko se turvallinen?

On turvallinen. Toki erinäisillä vivuilla on mahdollista saada monenlaista vahinkoakin aikaan.

Jos mulla on
  • palvelimella hakemisto modules/[jotain]
  • ja uppaan omalta koneelta modules/[jotain], niin
  • ei kai se tuota koko modules hakemisto korvaa?

Ei korvaa. Kopioi vain pyytämäsi hakemiston.

Kiitos, jatketaan näillä tiedoilla harjoituksia :)