Unable to install ERP on AWS

ubuntu@ip-172-31-3-220:~$ clear

ubuntu@ip-172-31-3-220:~$ curl “https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh” -o “setup_frappe.sh”
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14155 100 14155 0 0 44703 0 --:–:-- --:–:-- --:–:-- 44652
ubuntu@ip-172-31-3-220:~$ sudo bash setup_frappe.sh --setup-production
Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on https://discuss.frappe.io

Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time…
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8”,
LANG = “en_US.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8”,
LANG = “en_US.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8”,
LANG = “en_US.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8”,
LANG = “en_US.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Installing wkhtmltopdf

  • Stopping MariaDB database server mysqld [ OK ]
  • Starting MariaDB database server mysqld [ OK ]
  • Checking for corrupt, not cleanly closed and upgrade needing tables.
    Adding frappe user
    Installing frappe-bench
    Already using interpreter /usr/bin/python
    Traceback (most recent call last):
    File “/usr/local/bin/virtualenv”, line 11, in
    sys.exit(main())
    File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 708, in main
    symlink=options.symlink)
    File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 941, in create_environment
    download=download,
    File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 897, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
    File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 792, in call_subprocess
    % (cmd_desc, proc.returncode))
    OSError: Command /home/ubuntu/frappe-bench/env/bin/python - setuptools pip wheel failed with error code 1
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
    File “/home/ubuntu/bench-repo/bench/cli.py”, line 40, in cli
    bench_command()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/ubuntu/bench-repo/bench/commands/make.py”, line 17, in init
    no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 57, in init
    setup_env(bench=path)
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 103, in setup_env
    exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, sys.executable), cwd=bench)
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 100, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python

I am using mac with Yosemite and I followed this video - https://www.youtube.com/watch?v=7e2dd1-X8-s

You seem to be having a locale error, find fix here :