Fast installation script

48 views
Skip to first unread message

Aycan iRiCAN

unread,
Jul 29, 2011, 8:07:07 PM7/29/11
to core-...@googlegroups.com
I wanted to initialize a new core-server instance FAST. So I created a shell script:


Now you can install core-server by feeding it to shell:


Regards,

zekUs

unread,
Jul 16, 2012, 3:18:32 AM7/16/12
to core-...@googlegroups.com
is there a problem with the installer archive? here is the output. it says that the archive is not in gzip format

zekus@li499-160:~$ curl labs.core.gen.tr/install-core-server.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   368  100   368    0     0   2042      0 --:--:-- --:--:-- --:--:--  4487
The script makes a directory ~/lisp, extracts core-server installer
in ~/lisp and starts installing core-server to ~/lisp/core-server.

Please press <return> to continue.
Resolving labs.core.gen.tr (labs.core.gen.tr)... 93.94.250.121
Connecting to labs.core.gen.tr (labs.core.gen.tr)|93.94.250.121|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24581 (24K) [application/x-gzip]
Saving to: `core-server-installer-latest.tar.gz'

100%[============================================================================================================================================================>] 24,581      --.-K/s   in 0.1s

2012-07-16 07:15:27 (195 KB/s) - `core-server-installer-latest.tar.gz' saved [24581/24581]


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
sh: 16: cd: can't cd to core-server-installer
sh: 0: Can't open ./install.sh


30 Temmuz 2011 Cumartesi 03:07:07 UTC+3 tarihinde Aycan iRiCAN yazdı:

Evrim Ulu

unread,
Jul 16, 2012, 5:52:38 AM7/16/12
to core-...@googlegroups.com
Hello,

Sorry for the bug, it's a gzip now, not bzip2.

evrim.

zekUs

unread,
Jul 16, 2012, 8:27:50 AM7/16/12
to core-...@googlegroups.com
now it says --partial is an unrecognized option for darcs. i read that --partial removed from darcs and replaced by --lazy. do we need to install an old version of darcs?

Executing command: /usr/bin/darcs get --partial http://common-lisp.net/~loliveira/darcs/trivial-features/ trivial-features/

darcs failed:  unrecognized option `--partial'


16 Temmuz 2012 Pazartesi 12:52:38 UTC+3 tarihinde Evrim Ulu yazdı:

Evrim Ulu

unread,
Jul 16, 2012, 9:11:53 AM7/16/12
to core-...@googlegroups.com
OK,

changed it from --partial to --lazy.

evrim.

zekUs

unread,
Jul 16, 2012, 9:40:04 AM7/16/12
to core-...@googlegroups.com
ok. installed without any problem.

first execution of ./core-server start ended with an unimpressice sbcl promtp. when i inspect found that the problem is about new lines at core-server script at line number 70. there "--load $CONFIGGILE" line was under the "$(lookup sbcl) --dynamic-space-size $MEMSIZE" line. so script complained about "--load command not found". i take it to appropriate place and problem solved. it started to compile and at one point this was the error message;

Component IRONCLAD-SYSTEM::NIBBLES not found, required by #<SYSTEM "ironclad">.

debugger invoked on a ASDF:MISSING-DEPENDENCY in thread
#<THREAD "initial thread" RUNNING {1002998FA3}>:
  Component IRONCLAD-SYSTEM::NIBBLES not found, required by #<SYSTEM "ironclad">

it looks like ironclad have a dependency to nibbles. i found a reference about it here: http://goo.gl/kUFbn

16 Temmuz 2012 Pazartesi 16:11:53 UTC+3 tarihinde Evrim Ulu yazdı:

zekUs

unread,
Jul 16, 2012, 10:24:04 AM7/16/12
to core-...@googlegroups.com
i tried to add "nibbles tar https://github.com/froydnj/nibbles/tarball/v0.10" to lib.conf but i realize that it is not thay easy. it complained about the usage of the tar command. 

times like this make me miss the dependency management of quicklisp :))

16 Temmuz 2012 Pazartesi 16:40:04 UTC+3 tarihinde zekUs yazdı:

Evrim Ulu

unread,
Jul 17, 2012, 12:28:45 AM7/17/12
to core-...@googlegroups.com
Zekus,

Fixed \\ bug in bin/core-server.

zekUs

unread,
Jul 17, 2012, 7:20:06 AM7/17/12
to core-...@googlegroups.com
yeah i checked it out and the new line problem vanished.

what about nibbles dependency of ironclad? i tried to figure out your installation process and i added a line to lib.conf for nibbles tarball but it complained about the usage of tar command. and now ia found that i add wrong address. 

last state:

i downloaded/extracted installer
add this line to the lib.conf file: nibbles    tar  http://www.method-combination.net/lisp/files/nibbles.tar.gz
installed
start&attach

i have this error. i am tracking it now.

; compilation aborted because of fatal error:
;   Symbol "MAKE-OCTET-VECTOR" not found in the NIBBLES package.
;
;     Line: 246, Column: 60, File-Position: 12956
;
;     Stream: #<SB-SYS:FD-STREAM
;               for "file /home/zekus/core-server/lib/ironclad/src/ciphers/modes.lisp"
;               {1009D06383}>
;
; compilation aborted after 0:00:00.119
ASDF could not load core-server because
    Error while invoking #<COMPILE-OP (:VERBOSE NIL) {1009CDCC23}> on
    #<IRONCLAD-SOURCE-FILE "ironclad" "src" "ciphers" "modes">.

debugger invoked on a ASDF:COMPILE-ERROR in thread
#<THREAD "initial thread" RUNNING {1002998FA3}>:
  Error while invoking #<COMPILE-OP (:VERBOSE NIL) {1009CDCC23}> on
  #<IRONCLAD-SOURCE-FILE "ironclad" "src" "ciphers" "modes">


17 Temmuz 2012 Salı 07:28:45 UTC+3 tarihinde Evrim Ulu yazdı:
Zekus,

Fixed \\ bug in bin/core-server.

zekUs

unread,
Jul 17, 2012, 7:40:38 AM7/17/12
to core-...@googlegroups.com
it looks interesting. i found a reference to "nibbles:make-octet-vector" from ironclad to nibbles package. but when i downloaded nibbles official tarball and search the term "make-octet-vector" search return no results in nibbles source directory.

17 Temmuz 2012 Salı 14:20:06 UTC+3 tarihinde zekUs yazdı:

Evrim Ulu

unread,
Jul 17, 2012, 7:41:57 AM7/17/12
to core-...@googlegroups.com
Interestingly, most of the repos swtiched to git.

I've added git to core-server. lib.conf now supports git.
Added ironclad, nibbles, alexandria from git repos.

Please re-try.

evrim.

zekUs

unread,
Jul 17, 2012, 8:11:12 AM7/17/12
to core-...@googlegroups.com
core-server loads, starts, after that manager application loading compains about "no symbol SSL in CORE-SERVER package" 

17 Temmuz 2012 Salı 14:41:57 UTC+3 tarihinde Evrim Ulu yazdı:

zekUs

unread,
Jul 17, 2012, 8:13:27 AM7/17/12
to core-...@googlegroups.com
what about core-server's swank version? when i try to connect core-server swank server from my windows box using ssh tunneling it warns about slime-swank version difference and can not connect. is swank old in your release?

17 Temmuz 2012 Salı 15:11:12 UTC+3 tarihinde zekUs yazdı:

Evrim Ulu

unread,
Jul 18, 2012, 2:32:09 AM7/18/12
to core-...@googlegroups.com
hmm, feature +SSL is provided by
http://common-lisp.net/project/cl-plus-ssl/

in order to enable several SSL support, ie, mail-sender TLL support or
http client ssl support cl+ssl must be loaded previously.

maybe it's better to add cl+ssl to lib.conf yet i'm not sure. it
requires some other dependencies.

evrim.

Evrim Ulu

unread,
Jul 18, 2012, 2:32:47 AM7/18/12
to core-...@googlegroups.com
ops, not TLL, its TLS, sorry for the type.

evrim.

Evrim Ulu

unread,
Jul 18, 2012, 2:45:09 AM7/18/12
to core-...@googlegroups.com
Yep,

Our version of Slime is a little bit rotten :( You can checkout newest version:

cvs -d :pserver:anonymous:anon...@common-lisp.net:/project/slime/cvsroot
co slime

and comment out the following line in etc/start.lisp

;; (SETF (SYMBOL-VALUE (FIND-SYMBOL "*CODING-SYSTEM*" (FIND-PACKAGE
'SWANK))) "utf-8-unix")

evrim.
> --
> To access group - http://groups.google.com/group/core-server
> To access [Core-serveR] - http://labs.core.gen.tr/
> -- Take this REPL brother and may it serve you well.

zekUs

unread,
Jul 18, 2012, 7:26:36 AM7/18/12
to core-...@googlegroups.com
i propose to discuss quicklisp as a dependency management tool for the installer script. 

you can tell me "go awaythe quicklisp maniac" but it makes no sense to me to spend a lot of effort to make eg. +SSL packages' deps loaded properly. 

 i wish to evaluate (ql:quickload "core-server") and use core-server instantly. yeah this will not be done soon. i imagine a workflow for the installer script: it checks and install quicklisp itself, use quicklisp to load dependencies listed in lib.conf and load core-serve itself finally. 

i may be volunteer to try something i described above if you do not make me give up this feeling that quicklisp suits for this dependency management job.

18 Temmuz 2012 Çarşamba 09:32:09 UTC+3 tarihinde Evrim Ulu yazdı:

Evrim Ulu

unread,
Jul 18, 2012, 10:12:03 AM7/18/12
to core-...@googlegroups.com
Zekus,

I am very positive about that, of course you can try. Continue sending
mails whenever you have a question.

evrim.

zekUs

unread,
Jul 20, 2012, 1:21:10 AM7/20/12
to core-...@googlegroups.com
in manager/src/packages.lisp i changed the package definition like this: there was a import from claues for "#:ssl" that raises an error of core-server package not to have a symbol called "ssl". then i added cl+ssl package to :use list. and for a quick work around i added (ql:quicload "cl+ssl") before require of manager app (i have .sbclrc instructions for quicklisp). 

so with these modifications now ia can run the manager application.

old one:
(defpackage :tr.gen.core.manager
  (:nicknames :manager)
  (:import-from #:core-server #:host #:port #:peers-max #:peer-class
#:protocol #:username #:password #:mail-port #:ssl
#:server)
  (:use :common-lisp :core-server :arnesi))

new one:
(defpackage :tr.gen.core.manager
  (:nicknames :manager)
  (:import-from #:core-server #:host #:port #:peers-max #:peer-class
#:protocol #:username #:password #:mail-port 
#:server)
  (:use :common-lisp :core-server :arnesi :cl+ssl))


18 Temmuz 2012 Çarşamba 17:12:03 UTC+3 tarihinde Evrim Ulu yazdı:

Evrim Ulu

unread,
Jul 21, 2012, 3:49:59 AM7/21/12
to core-...@googlegroups.com
Hello Zekus,

for SSL, we use #+ssl feature. It is available when CL+SSL is loaded.

#+ssl
..
#-ssl
...


i hope this helps.

evrim.
Reply all
Reply to author
Forward
0 new messages