# How to install and run from local build

**URL:** <https://forums.foundationdb.org/t/how-to-install-and-run-from-local-build/4200>\
**Category:** Running FoundationDB\
**Created:** [October 27, 2023, 8:32pm UTC](https://forums.foundationdb.org/t/how-to-install-and-run-from-local-build/4200 "2023-10-27T20:32:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![metaforte](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/metaforte/32/1675_2.png) [@metaforte](https://forums.foundationdb.org/u/metaforte)\
**Post date:** [October 27, 2023, 8:32pm UTC](https://forums.foundationdb.org/t/how-to-install-and-run-from-local-build/4200/1 "2023-10-27T20:32:20Z")

</div>

Hi  
The getting started page (mac) shows how to use fdb if it is installed using the downloaded installer  
It does not show how to get started after building from sources.  
I am able to build from sources on my mac. I see binaries created in my fdbbuild/bin folder.

How can I start FDB from the bin folder for local development?

---

<div class="post-metadata">

**Author:** ![jzhou](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/jzhou/32/445_2.png) [@jzhou](https://forums.foundationdb.org/u/jzhou)\
**Post date:** [October 28, 2023, 4:01am UTC](https://forums.foundationdb.org/t/how-to-install-and-run-from-local-build/4200/2 "2023-10-28T04:01:28Z")

</div>

The easiest way is to run this script [https://github.com/apple/foundationdb/blob/main/tests/loopback\_cluster/run\_custom\_cluster.sh](https://github.com/apple/foundationdb/blob/main/tests/loopback_cluster/run_custom_cluster.sh), e.g., under your `fdbbuild/` directory

```auto
# ../src/foundationdb/tests/loopback_cluster/run_custom_cluster.sh . --stateless_count 4 --stateless_taskset 0xf --logs_count 8 --storage_count 10 --logs_taskset 0xff0 --storage_taskset 0xffff000
# bin/fdbcli -C ./loopback-cluster/fdb.cluster --exec 'status json' > json

```

The first command starts the cluster and initialize the database. The second command gets the “status json” into a file.

---

<div class="post-metadata">

**Author:** ![metaforte](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/metaforte/32/1675_2.png) [@metaforte](https://forums.foundationdb.org/u/metaforte)\
**Post date:** [October 29, 2023, 6:29am UTC](https://forums.foundationdb.org/t/how-to-install-and-run-from-local-build/4200/3 "2023-10-29T06:29:54Z")

</div>

Thanks a lot… I tried it… I got the below error when I ran … ☹

```auto
Starting Cluster: test1:testdb1@127.0.0.1:1501
../foundationdb/tests/loopback_cluster/run_custom_cluster.sh: line 43: taskset: command not found
../foundationdb/tests/loopback_cluster/run_custom_cluster.sh: line 43: taskset: command not found

configure new ssd single - stand by
../foundationdb/tests/loopback_cluster/run_custom_cluster.sh: line 43: taskset: command not found

WARNING: Long delay (Ctrl-C to interrupt)

The database is unavailable; type `status' for more information.

```

Could you please advise how to generate the installer and/or install as a service from the binaries

thanks  
Manas

---

<div class="post-metadata">

**Author:** ![metaforte](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/metaforte/32/1675_2.png) [@metaforte](https://forums.foundationdb.org/u/metaforte)\
**Post date:** [November 12, 2023, 4:10am UTC](https://forums.foundationdb.org/t/how-to-install-and-run-from-local-build/4200/4 "2023-11-12T04:10:56Z")

</div>

I found a post about packaing and found the command `cpack`

I tried it. It is creating tar.gz. I tried `cpack -G STGZ`. It created .sh file.

can someone please advise how do I create a osx installer?

---

<div class="post-metadata">

**Author:** ![metaforte](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/metaforte/32/1675_2.png) [@metaforte](https://forums.foundationdb.org/u/metaforte)\
**Post date:** [November 26, 2023, 9:43pm UTC](https://forums.foundationdb.org/t/how-to-install-and-run-from-local-build/4200/5 "2023-11-26T21:43:06Z")

</div>

🤔 🧐 my part time quest continues…
