# can't create Sage clone

Hi all:

I just tried to create a Sage 4.6 sandbox to start writing patches with but got some apparently fatal errors running Mac OS 10.6 with the latest version of Xcode installed. Any suggestions?

Alex

```
raichev@wujarch-l/Applications/sage> ./sage -clone dabble
Now cloning the current Sage library branch...
hg clone sage sage-dabble
updating working directory
2339 files updated, 0 files merged, 0 files removed, 0 files unresolved
Copying over all Cython auto-generated .c, .cpp and .h files...
Copying over build directory...
Copying over all auto-generated reference manual .rst files...
Copying over documentation output...
Building sage-dabble...
sage -b dabble
----------------------------------------------------------
sage: Building and installing modified Sage library files.
Installing c_lib
gcc -o src/convert.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/convert.c
In file included from include/convert.h:12:0,
from src/convert.c:14:
/Applications/sage/local/include/pari/pari.h:20:47: fatal error: stdlib.h: No such file or directory
compilation terminated.
scons: *** [src/convert.os] Error 1
ERROR: There was an error building c_lib.
real 0m0.848s
user 0m0.281s
sys 0m0.224s
Error building Sage
After cloning, if you change any Sage library files and want to rebuild
the html version of the reference manual, use the command
sage -docbuild reference html
(after running 'sage -b').
Note: if *before* cloning, you have changed any Sage library files
without rebuilding the reference manual, then after cloning, you
will need to touch those files again if you want the changes
to be incorporated into the reference manual.
Updating modification times for the documentation...
sage -docbuild --update-mtimes reference html
Warning: Could not import sage.combinat.words.morphism dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Library not loaded: libcsage.dylib
Referenced from: /Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so
Reason: image not found
Warning: Could not import sage.crypto.block_cipher.miniaes dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Library not loaded: libcsage.dylib
Referenced from: /Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so
Reason: image not found
[lots of the same and then...]
sphinx-build -b html -d /Applications/sage/devel/sage/doc/output/doctrees/en/reference /Applications/sage/devel/sage/doc/en/reference /Applications/sage/devel/sage/doc/output/html/en/reference
Traceback (most recent call last):
File "/Applications/sage/local/bin/sphinx-build", line 6, in <module>
import sage.all
File "/Applications/sage/local/lib/python2.6/site-packages/sage/all.py", line 56, in <module>
from sage.rings.memory import pmem_malloc
ImportError: dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Library not loaded: libcsage.dylib
Referenced from: /Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so
Reason: image not found
Build finished. The built documents can be found in /Applications/sage/devel/sage/doc/output/html/en/reference
*** WARNING ***
If you are cloning ...
```