Skip to content

Instantly share code, notes, and snippets.

View groovecoder's full-sized avatar

luke crouch groovecoder

View GitHub Profile
createdb: database creation failed: ERROR: encoding UTF8 does not match locale en_US
DETAIL: The chosen LC_CTYPE setting requires encoding LATIN1.
createdb: database creation failed: ERROR: template database "template_postgis" does not exist
Default DB name 'localwiki' already taken. Enter new DB name:
(localwiki)lcrouch-14912:localwiki-project lcrouch$ brew install gdal geos pil jetty
Unsatisfied dependency: numpy
Homebrew does not provide Python dependencies; install with:
pip install numpy
Error: An unsatisfied requirement failed this build.
(localwiki)lcrouch-14912:localwiki lcrouch$ sudo ./install_config/setup_jetty.sh
sed: 1: "/etc/default/jetty": extra characters at the end of d command
cp: /etc/solr/conf/schema.xml: No such file or directory
cp: /etc/solr/conf/schema.xml: No such file or directory
cp: /var/lib/jetty/webapps: No such file or directory
./install_config/setup_jetty.sh: line 8: service: command not found
./install_config/setup_jetty.sh: line 9: service: command not found
(localwiki)lcrouch-14912:Cellar lcrouch$ find . -name solrconfig.xml
./solr14/1.4.1/libexec/client/ruby/solr-ruby/solr/conf/solrconfig.xml
./solr14/1.4.1/libexec/client/ruby/solr-ruby/test/conf/solrconfig.xml
./solr14/1.4.1/libexec/contrib/clustering/src/test/resources/solr/conf/solrconfig.xml
./solr14/1.4.1/libexec/contrib/extraction/src/test/resources/solr/conf/solrconfig.xml
./solr14/1.4.1/libexec/contrib/velocity/src/main/solr/conf/solrconfig.xml
./solr14/1.4.1/libexec/example/example-DIH/solr/db/conf/solrconfig.xml
./solr14/1.4.1/libexec/example/example-DIH/solr/mail/conf/solrconfig.xml
./solr14/1.4.1/libexec/example/example-DIH/solr/rss/conf/solrconfig.xml
./solr14/1.4.1/libexec/example/multicore/core0/conf/solrconfig.xml
(localwiki)lcrouch-14912:Cellar lcrouch$ ps auxw|grep jetty
lcrouch 82966 0.0 0.0 2432768 620 s002 R+ 10:58PM 0:00.00 grep jetty
lcrouch 82718 0.0 1.1 2992880 187244 s003 S 10:38PM 0:10.37 /usr/bin/java -Djetty.home=/usr/local/Cellar/jetty/8.1.8/libexec -Djava.io.tmpdir=/var/folders/15/dfk095yn0jv2cvz3d825tsm80000gq/T/ -jar /usr/local/Cellar/jetty/8.1.8/libexec/start.jar --pre=etc/jetty-logging.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.jetty.jetty</string>
<key>ServiceDescription</key>
<string>Jetty 8</string>
<key>RunAtLoad</key>
<true/>
drwxr-xr-x 8 lcrouch lcrouch 272B Mar 19 22:51 .
drwx------@ 81 lcrouch lcrouch 2.7K Mar 11 09:19 ..
-rw-r--r-- 1 lcrouch lcrouch 618B Dec 2 08:32 com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.12427A86-ACEA-4C84-94AB-1EDE12FE8477.plist
-rw-r--r-- 1 lcrouch lcrouch 767B Mar 19 22:33 com.valvesoftware.steamclean.plist
-rw-r--r-- 1 lcrouch lcrouch 815B Jul 26 2008 com.zimbra.zdesktop.plist
-rw-r--r-- 1 lcrouch lcrouch 862B Mar 19 22:51 org.jetty.jetty.plist
lrwxr-xr-x 1 lcrouch lcrouch 56B Mar 19 22:18 org.postgresql.postgres.plist -> /usr/local/opt/postgresql9/org.postgresql.postgres.plist
-rw-r--r-- 1 lcrouch lcrouch 677B Mar 11 13:56 org.virtualbox.vboxwebsrv.plist
Default DB name 'localwiki' already taken. Enter new DB name:
localwiki2
createdb: could not connect to database template1: FATAL: role "postgres" does not exist
Error creating database
Traceback (most recent call last):
File "/Users/lcrouch/python/localwiki/bin/localwiki-manage", line 8, in <module>
load_entry_point('localwiki==0.5.0', 'console_scripts', 'localwiki-manage')()
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/localwiki-0.5.0-py2.7.egg/sapling/manage.py", line 37, in main
init_db.run(DATA_ROOT=DATA_ROOT, PROJECT_ROOT=PROJECT_ROOT)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/localwiki-0.5.0-py2.7.egg/sapling/utils/management/commands/init_db.py", line 155, in run
template1=# \l
List of databases
Name | Owner | Encoding | Collation | Ctype | Access privileges
-----------+---------+----------+-------------+-------------+---------------------
postgres | lcrouch | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | lcrouch | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/lcrouch +
| | | | | lcrouch=CTc/lcrouch
template1 | lcrouch | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/lcrouch +
| | | | | lcrouch=CTc/lcrouch
(3 rows)
Created data directory in /Users/lcrouch/python/localwiki/bin/../share/localwiki
Which version of PostGIS are you running?:
1) PostGIS 1.5
2) PostGIS 1.4
3) PostGIS 1.3
Enter "1", "2" or "3".
1