Skip to content

Commit

Permalink
[docs] Update Hue installation steps for macOS section (#2878)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshg999 committed Jun 8, 2022
1 parent 90713ce commit cd8ba12
Showing 1 changed file with 21 additions and 13 deletions.
Expand Up @@ -161,11 +161,16 @@ This is a verified step-by-step guide on how to get Hue up and running on a fres
5. Create the hue database and set permissions

```
# Create the DB
createdb hue_d --lc-collate='en_US.UTF-8' -T "template0"
# Connect to the dbms shell
psql -s hue_d
hue_d=# create user hue_u with password 'huepassword';
hue_d=# grant all privileges on database hue_d to hue_u;
hue_d=# \q
# Run the following lines one by one
create user hue_u with password 'huepassword';
grant all privileges on database hue_d to hue_u;
\q
```

6. Install gmp, openssl and libffi (Note some might be installed from postgres)
Expand All @@ -177,15 +182,11 @@ This is a verified step-by-step guide on how to get Hue up and running on a fres

- For Intel Macs, only Python 3.8 works as April 2022. Python 3.8 via Homebrew might work. However, direct download from python.org is preferred and tested.

8. Install mysql client

`brew install mysql`

9. Install node and npm (unless already present)
8. Install node and npm (unless already present) using nvm or brew

`brew install node`

10. In the cloned hue folder run:
9. In the cloned hue folder run:

```
export PYTHON_VER=python3.8
Expand All @@ -197,7 +198,7 @@ This is a verified step-by-step guide on how to get Hue up and running on a fres
make apps
```

11. Configure Hue to your liking, edit
10. Configure Hue to your liking, edit

`desktop/conf/pseudo-distributed.ini`

Expand All @@ -213,13 +214,20 @@ This is a verified step-by-step guide on how to get Hue up and running on a fres
name=hue_d
```

12. If you use postgres as configured in the previous step you'll need to add the psycopg2 lib manually
11. If you use postgres as configured in the previous step you'll need to add the psycopg2 lib manually

`./build/env/bin/pip install psycopg2-binary`

13. Start Hue (note that export from step 10 above needs to be active)
12. Apply migrations (if any)

```
./build/env/bin/hue makemigrations
./build/env/bin/hue migrate
```

13. Start Hue

`./build/env/bin/hue runserver 0.0.0.0:8888`
`./build/env/bin/hue runserver`

#### 10.14, 10.15

Expand Down

0 comments on commit cd8ba12

Please sign in to comment.