Git - instalacja że źródeł

Bash, C, C++, Java, PHP, Ruby, GTK, Qt i wiele innych - wszystko tutaj.
Panas
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 105
Rejestracja: 16 maja 2014, 16:04
Wersja Ubuntu: 18.04
Środowisko graficzne: GNOME
Architektura: x86_64

Git - instalacja że źródeł

Post autor: Panas »

Mam problem nie kumam o co chodzi z błędami
W Home mam dwa foldery git i git 2.8.1 ten drugi mogę usunąć albo przenieć aby nie szpecił home?

https://hostovita.pl/blog/instalacja-git-ubuntu-16/

Kod: Zaznacz cały

inflating: git-2.8.1/xdiff/xutils.h  
  inflating: git-2.8.1/zlib.c        
finishing deferred symbolic links:
  git-2.8.1/RelNotes     -> Documentation/RelNotes/2.8.1.txt
panas@panas:~$ cd git-*
panas@panas:~/git-2.8.1$ make prefix=/usr/local all
GIT_VERSION = 2.8.1
    * new build flags
    CC credential-store.o
In file included from cache.h:4:0,
                 from credential-store.c:1:
git-compat-util.h:280:25: fatal error: openssl/ssl.h: Nie ma takiego pliku ani katalogu
compilation terminated.
Makefile:1941: polecenia dla obiektu 'credential-store.o' nie powiodły się
make: *** [credential-store.o] Błąd 1
panas@panas:~/git-2.8.1$ sudo make prefix=/usr/local install
    CC credential-store.o
In file included from cache.h:4:0,
                 from credential-store.c:1:
git-compat-util.h:280:25: fatal error: openssl/ssl.h: Nie ma takiego pliku ani katalogu
compilation terminated.
Makefile:1941: polecenia dla obiektu 'credential-store.o' nie powiodły się
make: *** [credential-store.o] Błąd 1
panas@panas:~/git-2.8.1$ cd ~
panas@panas:~$ git clone https://github.com/git/git.git
Cloning into 'git'...
remote: Counting objects: 212103, done.
remote: Compressing objects: 100% (317/317), done.
remote: Total 212103 (delta 188), reused 11 (delta 11), pack-reused 211775
Receiving objects: 100% (212103/212103), 75.25 MiB | 57.00 KiB/s, done.
Resolving deltas: 100% (155168/155168), done.
Checking connectivity... done.
panas@panas:~$ cd git
panas@panas:~/git$ make prefix=/usr/local all
GIT_VERSION = 2.10.2.607.g7805bda
    * new build flags
    CC credential-store.o
In file included from cache.h:4:0,
                 from credential-store.c:1:
git-compat-util.h:280:25: fatal error: openssl/ssl.h: Nie ma takiego pliku ani katalogu
compilation terminated.
Makefile:1987: polecenia dla obiektu 'credential-store.o' nie powiodły się
make: *** [credential-store.o] Błąd 1
panas@panas:~/git$ 

Awatar użytkownika
enedil
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1352
Rejestracja: 08 wrz 2012, 16:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: i3
Architektura: x86_64
Kontakt:

Re: Git

Post autor: enedil »

W zasadzie, najprostrza metoda to

Kod: Zaznacz cały

sudo apt install git
Wówczas nie musisz niczym zaszpecać home.
Dobrze jest, psiakrew, a kto powie, że nie, to go w mordę!

~moderatorzy
Panas
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 105
Rejestracja: 16 maja 2014, 16:04
Wersja Ubuntu: 18.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: Git

Post autor: Panas »

Na końcu mam błąd i przy tym. Nie wiem czy istotny czy nie.

Kod: Zaznacz cały

panas@panas:~$ sudo apt-get install git-all
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności       
Odczyt informacji o stanie... Gotowe
git-all is already the newest version (1:2.7.4-0ubuntu1).
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 17 nieaktualizowanych.
2 nie w pełni zainstalowanych lub usuniętych.
Po tej operacji zostanie dodatkowo użyte 0 B miejsca na dysku.
Kontynuować? [T/n] T
Konfigurowanie pakietu runit (2.1.2-3ubuntu1) ...
start: Nie można połączyć się z usługą Upstart: Failed to connect to socket /com/ubuntu/upstart: Połączenie odrzucone
dpkg: błąd przetwarzania pakietu runit (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
dpkg: problemy z zależnościami uniemożliwiają skonfigurowanie pakietu git-daemon-run:
 git-daemon-run zależy od runit; jednakże:
  Pakiet runit nie jest jeszcze skonfigurowany.

dpkg: błąd przetwarzania pakietu git-daemon-run (--configure):
 problemy z zależnościami - pozostawianie nieskonfigurowanego
Brak raportu programu apport, ponieważ komunikat błędu wskazuje, że przyczyna niepowodzenia leży w poprzednim błędzie.
                                                                                                                      Wystąpiły błędy podczas przetwarzania:
 runit
 git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
panas@panas:~$ 
Awatar użytkownika
enedil
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1352
Rejestracja: 08 wrz 2012, 16:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: i3
Architektura: x86_64
Kontakt:

Re: Git

Post autor: enedil »

Kod: Zaznacz cały

sudo apt-get install -f
:?
Dobrze jest, psiakrew, a kto powie, że nie, to go w mordę!

~moderatorzy
Panas
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 105
Rejestracja: 16 maja 2014, 16:04
Wersja Ubuntu: 18.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: Git

Post autor: Panas »

Problem rozwiązany ale mam ost problem
https://git-scm.com/book/en/v2/Getting- ... -Git-Setup

Nie mogę znaleźć nigdzie katalogu gitconfig, żadnego katalogu z plikami zainstalowanymi.

Kod: Zaznacz cały

panas@panas:~$ .git/config
bash: .git/config: Brak dostępu
panas@panas:~$ 


Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git looks and operates. These variables can be stored in three different places:

/etc/gitconfig file: Contains values for every user on the system and all their repositories. If you pass the option --system to git config, it reads and writes from this file specifically.

~/.gitconfig or ~/.config/git/config file: Specific to your user. You can make Git read and write to this file specifically by passing the --global option.

config file in the Git directory (that is, .git/config) of whatever repository you’re currently using: Specific to that single repository.
Panas
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 105
Rejestracja: 16 maja 2014, 16:04
Wersja Ubuntu: 18.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: Git

Post autor: Panas »

Rozwiązane zapomniałem o plikach ukrytych. (ctrl+H)
Panas pisze:Problem rozwiązany ale mam ost problem
https://git-scm.com/book/en/v2/Getting- ... -Git-Setup

Nie mogę znaleźć nigdzie katalogu gitconfig, żadnego katalogu z plikami zainstalowanymi.

Kod: Zaznacz cały

panas@panas:~$ .git/config
bash: .git/config: Brak dostępu
panas@panas:~$ 


Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git looks and operates. These variables can be stored in three different places:

/etc/gitconfig file: Contains values for every user on the system and all their repositories. If you pass the option --system to git config, it reads and writes from this file specifically.

~/.gitconfig or ~/.config/git/config file: Specific to your user. You can make Git read and write to this file specifically by passing the --global option.

config file in the Git directory (that is, .git/config) of whatever repository you’re currently using: Specific to that single repository.
ODPOWIEDZ

Wróć do „Programowanie”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 40 gości