# Build slicer without root privilege?

**URL:** <https://discourse.slicer.org/t/build-slicer-without-root-privilege/10682>\
**Category:** Development\
**Created:** [March 14, 2020, 6:44am UTC](https://discourse.slicer.org/t/build-slicer-without-root-privilege/10682 "2020-03-14T06:44:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ButuiHu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/butuihu/32/2386_2.png) [@ButuiHu](https://discourse.slicer.org/u/ButuiHu)\
**Post date:** [March 14, 2020, 6:44am UTC](https://discourse.slicer.org/t/build-slicer-without-root-privilege/10682/1 "2020-03-14T06:44:07Z")

</div>

Hi, it seems that during the building to slicer, it attempts to install something to the root partition? Here is the cmake options I used:

```auto
		-DCMAKE_INSTALL_LIBDIR:PATH=lib
		-DCMAKE_INSTALL_PREFIX:PATH="build-dist"
		-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON
		-DSlicer_USE_CTKAPPLAUNCHER=0
		-DSlicer_USE_SYSTEM_bzip2=1
		-DSlicer_USE_SYSTEM_curl=1
		-DSlicer_USE_SYSTEM_LibArchive=1
		-DSlicer_USE_SYSTEM_OpenSSL=1
		-DSlicer_USE_SYSTEM_python=1
		-DSlicer_USE_SYSTEM_QT=1
		-DSlicer_USE_SYSTEM_RapidJSON=1
		-DSlicer_USE_SYSTEM_sqlite=1
		-DSlicer_USE_SYSTEM_tbb=1
		-DSlicer_USE_SYSTEM_tcl=1
		-DSlicer_USE_SYSTEM_tk=1
		-DSlicer_USE_SYSTEM_VTK=1
		-DSlicer_USE_SYSTEM_zlib=1

```

Though `CMAKE_INSTALL_PREFIX` is set to a dir the current user has rw permission, some external project is built and installed to root partition, eg. SimpleITK. Is there any related variable to setup? Did I miss something?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [March 14, 2020, 3:29pm UTC](https://discourse.slicer.org/t/build-slicer-without-root-privilege/10682/2 "2020-03-14T15:29:39Z")

</div>

The `Slicer_USE_SYSTEM` family of options probably don’t get much testing. Maybe you can do a series of builds and see which ones have issues? Whatever the issue is it’s probably very fixable.
