# Problem with the initial step of a source install

**URL:** <https://www.rubin.community/t/problem-with-the-initial-step-of-a-source-install/347>\
**Category:** Support\
**Created:** [October 30, 2015, 5:03pm UTC](https://www.rubin.community/t/problem-with-the-initial-step-of-a-source-install/347 "2015-10-30T17:03:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![idellant](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@idellant](https://www.rubin.community/u/idellant)\
**Post date:** [October 30, 2015, 5:03pm UTC](https://www.rubin.community/t/problem-with-the-initial-step-of-a-source-install/347/1 "2015-10-30T17:03:33Z")

</div>

I’m running into a problem at the very first step of a source install. I’m running MacOS 10.9 with all the xcode extensions, FWIW.

I successfully download [newinstall.sh](http://newinstall.sh):

```auto
bash-3.2$ curl -OL https://sw.lsstcorp.org/eupspkg/newinstall.sh
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 12661 100 12661 0 0 45387 0 --:--:-- --:--:-- --:--:-- 45543
bash-3.2$ ls -ltr
total 32
-rw-r--r-- 1 idellant staff 12661 Oct 30 12:53 newinstall.sh

```

but when I run the installer:

```auto
bash-3.2$ bash newinstall.sh

LSST Software Stack Builder
=======================================================================

Detected git version 1.9.5 (Apple Git-50.3). OK.

In addition to Python 2.7, some LSST packages depend on recent versions of numpy,
matplotlib, and scipy. If you don't have all of these, the installation may fail.
Using the Anaconda Python distribution will ensure all these are set up.

Anaconda Python installed by this installer will be managed by LSST's EUPS
package manager, and will not replace or modify your system python.

Would you like us to install Anaconda Python distribution (if unsure, say yes)? yes

Installing EUPS (v1.5.9)... FAILED.
See log in eupsbuild.log

eupsbuild.log shows that curl fails to build files, so tar dies.

bash-3.2$ cat eupsbuild.log
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0tar: Child died with signal 11
tar: Error is not recoverable: exiting now
100 131 0 131 0 0 467 0 --:--:-- --:--:-- --:--:-- 469
  0 0 0 17254 0 0 23146 0 --:--:-- --:--:-- --:--:-- 472k
curl: (23) Failed writing body (0 != 1370)
newinstall.sh: line 278: cd: eups-1.5.9: No such file or directory
newinstall.sh: line 286: ./configure: No such file or directory
make: *** No rule to make target `install'. Stop.

```

I tried playing with [newinstall.sh](http://newinstall.sh), and there’s an if statement that calls either curl or wget, but I’m hesitant to change the code… Is there an easy fix?  
thanks,  
IAn

---

<div class="post-metadata">

**Author:** ![ktl](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ktl/32/1373_2.png) [@ktl](https://www.rubin.community/u/ktl)\
**Post date:** [October 30, 2015, 5:21pm UTC](https://www.rubin.community/t/problem-with-the-initial-step-of-a-source-install/347/2 "2015-10-30T17:21:38Z")

</div>

It looks like your `curl` is working OK (it downloaded `newinstall.sh` twice). I’m a little worried about your `tar`. It shouldn’t be segfaulting.

I don’t see anything in `newinstall.sh` that references `wget`. Where is that? Besides, MacOS doesn’t usually come with `wget`.

---

<div class="post-metadata">

**Author:** ![idellant](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@idellant](https://www.rubin.community/u/idellant)\
**Post date:** [October 30, 2015, 5:27pm UTC](https://www.rubin.community/t/problem-with-the-initial-step-of-a-source-install/347/3 "2015-10-30T17:27:01Z")

</div>

My mistake–I was trying it by hand–the if/fi switch is “curl” vs. “git clone”, not wget.

---

<div class="post-metadata">

**Author:** ![rowen](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/rowen/32/52_2.png) [@rowen](https://www.rubin.community/u/rowen)\
**Post date:** [October 30, 2015, 5:27pm UTC](https://www.rubin.community/t/problem-with-the-initial-step-of-a-source-install/347/4 "2015-10-30T17:27:43Z")

</div>

Do you have 3rd party unix tools installed, e.g. via homebrew, MacPorts or fink? If so, which compiler, tar, and curl are you trying to use? If they aren’t the standard system installs I suggest disabling your 3rd party packages.

---

<div class="post-metadata">

**Author:** ![ktl](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ktl/32/1373_2.png) [@ktl](https://www.rubin.community/u/ktl)\
**Post date:** [October 30, 2015, 5:28pm UTC](https://www.rubin.community/t/problem-with-the-initial-step-of-a-source-install/347/5 "2015-10-30T17:28:54Z")

</div>

So you might try it manually to see where the problem is:

```bash
curl -LO https://github.com/RobertLuptonTheGood/eups/archive/1.5.9.tar.gz
tar xzvf 1.5.9.tar.gz

```

---

<div class="post-metadata">

**Author:** ![idellant](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@idellant](https://www.rubin.community/u/idellant)\
**Post date:** [October 30, 2015, 5:34pm UTC](https://www.rubin.community/t/problem-with-the-initial-step-of-a-source-install/347/6 "2015-10-30T17:34:23Z")

</div>

Thanks Russell and KT–it was indeed an evil link of tar to gtar in my path. Disabling the link gets me past this step!
