LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2016, 08:50 AM   #1
ArchieBa
LQ Newbie
 
Registered: Oct 2016
Location: Canada
Posts: 24

Rep: Reputation: Disabled
Trying to add git... but am stuck 1/2 way...


here is what you can see:

[root@vps-xxxxxxxx ~]# cd git-master
[root@vps-xxxxxxxx git-master]# ls
abspath.c git-mergetool--lib.sh quote.h
aclocal.m4 git-mergetool.sh reachable.c
advice.c git-p4.py reachable.h
advice.h git-parse-remote.sh read-cache.c
alias.c git-quiltimport.sh README.md
alloc.c git.rc ref-filter.c
apply.c git-rebase--am.sh ref-filter.h
apply.h git-rebase--interactive.sh reflog-walk.c
archive.c git-rebase--merge.sh reflog-walk.h
archive.h git-rebase.sh refs
archive-tar.c git-relink.perl refs.c
archive-zip.c git-remote-testgit.sh refs.h
argv-array.c git-request-pull.sh RelNotes
argv-array.h git-send-email.perl remote.c
attr.c git-sh-i18n.sh remote-curl.c
attr.h git-sh-setup.sh remote.h
base85.c git-stash.sh remote-testsvn.c
bisect.c git-submodule.sh replace_object.c
bisect.h git-svn.perl rerere.c
blob.c GIT-VERSION-FILE rerere.h
blob.h GIT-VERSION-GEN resolve-undo.c
block-sha1 gitweb resolve-undo.h
branch.c git-web--browse.sh revision.c
branch.h gpg-interface.c revision.h
builtin gpg-interface.h run-command.c
builtin.h graph.c run-command.h
bulk-checkin.c graph.h send-pack.c
bulk-checkin.h grep.c send-pack.h
bundle.c grep.h sequencer.c
bundle.h hashmap.c sequencer.h
cache.h hashmap.h server-info.c
cache-tree.c help.c setup.c
cache-tree.h help.h sha1-array.c
check_bindir hex.c sha1-array.h
check-builtins.sh http-backend.c sha1_file.c
check-racy.c http.c sha1-lookup.c
ci http-fetch.c sha1-lookup.h
color.c http.h sha1_name.c
color.h http-push.c shallow.c
column.c http-walker.c shell.c
column.h ident.c sh-i18n--envsubst.c
combine-diff.c imap-send.c shortlog.h
command-list.txt INSTALL show-index.c
commit.c iterator.h sideband.c
commit.h khash.h sideband.h
commit-slab.h kwset.c sigchain.c
common-main.c kwset.h sigchain.h
compat levenshtein.c split-index.c
config.c levenshtein.h split-index.h
config.mak.in LGPL-2.1 strbuf.c
config.mak.uname line-log.c strbuf.h
configure.ac line-log.h streaming.c
configure.ac+ line-range.c streaming.h
connect.c line-range.h string-list.c
connected.c list.h string-list.h
connected.h list-objects.c submodule.c
connect.h list-objects.h submodule-config.c
contrib ll-merge.c submodule-config.h
convert.c ll-merge.h submodule.h
convert.h lockfile.c symlinks.c
copy.c lockfile.h t
COPYING log-tree.c tag.c
credential.c log-tree.h tag.h
credential-cache.c mailinfo.c tar.h
credential-cache--daemon.c mailinfo.h tempfile.c
credential.h mailmap.c tempfile.h
credential-store.c mailmap.h templates
csum-file.c Makefile thread-utils.c
csum-file.h match-trees.c thread-utils.h
ctype.c merge-blobs.c tmp-objdir.c
daemon.c merge-blobs.h tmp-objdir.h
date.c merge.c trace.c
decorate.c merge-recursive.c trace.h
decorate.h merge-recursive.h trailer.c
delta.h mergesort.c trailer.h
diff.c mergesort.h transport.c
diffcore-break.c mergetools transport.h
diffcore-delta.c mru.c transport-helper.c
diffcore.h mru.h tree.c
diffcore-order.c name-hash.c tree-diff.c
diffcore-pickaxe.c notes.c tree.h
diffcore-rename.c notes-cache.c tree-walk.c
diff-delta.c notes-cache.h tree-walk.h
diff.h notes.h unicode_width.h
diff-lib.c notes-merge.c unimplemented.sh
diff-no-index.c notes-merge.h unix-socket.c
dir.c notes-utils.c unix-socket.h
dir.h notes-utils.h unpack-trees.c
dir-iterator.c object.c unpack-trees.h
dir-iterator.h object.h update_unicode.sh
Documentation pack-bitmap.c upload-pack.c
editor.c pack-bitmap.h url.c
entry.c pack-bitmap-write.c url.h
environment.c pack-check.c urlmatch.c
ewah pack.h urlmatch.h
exec_cmd.c pack-objects.c usage.c
exec_cmd.h pack-objects.h userdiff.c
fast-import.c pack-revindex.c userdiff.h
fetch-pack.c pack-revindex.h utf8.c
fetch-pack.h pack-write.c utf8.h
fmt-merge-msg.h pager.c varint.c
fsck.c parse-options.c varint.h
fsck.h parse-options-cb.c vcs-svn
generate-cmdlist.sh parse-options.h version.c
gettext.c patch-delta.c versioncmp.c
gettext.h patch-ids.c version.h
git-add--interactive.perl patch-ids.h walker.c
git-archimport.perl path.c walker.h
git-bisect.sh pathspec.c wildmatch.c
git.c pathspec.h wildmatch.h
GIT-CFLAGS perl worktree.c
git-compat-util.h pkt-line.c worktree.h
git-cvsexportcommit.perl pkt-line.h wrap-for-bin.sh
git-cvsimport.perl po wrapper.c
git-cvsserver.perl ppc write_or_die.c
git-difftool--helper.sh preload-index.c ws.c
git-difftool.perl pretty.c wt-status.c
git-filter-branch.sh prio-queue.c wt-status.h
git-gui prio-queue.h xdiff
git-instaweb.sh progress.c xdiff-interface.c
gitk-git progress.h xdiff-interface.h
git-merge-octopus.sh prompt.c zlib.c
git-merge-one-file.sh prompt.h
git-merge-resolve.sh quote.c


What do I need to do next? HELP
 
Old 10-19-2016, 11:14 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,472

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Not sure why you wouldn't use your distributions version of the git installation or why you are doing this under root, but as per the repository, have you followed the INSTALL instructions?
 
Old 10-19-2016, 11:27 AM   #3
ArchieBa
LQ Newbie
 
Registered: Oct 2016
Location: Canada
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by grail View Post
Not sure why you wouldn't use your distributions version of the git installation or why you are doing this under root, but as per the repository, have you followed the INSTALL instructions?
True. If I knew what I was doing, I would not be asking on a newbie forum.

I tried to install it because there was no git command before (no such command). I tried to install it without root and it said I needed root to install this (git and MySQL 5.6). I was at MySQL 5.1 and upgraded it to ----> 5.5 with this help: https://kb.plesk.com/en/125589

Then, to move forward, I read I needed the git command to be able to get out of the problems I had with the 5.5 ---> 5.6 upgrade.

( I need it to be MySQL 5.6 because of utf8mb4. )


so back to git and round I go.
 
Old 10-19-2016, 11:33 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,184

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
What Distro/Version is this running on? Centos, ubuntu, debian etc?

In the case of Centos.. If you want to install git from the repos, just do:

Code:
yum install git
If for some reason you want to compile and install the latest version you can do this:
Code:
yum -y groupinstall "Development Tools"
yum -y install unzip zlib-devel asciidoc xmlto openssl-devel curl-devel wget perl-ExtUtils-MakeMaker.x86_64
cd
wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
cd git-master
make configure
./configure --prefix=/usr/local
make 
make install

Last edited by szboardstretcher; 10-19-2016 at 11:36 AM.
 
Old 10-19-2016, 11:50 AM   #5
ArchieBa
LQ Newbie
 
Registered: Oct 2016
Location: Canada
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
What Distro/Version is this running on? Centos, ubuntu, debian etc?

In the case of Centos.. If you want to install git from the repos, just do:

Code:
yum install git
If for some reason you want to compile and install the latest version you can do this:
Code:
yum -y groupinstall "Development Tools"
yum -y install unzip zlib-devel asciidoc xmlto openssl-devel curl-devel wget perl-ExtUtils-MakeMaker.x86_64
cd
wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
cd git-master
make configure
./configure --prefix=/usr/local
make 
make install
Yes I tried that but this is what I got:

Code:
[root@vps-xxxxx ~]# yum install git
Loaded plugins: fastestmirror
Setting up Install Process
Repository 'mysql56.community' is missing name in configuration, using id
Repository 'mysql57-community' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
epel/metalink                                            | 8.5 kB     00:00
Error: Cannot find a valid baseurl for repo: mysql56.community
EDIT: Yes it is CentOS 6

Last edited by ArchieBa; 10-19-2016 at 11:55 AM.
 
Old 10-19-2016, 12:09 PM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,472

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
As git does not require mysql I would assume that error message is from a previously failed attempt to install mysql. I am not familiar with yum, but my first thought would be that it creates
some type of cached previously attempted installs. See if you can remove the file and try installing git on its own first.

I would also add that if you had told us that you had made previous attempts and performed other tasks first it may have helped with a solution.

Quote:
I tried to install it because there was no git command before
You also did not mention the above, however, the link I was referring to was :- https://github.com/git/git/blob/master/INSTALL
And it was those instructions I was suggesting to follow.

I would go with the yum options though if you truly are unsure of what you are doing.
 
Old 10-19-2016, 01:26 PM   #7
ArchieBa
LQ Newbie
 
Registered: Oct 2016
Location: Canada
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by grail View Post
As git does not require mysql I would assume that error message is from a previously failed attempt to install mysql. I am not familiar with yum, but my first thought would be that it creates
some type of cached previously attempted installs. See if you can remove the file and try installing git on its own first.

I would also add that if you had told us that you had made previous attempts and performed other tasks first it may have helped with a solution.


You also did not mention the above, however, the link I was referring to was :- https://github.com/git/git/blob/master/INSTALL
And it was those instructions I was suggesting to follow.

I would go with the yum options though if you truly are unsure of what you are doing.
Yes, it was because of MySQL. I upgraded MySQL from 5.1 --> 5.5 and now I need to upgrad it from 5.5 --> 5.6 , update which is not working because of a weird repo.

I couldn't figure out how to fix it, so I read that I could do a work around with git and I thought it would be easier. LOL

So I picked up a blog saying how to add git to CentOS 6 through SSH and at some point, something stopped working in the steps that were written. So, since git was already downloaded, I figured someone could tellme how to do the rest and I came on the noobie board posting my first message.


I knew that I didnt need git, but thought it would be easier then to fix yum
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Git/GitHub - How can I add a user's commit into local repo? Altiris Linux - Software 3 08-25-2015 01:49 AM
LXer: git commit -m 'Add $200m to GitHub, tweak valuation to $2bn' LXer Syndicated Linux News 0 06-17-2015 09:40 PM
files missing using git add command ansonc Linux - Newbie 2 04-19-2015 09:15 PM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
stuck - trying 2 add 2nd hard drive darazman Linux - Hardware 4 09-13-2003 10:13 PM


All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration