Skip to content

Instantly share code, notes, and snippets.

@hanxue
hanxue / 01.configure.cc.log
Created May 2, 2014 05:50
Brew install php56 struct flock error
clang called with: -E -
superenv executed: clang -E - -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -I/usr/local/opt/gettext/include -I/usr/local/opt/zlib/include
clang called with: --version
superenv executed: clang -pipe -Os -march=native --version -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -I/usr/local/opt/gettext/include -I/usr/local/opt/zlib/include -L/usr/local/opt/gettext/lib -L/usr/local/opt/zlib/lib -L/usr/local/lib -L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries -Wl,-headerpad_max_install_names
clang called with: -v
superenv executed: clang -v
clang called with: -V
@hanxue
hanxue / 01.configure
Created May 12, 2014 12:38
homebrew llvm-3.4 upgrade error
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/clang++ accepts -g... yes
@hanxue
hanxue / -
Created May 12, 2014 19:22
brew doctor output for building llvm 3.4
Warning: Setting DYLD_* vars can break dynamic linking.
Set variables:
DYLD_LIBRARY_PATH
Warning: /usr/local/share/python is not needed in PATH.
Formerly homebrew put Python scripts you installed via `pip` or `pip3`
(or `easy_install`) into that directory above but now it can be removed
from your PATH variable.
Python scripts will now install into /usr/local/bin.
You can delete anything, except 'Extras', from the /usr/local/share/python
(and /usr/local/share/python3) dir and install affected Python packages
@hanxue
hanxue / brew cask doctor
Last active August 29, 2015 14:01
Homebrew Cask google quick search box error
$ brew cask doctor
==> OS X Version:
10.9.2
==> Hardware Architecture:
intel-64
==> Ruby Version:
1.8.7-p358
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
==> Homebrew Version:
@hanxue
hanxue / wget-spindump.txt
Created May 22, 2014 13:34
Spindump of hanging wget process NTFS problem
This file has been truncated, but you can view the full file.
Date/Time: 2014-05-22 21:29:25 +0800
OS Version: 10.9.2 (Build 13C1021)
Architecture: x86_64
Report Version: 18
Command: wget
Path: /usr/local/bin/wget
Version: ??? (???)
Parent: launchd [1]
@hanxue
hanxue / build.sbt
Last active August 29, 2015 14:01
sbt scalatest error
name := "controller-simulator"
organization := "net.entrypass"
version := "0.1"
scalaVersion := "2.11.0"
//Define dependencies. These ones are only required for Test and Integration Test scopes.
libraryDependencies ++= Seq(
@hanxue
hanxue / gitbucket-sbt-gen-idea.log
Created May 29, 2014 18:35
Output of sbt gen-idea on gitbucket project
$ sbt gen-idea
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1G; support was removed in 8.0
[info] Loading global plugins from /Users/hanxue/.sbt/0.13/plugins
[info] Updating {file:/Users/hanxue/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.1/jars/sbt.jar ...
[info] [SUCCESSFUL ] org.scala-sbt#sbt;0.13.1!sbt.jar (1744ms)
[info] downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.1/jars/main.jar ...
[info] [SUCCESSFUL ] org.scala-sbt#main;0.13.1!main.jar (7580ms)
[info] downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.1/jars/compiler-interface-bin.jar ...
@hanxue
hanxue / unzip-p.sh
Created June 17, 2014 09:53
Extract file from within jar archive
# This will extract the file MANIFEST.MF in directory META-INF, inside the sbt-launcher.jar file
$ unzip -p /usr/local/opt/sbt/libexec/sbt-launch.jar META-INF/MANIFEST.MF
Manifest-Version: 1.0
Implementation-Vendor: org.scala-sbt
Implementation-Title: Launcher
Implementation-Version: 0.13.2
Implementation-Vendor-Id: org.scala-sbt
Specification-Vendor: org.scala-sbt
Specification-Title: Launcher
@hanxue
hanxue / commands-to-build-sbt.sh
Last active August 29, 2015 14:02
Building sbt 0.13.5 fails
$ git clone git://github.com/sbt/sbt.git
$ cd sbt
$ git checkout v0.13.1
$ sbt --version
sbt launcher version 0.13.5
$ sbt
> publishLocal
@hanxue
hanxue / java.io.IOException-unable-to-delete-file.txt
Created June 20, 2014 10:21
GitBucket fail to delete file (delete repository) stack trace
java.io.IOException: Unable to delete file: C:\Users\ep\.gitbucket\repositories\user1\hanxue-debug.git\objects\pack\pack-77a7330a1fa2e4d7c170dd144cd3987185ebc9ae.pack
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)