__DL__ changed the topic of #ocaml to: OCaml 3.09.0 available! Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
knobo_ has joined #ocaml
knobo has quit [Read error: 101 (Network is unreachable)]
smimou has quit [Read error: 110 (Connection timed out)]
m3ga has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
humasect has joined #ocaml
Smerdyakov has joined #ocaml
fab_ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
pango_ has joined #ocaml
Smerdyakov has quit ["Leaving"]
pango has quit [Read error: 110 (Connection timed out)]
tristram has quit [Read error: 110 (Connection timed out)]
tristram has joined #ocaml
humasect has quit ["Leaving.."]
m3ga has joined #ocaml
shirogane has quit [Read error: 104 (Connection reset by peer)]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
humasect has joined #ocaml
pango_ has quit [Remote closed the connection]
pango has joined #ocaml
ptseng has joined #ocaml
<ptseng> hey, is anyone here?
<ptseng> does anyone know how to uninstall ocaml?
<ptseng> i downloadeed 3.09, but i need 3.08.4 to compile another program, so i have to uninstall first
<flux__> I would rather just install it to another location?
<ptseng> i'm downloading the os x binary from http://caml.inria.fr/, though
<ptseng> and it installs to /usr/local/bin
<ptseng> furthermore, when i delete all files containing 'caml', the older installer still refuses to install, saying that there's a newer version available
<ptseng> which means that there's a registry somewhere...
fab_ has quit [Remote closed the connection]
ramkrsna has joined #ocaml
humasect has quit [Read error: 110 (Connection timed out)]
_JusSx_ has joined #ocaml
ramkrsna is now known as rK|tea
smimou has joined #ocaml
rK|tea is now known as ramkrsna
ramkrsna has quit ["Leaving"]
mattam has quit [Read error: 104 (Connection reset by peer)]
mattam has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
Snark has joined #ocaml
ramkrsna has joined #ocaml
Snark has quit ["Leaving"]
vegai has joined #ocaml
mkhl has joined #ocaml
bluestorm has joined #ocaml
Smerdyakov has joined #ocaml
Smerdyakov has quit [Client Quit]
mkhl has quit []
Raziel has quit [Read error: 104 (Connection reset by peer)]
Raziel has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
humasect has joined #ocaml
quamaretto has joined #ocaml
<ptseng> does anyone know how to uninstall ocaml?
<humasect> make uninstall if from source
<ptseng> i downloaded the binary for os x
<ptseng> and it has the makefile
<ptseng> but it can't make uninstall
<humasect> hm. the windows bundle installs into application directory and adds 1 or 2 env vars
<ptseng> do you know what they are?
<ptseng> it's probably similar for os x
<humasect> it might be similar. OCAMLDIR if that is set like it is for win32 installer, then changing it and PATH can use your new installation if you are planning to make one
<humasect> those two +)
<_JusSx_> ptseng: why do you wonna remove ocaml?
<ptseng> i downloaded 3.09
<ptseng> but need 3.08.4 to install a package
<ptseng> sorry i was away
<ptseng> humasect: where can i find the file to alter those variables?
<ptseng> i'm a bit of a newb when it comes to this stuff
<humasect> on osx i am not sure where the system puts all envs, i don't think /etc/profile, but ~/.profile for users
<ptseng> actually
<ptseng> it is in fact /etc/profile :)
<ptseng> does this look right? :
<ptseng> # System-wide .profile for sh(1)
<ptseng> PATH="/bin:/sbin:/usr/bin:/usr/sbin"
<ptseng> export PATH
<ptseng> if [ "${BASH-no}" != "no" ]; then
<ptseng> [ -r /etc/bashrc ] && . /etc/bashrc
<ptseng> fi
<humasect> hm it doesn't look to be set for ocaml though
<ptseng> right
<humasect> the installer should have entered OCAMLDIR and the PATH change in the same file
<humasect> unless it just changed PATH. check with 'set' in Terminal.
<ptseng> Last login: Mon Dec 26 03:49:37 on ttyp1
<ptseng> Welcome to Darwin!
<ptseng> Buster:~ ptseng$ set
<ptseng> BASH=/bin/bash
<ptseng> BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="powerpc-apple-darwin8.0")
<ptseng> BASH_VERSION='2.05b.0(1)-release'
<ptseng> COLUMNS=80
<ptseng> DIRSTACK=()
<ptseng> EUID=501
<ptseng> GROUPS=()
<ptseng> HISTFILE=/Users/ptseng/.bash_history
<ptseng> HISTFILESIZE=500
<ptseng> HISTSIZE=500
<ptseng> HOME=/Users/ptseng
<ptseng> HOSTNAME=Buster.local
<ptseng> HOSTTYPE=powerpc
<ptseng> IFS=$' \t\n'
<ptseng> INFOPATH=/sw/share/info:/sw/info:/usr/share/info
<ptseng> LINES=24
<ptseng> LOGNAME=ptseng
<ptseng> MACHTYPE=powerpc-apple-darwin8.0
<ptseng> MAILCHECK=60
<ptseng> MANPATH=/sw/share/man:/usr/share/man:/usr/local/share/man:/usr/X11R6/man
<ptseng> OPTERR=1
<ptseng> OPTIND=1
<ptseng> OSTYPE=darwin8.0
<ptseng> PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
<ptseng> PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
<ptseng> PIPESTATUS=([0]="0")
<ptseng> PPID=7335
<ptseng> PROXYFTP=
<ptseng> PROXYHTTP=
<ptseng> PS1='\h:\w \u\$ '
<ptseng> PS2='> '
ski has quit [Read error: 104 (Connection reset by peer)]
<ptseng> PS4='+ '
<ptseng> PWD=/Users/ptseng
<ptseng> SECURITYSESSIONID=510c80
<ptseng> SHELL=/bin/bash
<ptseng> SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
<ptseng> SHLVL=1
<ptseng> TERM=xterm-color
<ptseng> TERM_PROGRAM=Apple_Terminal
<ptseng> TERM_PROGRAM_VERSION=133
<ptseng> UID=501
<ptseng> USER=ptseng
<ptseng> _=/sw/bin/init.sh
<ptseng> __CF_USER_TEXT_ENCODING=0x1F5:0:0
<ptseng> append_path ()
<ptseng> {
<ptseng> if ! eval test -z "\"\${$1##*:$2:*}\"" -o -z "\"\${$1%%*:$2}\"" -o -z "\"\${$1##$2:*}\"" -o -z "\"\${$1##$2}\""; then
<ptseng> eval "$1=\$$1:$2";
<humasect> what is 'which ocaml' return ?
<ptseng> fi
<ptseng> }
<humasect> ./sw/bin ? it looks like it is not set.
<ptseng> prepend_path ()
<ptseng> {
<ptseng> if ! eval test -z "\"\${$1##*:$2:*}\"" -o -z "\"\${$1%%*:$2}\"" -o -z "\"\${$1##$2:*}\"" -o -z "\"\${$1##$2}\""; then
<ptseng> eval "$1=$2:\$$1";
<ptseng> fi
<ptseng> }
<ptseng> Buster:~ ptseng$
<ptseng> not there either
<ptseng> 'which ocaml' didn't return anything
<ptseng> Buster:~ ptseng$ which ocaml
<ptseng> Buster:~ ptseng$
_JusSx_ has quit ["leaving"]
<humasect> ah
<humasect> so technically it is not installed
<ptseng> bizarre...
<ptseng> but there is some trace of it somewhere
<ptseng> because when i delete all files that contain 'caml'
<humasect> yeah. it's cleaner than win32 install
<ptseng> the older installer still detects the newer presence
<humasect> it could be looking in standard places for files
<ptseng> hey - what if i reinstall 3.09 from source?
<ptseng> then i could make uninstall, right?
<ptseng> or presumably so?
<humasect> /usr/local/lib/ocaml/
<ptseng> yes, i deleted that directory, and it still detects it
<humasect> if you configure that source tree with the same paths as the intaller for 3.09 yeah
<humasect> which ocamlc?
<ptseng> okay - the confusion begins. by source tree, you mean in the same... directory tree?
<ptseng> like /a/b/c/d
<ptseng> and what do you mean by which ocamlc?
<humasect> well the source tree's configuration for where to install
<humasect> there might be /opt/ocaml like here..
<ptseng> you mean in the tarball that you download?
<humasect> i installed it into /opt/ocaml
<humasect> like make uninstall will only work after you've configured the source tree for the destination install paths
<ptseng> so i would want to point the installation from source to install with source tree as /usr/local/lib/ocaml, correct?
<ptseng> how would i go about doing that?
<humasect> like cd ocaml-3.08.4; ./configure --prefix=/usr/local/
<ptseng> so drop the 'lib'?
<humasect> yeah
<humasect> it will make bin, lib, man
<ptseng> okay
<ptseng> i'll go ahead and try that
<ptseng> thank you so much!!
<ptseng> will you be around later?
<humasect> yes i will =) no problem.
<ptseng> ahhhh crap
<ptseng> Buster:~/Desktop/ocaml-3.09.0 ptseng$ ./configure -prefix=/usr/local/
<ptseng> Unknown option "-prefix=/usr/local/".
<ptseng> actually - i don't know why that doesn't work, but when i open up the 'configure' file, it has 'prefix=/usr/local' so i'll be fine
<ptseng> thanks again!
<humasect> it's two -'s =)
<humasect> ok.
<humasect> np
bluestorm is now known as bluedodo
bluedodo is now known as bluestorm
bluestorm is now known as bluestorme
bluestorme is now known as bluestorm
bluestorm is now known as bluestorm_
bluestorm_ is now known as bluestorm__
bluestorm__ is now known as bluestorm
<ptseng> humasect: i just finished reinstalling caml via source, but when i try 'make uninsetall' again, it still does not work
<humasect> hmm. try just installing the version you want via source
<ptseng> should i delete files with "caml" first?
<ptseng> or should it just install over
<ptseng> and also - when i do 'which caml' again, there is still no return
<ptseng> which you said was a sign of it not truly being installed?
<pango> it means there's no executable binary called "caml" in your current $PATH
<pango> and that it's not an alias or a script either
<ptseng> is there anything i should do to fix that?
<ptseng> or is it fine the way it is?
<pango> I use debian packaging, so keeping my system clean and organized is easy
<humasect> 'which caml' or 'which ocaml' ?
<ptseng> both return nothing
<humasect> right, i don't think it should install a caml but an ocaml
<humasect> install from source the version you would like
<ptseng> i just did, but the result was the same
<humasect> maybe put into --prefix=/opt/ocaml3.08.4/ and export PATH=/opt/ocaml3.08.4/bin:$PATH
<humasect> what result?
<ptseng> oh man...
<ptseng> thanks a lot guys, but -
<ptseng> it seems to be too much work for you and me to figure this out
<ptseng> i will just wait until the next version release, which should be compatible with caml 3.09
<ptseng> happy holidays! :)
<humasect> happy holidays
mkhl has joined #ocaml
rongenre has joined #ocaml
<rongenre> Is anyone particularly good at input channel stuff?
<bluestorm> dontasktoask :p
<rongenre> I'm finding input_line to be fairly slow -- i'm processing a big (> 1GB) file and, for instance /usr/bin/wc is much much faster than running input_line over the channel until it gets an EOF
<humasect> wc could even be mmapping with a \n count..
<rongenre> I looked up the source, it doesn't look like it. I was hoping that I could hack up a channel which did a big read from the file into memory and then worked from that buffer.
<humasect> hm yeah, input_line might do per character also
<rongenre> going to an extern pretty quickly, so it's harder to figure out
<rongenre> Not sure how I'd set up a buffering channel though
Smerdyakov has joined #ocaml
vodka-goo has joined #ocaml
joshcryer has joined #ocaml
kenben has joined #ocaml
kenben has quit [Read error: 113 (No route to host)]
batdog is now known as batdog|gone
Smerdyakov has quit ["Leaving"]
vodka-goo has quit ["Connection reset by by pear"]
Smerdyakov has joined #ocaml