www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dsss manual

reply Morusaka <morusaka inwind.it> writes:
Hi,

I know this may sound as a rather stupid question, but where is located DSSS
manual?
I can't find it!

Of course I looked for it here: http://www.dsource.org/projects/dsss.

Thank you, Luca.
Nov 23 2008
next sibling parent reply "Bill Baxter" <wbaxter gmail.com> writes:
It's sort of split up, but this is the most useful doc in my opinion.
http://www.dsource.org/projects/dsss/wiki/DSSSForSoftwareEngineers

--bb

On Sun, Nov 23, 2008 at 6:09 PM, Morusaka <morusaka inwind.it> wrote:
 Hi,

 I know this may sound as a rather stupid question, but where is located DSSS
manual?
 I can't find it!

 Of course I looked for it here: http://www.dsource.org/projects/dsss.

 Thank you, Luca.

Nov 23 2008
parent reply Morusaka <morusaka inwind.it> writes:
Bill Baxter Wrote:

 It's sort of split up, but this is the most useful doc in my opinion.
 http://www.dsource.org/projects/dsss/wiki/DSSSForSoftwareEngineers
 
 --bb
 

Thank you Bill for your fastestthanlight reply!! I think I've some sort of installation issue, but that document doesn't cover dsss installation. I've added dsss/bin to my PATH, but when I try to build something I get: $ dsss build Failed to determine DSSS' installed prefix. $ Could you help me please? Thanks you, Luca.
Nov 23 2008
parent reply Morusaka <morusaka inwind.it> writes:
Jesse Phillips Wrote:

 You need to give dsss a place to install your program.
 
 $ dsss --prefix=<prefix> build
 
 I would suggest installing dsss to the system, do this from within the 
 where you have dsss. Then you won't have to include prefix every time 
 (though doing the above may only need to be done once)
 
 # ./dsss --prefix=/usr/local install
 
 Also when you do builds without root privilege you will get a message:
 
 Can't write to /usr/local using ~/d
 
 Just ignore it.

Thank you Jesse for your reply. I'm sorry, I followed your instructions, but I didn't manage to make it work properly. None of these worked: $ dsss --prefix=<prefix> build Unrecognized argument: --prefix=-/build (where ./build is, if I'm not wrong, the place where I want to install my program) neither $ dsss build --prefix=./build Failed to determine DSSS' installed prefix. What I'm doing wrong? Thank you, Luca.
Nov 23 2008
next sibling parent Morusaka <morusaka inwind.it> writes:
Jesse Phillips Wrote:
 # ./dsss --prefix=/usr/local install

I forgot to say that I also tryied: $ ./dsss install --prefix=/home/luca/workspace/ from the directory where dsss is located, but all I got was: No config file found and no targets explicitly specified. Argh!!! Thx, Luca.
Nov 23 2008
prev sibling parent reply Morusaka <morusaka inwind.it> writes:
Jarrett Billingsley Wrote:
 I don't think this actually has anything to do with the --prefix
 argument.  The error says that DSSS can't figure out where it lives.
 
 How did you install DSSS?  Where is it located, and how did you add it
 to your path?

Hi Jarrett, this is what I did: $ mkdir ws $ cd ws $ wget http://svn.dsource.org/projects/dsss/downloads/0.78/dsss-0.78-x86-gnuWlinux.tar.bz2 $ tar xvvf tar xvvf dsss-0.78-x86-gnuWlinux.tar.bz2 $ export PATH="~/ws/dsss-0.78-x86-gnuWlinux/bin:$PATH" Thank you, Luca.
Nov 23 2008
parent reply Morusaka <morusaka inwind.it> writes:
Morusaka Wrote:
 this is what I did:
 
 $ mkdir ws
 $ cd ws
 $ wget http://svn.dsource.org/projects/dsss/downloads/0.78/dsss-0.78-x86-gnuWlinux.tar.bz2
 $ tar xvvf tar xvvf dsss-0.78-x86-gnuWlinux.tar.bz2 
 $ export PATH="~/ws/dsss-0.78-x86-gnuWlinux/bin:$PATH"

AAAARRRRRGGGGGGGHHHHHHHHHHHHHHH!!!! what I miss was: $ mv dsss-0.78-x86-gnuWlinux dsss now it works. Thank you everybody!! P.S.: now it works, but even with the simpliest helloworld I got a strange ld error, damn!!!
Nov 23 2008
parent Morusaka <morusaka inwind.it> writes:
Jesse Phillips Wrote:
 Just to make sure this is a DSSS issue, it does compile with dmd correct? 
 The ld error would be helpful. It could be that $LD_LIBRARY_PATH doesn't 
 know where dsss/lib is.

Now the error is gone: module main; // <--- comment this and you get a ld error import std.stdio; int main(string[] args) { writefln("Hello world!"); return 0; } But uhm... no.. it compiles only with gdc... i didn't figure out how to tell dsss what compiler i want to use. That environment variable doesn't seem to exist: $ echo $LD_LIBRARY_PATH $
 Sorry it didn't help, I've never installed by changing the PATH. And your 
 solution seems a little odd. As Jarrett said, DSSS couldn't find it's 
 location and this I figured would be set up during the initial install.

I'm sorry, maybe I have to install it in /usr/local/bin? The dsss-site lacks a little installation section, I think. Thank you, Luca.
Nov 23 2008
prev sibling next sibling parent Jesse Phillips <jessekphillips gmail.com> writes:
On Sun, 23 Nov 2008 04:40:04 -0500, Morusaka wrote:

 Bill Baxter Wrote:
 
 It's sort of split up, but this is the most useful doc in my opinion.
 http://www.dsource.org/projects/dsss/wiki/DSSSForSoftwareEngineers
 
 --bb
 
 

of installation issue, but that document doesn't cover dsss installation. I've added dsss/bin to my PATH, but when I try to build something I get: $ dsss build Failed to determine DSSS' installed prefix. $ Could you help me please? Thanks you, Luca.

You need to give dsss a place to install your program. $ dsss --prefix=<prefix> build I would suggest installing dsss to the system, do this from within the where you have dsss. Then you won't have to include prefix every time (though doing the above may only need to be done once) # ./dsss --prefix=/usr/local install Also when you do builds without root privilege you will get a message: Can't write to /usr/local using ~/d Just ignore it.
Nov 23 2008
prev sibling next sibling parent "Jarrett Billingsley" <jarrett.billingsley gmail.com> writes:
On Sun, Nov 23, 2008 at 4:29 PM, Morusaka <morusaka inwind.it> wrote:
 Thank you Jesse for your reply.

 I'm sorry, I followed your instructions, but I didn't manage to make it work
properly.

 None of these worked:

 $ dsss --prefix=<prefix> build
 Unrecognized argument: --prefix=-/build
 (where ./build is, if I'm not wrong, the place where I want to install my
program)

 neither

 $ dsss build --prefix=./build
 Failed to determine DSSS' installed prefix.

 What I'm doing wrong?

 Thank you,

I don't think this actually has anything to do with the --prefix argument. The error says that DSSS can't figure out where it lives. How did you install DSSS? Where is it located, and how did you add it to your path?
Nov 23 2008
prev sibling next sibling parent "Jarrett Billingsley" <jarrett.billingsley gmail.com> writes:
On Sun, Nov 23, 2008 at 5:34 PM, Morusaka <morusaka inwind.it> wrote:
 Morusaka Wrote:
 this is what I did:

 $ mkdir ws
 $ cd ws
 $ wget http://svn.dsource.org/projects/dsss/downloads/0.78/dsss-0.78-x86-gnuWlinux.tar.bz2
 $ tar xvvf tar xvvf dsss-0.78-x86-gnuWlinux.tar.bz2
 $ export PATH="~/ws/dsss-0.78-x86-gnuWlinux/bin:$PATH"

AAAARRRRRGGGGGGGHHHHHHHHHHHHHHH!!!! what I miss was: $ mv dsss-0.78-x86-gnuWlinux dsss now it works.

:D
 Thank you everybody!!

 P.S.: now it works, but even with the simpliest helloworld I got a strange ld
error, damn!!!

OK, what's that error?
Nov 23 2008
prev sibling next sibling parent Jesse Phillips <jessekphillips gmail.com> writes:
On Sun, 23 Nov 2008 17:34:13 -0500, Morusaka wrote:

 Morusaka Wrote:
 this is what I did:
 
 $ mkdir ws
 $ cd ws
 $ wget
 http://svn.dsource.org/projects/dsss/downloads/0.78/dsss-0.78-x86-


 $ tar xvvf tar xvvf dsss-0.78-x86-gnuWlinux.tar.bz2 $ export
 PATH="~/ws/dsss-0.78-x86-gnuWlinux/bin:$PATH"

AAAARRRRRGGGGGGGHHHHHHHHHHHHHHH!!!! what I miss was: $ mv dsss-0.78-x86-gnuWlinux dsss now it works. Thank you everybody!! P.S.: now it works, but even with the simpliest helloworld I got a strange ld error, damn!!!

Just to make sure this is a DSSS issue, it does compile with dmd correct? The ld error would be helpful. It could be that $LD_LIBRARY_PATH doesn't know where dsss/lib is. Sorry it didn't help, I've never installed by changing the PATH. And your solution seems a little odd. As Jarrett said, DSSS couldn't find it's location and this I figured would be set up during the initial install.
Nov 23 2008
prev sibling parent Jesse Phillips <jessekphillips gmail.com> writes:
On Mon, 24 Nov 2008 00:41:54 -0500, Morusaka wrote:

 Jesse Phillips Wrote:
 Just to make sure this is a DSSS issue, it does compile with dmd
 correct? The ld error would be helpful. It could be that
 $LD_LIBRARY_PATH doesn't know where dsss/lib is.

Now the error is gone: module main; // <--- comment this and you get a ld error import std.stdio; int main(string[] args) { writefln("Hello world!"); return 0; } But uhm... no.. it compiles only with gdc... i didn't figure out how to tell dsss what compiler i want to use. That environment variable doesn't seem to exist: $ echo $LD_LIBRARY_PATH $
 Sorry it didn't help, I've never installed by changing the PATH. And
 your solution seems a little odd. As Jarrett said, DSSS couldn't find
 it's location and this I figured would be set up during the initial
 install.

I'm sorry, maybe I have to install it in /usr/local/bin? The dsss-site lacks a little installation section, I think. Thank you, Luca.

To change the compiler, go to your dsss/etc/rebuild directory. you should see a list of files one of which is 'default' edit that file to what best represents your environment. When you look in there you should understand. profile=gdc-posix
Nov 23 2008