# Git repository directory

**URL:** https://discourse.cataclysmdda.org/t/git-repository-directory/21777
**Category:** The Toolbox
**Created:** [October 25, 2019, 4:33pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777 "2019-10-25T16:33:43Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [October 25, 2019, 4:33pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/1 "2019-10-25T16:33:43Z")

</div>

So I’m clearly doing SOMETHING wrong but this Linux based computer is currently running and old .c version, and I’ve been trying to do a

> git fetch; git pull

But am getting ‘fatal: not a git repository (or any of the parent directories): .git’

what is the name of the dir I need to pull to? Or is there something I need to change to make …share/games/Cataclysm-DDA a valid git updatable folder compatible with other commands like worksforme etc…

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [October 25, 2019, 4:43pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/2 "2019-10-25T16:43:56Z")

</div>

How did you install that? It being installed in that directory sounds like you installed it through a package manager. You need to clone with git for it to be a git repository.

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [October 25, 2019, 4:53pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/3 "2019-10-25T16:53:57Z")

</div>

I just installed (reinstalled?) git the install process I followed during original install was here

> [@Building Graphical on Linux (and other Linux Q&A)](https://discourse.cataclysmdda.org/t/building-graphical-on-linux-and-other-linux-q-a/18058):
>
> So uh, quick question. Current Experimentals still have sprinting right? If so, manually moving save to more recent build is 1)install new build 2)move save and config files over 3) play right? am I doing something wrong? I seem to still be playing the stable build I used to make sure this WINE would launch it.

so basically a direct install not sure where directions not on that page I followed are exactly but pretty sure they were off the official site

I think between install and now I switched from ubuntu to Kubuntu / plasma which may be the reason git wasn’t installed anymore

Edit: confirmed it was not only the default install ubuntu, but Also another computer & drive, that was G-parted copied over.

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [October 26, 2019, 3:56am UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/4 "2019-10-26T03:56:08Z")

</div>

Does a `.git` directory exist in that directory?

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [October 28, 2019, 4:31pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/5 "2019-10-28T16:31:42Z")

</div>

no. How do I get git repository set-up

---

<div class="post-metadata">

### Author: ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)
#### Post date: [October 28, 2019, 5:15pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/6 "2019-10-28T17:15:49Z")

</div>

If it’s not there, then you may need to start over with a `git clone` of the repo.

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [October 28, 2019, 6:09pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/7 "2019-10-28T18:09:01Z")

</div>

Yeah, easiest is a git clone and the moving over the right files.

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [October 30, 2019, 2:59pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/8 "2019-10-30T14:59:58Z")

</div>

ok finally remembered to .git clone while good internet available but still not seeing any .git dir in the files

also getting

> \*\*\* no rule to make target ‘all’

when I run the make command

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [October 30, 2019, 3:26pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/9 "2019-10-30T15:26:11Z")

</div>

Oh, how are you viewing the files? With `ls`, you need to pass `-a` to view hidden files (beginning with `.`)

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [October 30, 2019, 3:28pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/10 "2019-10-30T15:28:10Z")

</div>

hold on. Wrong dir. Thats the old Cata files that were already made

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [October 30, 2019, 3:32pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/11 "2019-10-30T15:32:11Z")

</div>

hmm ok yes the .get is here but running make now returns… oh I see its the same problem as last time I need to DL all the tools

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [October 30, 2019, 8:13pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/12 "2019-10-30T20:13:27Z")

</div>

ok. Now Im confused. It looks like all the libs transferred over from previous laptop/system but I keep getting errors from the make comand saying that I lack some of the sdl’s

… install libsdl2-2.0-0 is showing 1 installed and not upgraded for the libs and individual lib installs are showing the same

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [October 31, 2019, 12:59am UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/13 "2019-10-31T00:59:04Z")

</div>

What exactly are the errors you’re getting?

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [October 31, 2019, 8:48pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/14 "2019-10-31T20:48:14Z")

</div>

> **Error report**
>
> package SDL2\_mixer was not found in the pkg-config search path.  
> Perhaps you should add the directory containing `SDL2\_mixer.pc’  
> to the PKG\_CONFIG\_PATH environment variable  
> No package ‘SDL2\_mixer’ found  
> Package SDL2\_image was not found in the pkg-config search path.  
> Perhaps you should add the directory containing `SDL2\_image.pc’  
> to the PKG\_CONFIG\_PATH environment variable  
> No package ‘SDL2\_image’ found  
> Package SDL2\_ttf was not found in the pkg-config search path.  
> Perhaps you should add the directory containing `SDL2\_ttf.pc’  
> to the PKG\_CONFIG\_PATH environment variable  
> No package ‘SDL2\_ttf’ found  
> Package SDL2\_mixer was not found in the pkg-config search path.  
> Perhaps you should add the directory containing `SDL2\_mixer.pc’  
> to the PKG\_CONFIG\_PATH environment variable  
> No package ‘SDL2\_mixer’ found  
> /bin/sh: 1: astyle: not found  
> In file included from src/cata\_tiles.h:13,  
> from src/animation.cpp:25:  
> src/sdl\_wrappers.h:12:13: fatal error: SDL\_ttf.h: No such file or directory  
> # include \<SDL\_ttf.h\>  
> ^ ~~~~~~~~~~  
> compilation terminated.  
> make: \*\*\* [Makefile:792: obj/tiles/animation.o] Error 1  
> make: \*\*\* Waiting for unfinished jobs…

---

<div class="post-metadata">

### Author: ![JoeFreeman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/joefreeman/32/6774_2.png) [@JoeFreeman](https://discourse.cataclysmdda.org/u/JoeFreeman)
#### Post date: [October 31, 2019, 9:32pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/15 "2019-10-31T21:32:25Z")

</div>

I don’t know if this is of any help to you but I had a similar error on Mac OS a few days ago. I tried reinstalling the SDL libs but just go the message that they are already installed.

Once I used the proposed options of linking to these installed SDL libs everything worked out fine and I could update Cataclysm.

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [November 1, 2019, 4:21pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/16 "2019-11-01T16:21:05Z")

</div>

linking what to the installed libs? The install tools?

So just just throw links from the install tools to the CDDA folder?

---

<div class="post-metadata">

### Author: ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)
#### Post date: [November 1, 2019, 5:59pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/17 "2019-11-01T17:59:54Z")

</div>

You’ll need the dev packages for those parts of SDL. On Debian (from which Ubuntu is derived) they are:

```auto
libsdl2-mixer-dev
libsdl2-image-dev
libsdl2-ttf-dev

```

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [November 1, 2019, 6:18pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/18 "2019-11-01T18:18:37Z")

</div>

Ah that fixed a lot. I wouldn’t have thought the dev files were something I needed to mess with. Whats their purpose exactly? And why do they link everything up right?

Hmm need astyle now Whats the DL for that, my bottlenecked 4g google foo isn’t finding any obvious culprits

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [November 1, 2019, 6:20pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/19 "2019-11-01T18:20:28Z")

</div>

[This is its website](http://astyle.sourceforge.net/), but your package manager should have it.

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [November 1, 2019, 6:37pm UTC](https://discourse.cataclysmdda.org/t/git-repository-directory/21777/20 "2019-11-01T18:37:04Z")

</div>

yep found it thought it would have some kind of special spelling or a tail end or something, so I thought I wasn’t getting any results when I tabbed -Thanks

[Next page](https://discourse.cataclysmdda.org/t/git-repository-directory/21777.md?page=2)
