Skip to content

Instantly share code, notes, and snippets.

View conradwt's full-sized avatar
🎯
Focusing

Conrad Taylor conradwt

🎯
Focusing
View GitHub Profile
@conradwt
conradwt / gist:257344
Created December 15, 2009 21:55
libiconv verification
$ ls -al /opt/local/lib/libiconv.dylib
lrw-r--r-- 1 root admin 16 Nov 11 08:54 /opt/local/lib/libiconv.dylib -> libiconv.2.dylib
$ which iconv
/opt/local/bin/iconv
$ iconv --version
iconv (GNU libiconv 1.13)
Copyright (C) 2000-2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
irb(main):001:0> FFI::DEBUG = 10
=> 10
irb(main):002:0> require 'iconv'
RpWarning: parenthesize argument(s) for future version
RpWarning: parenthesize argument(s) for future version
--FFI: ffi_lib: adding
--FFI: ffi_lib: adding libiconv
--FFI: attach_function: iconv_open searching process
--FFI: attach_function: iconv_open searching lib libiconv
error , Unable to find FFI 'iconv_open' in: ,
$ nm /opt/local/lib/libiconv.dylib | grep iconv_open
0000000000017f30 T _libiconv_open
0000000000018a60 T _libiconv_open_into
$ file /opt/local/lib/libiconv.dylib
/opt/local/lib/libiconv.dylib: Mach-O 64-bit dynamically linked shared library x86_64
$ nm /usr/lib/libiconv.dylib | grep iconv_open
000150b5 T _iconv_open
000158cc T _libiconv_open
$ ant clean build-all
Buildfile: build.xml
BUILD FAILED
/Users/conradwt/clojure.dir/projects/enclojure/build.xml:2: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
$ cat /Users/conradwt/.rvm/log/ruby-head/make*.log
[2010-01-17 17:17:26] make
pack.c: In function ‘pack_unpack’:
pack.c:1956: warning: comparison between signed and unsigned
pack.c:1996: warning: comparison between signed and unsigned
+ cp ./lex.c.blt lex.c
In file included from parse.y:6056:
defs/keywords:82: warning: ‘__gnu_inline__’ attribute directive ignored
generating newline.c ...
converter for universal_newline
$ rvm install openssl ; rvm remove 1.8.7 ; rvm install 1.8.7 -C --with-openssl-dir=$HOME/.rvm/usr
Fetching openssl-0.9.8k.tar.gz to /Users/conradwt/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3761k 100 3761k 0 0 134k 0 0:00:27 0:00:27 --:--:-- 166k
Extracting openssl-0.9.8k.tar.gz to /Users/conradwt/.rvm/src
$ rvm -v
rvm 0.1.13 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
$ rvm install 1.9.1-head
Installing Ruby from source to: /Users/conradwt/.rvm/rubies/ruby-1.9.1-head
Updating ruby from http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1
$ rvm install ruby-head
Installing Ruby from source to: /Users/conradwt/.rvm/rubies/ruby-head
Updating ruby from http://svn.ruby-lang.org/repos/ruby/trunk
Compiling ruby-head, this may take a while, depending on your cpu(s)...
@conradwt
conradwt / gist:1280677
Created October 12, 2011 08:48
Precompiling Assets
$ bundle exec rake assets:precompile --trace
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from require at /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:68)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from require at /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:68)
/home/smartn/smartn.me/shared/bundle/ruby/1.9.1/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/usr/local/rvm/rubies/ruby-1.9.2-head/bin/ruby /home/smartn/smartn.me/shared/bundle/ruby/1.9.1/bin/rake assets:precompile:all RAILS_ENV=produc
@conradwt
conradwt / gist:1612734
Created January 14, 2012 20:16
building rbx using rvm install rbx -- --cc=clang --cxx=clang
$ rvm install rbx -- --cc=clang --cxx=clang
rbx-head installing #dependencies
Pulling from origin master
Copying from repo to source...
rbx-head - #configuring
rbx-head - #compiling
ERROR: Error running '/Users/conradwt/.rvm/wrappers/ruby-1.9.3-head/rake install', please read /Users/conradwt/.rvm/log/rbx-head/rake.log
ERROR: There has been an error while running '/Users/conradwt/.rvm/wrappers/ruby-1.9.3-head/ruby ./configure --prefix=/Users/conradwt/.rvm/rubies/rbx-head --skip-system --cc=clang --cxx=clang'.
Halting the installation.
[12:15] [~/rails.dir/projects/catarse] [ruby] [1.9.3] [madmimi] $ cat /Users/conradwt/.rvm/log/rbx-head/rake.log