Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any chance of a tutorial ? #6

Closed
mingodad opened this issue May 15, 2015 · 5 comments
Closed

Any chance of a tutorial ? #6

mingodad opened this issue May 15, 2015 · 5 comments

Comments

@mingodad
Copy link

Hello !

The code only documentation does not give a clear way on how to use this library, any chance to have a tutorial or a sample application that works straight away ?

I could not get anything to work due to missing configuration, it doesn't seem to have default configuration.

I installed to a custom location $HOME/local/ulib .

Cheers !

@stefanocasazza
Copy link
Owner

Hi,
there are many sample application in directory tests. For the application
server example there is a default configuration placed in your case at
$HOME/local/ulib/etc/ulib/userver.cfg if we have used
--prefix=$HOME/local/ulib with configure. For a tutorial I hope for same
help by someone as you for example because I have serious problem with
English language. I suggest to use --enable-debug with configure and
setting the environment var UTRACE (ex. ='0 10M') to write a file with name
trace.. which is a trace of the program. You can send
this file to me if you want some help with any problem...

Cheers !

2015-05-15 16:12 GMT+02:00 Domingo Alvarez Duarte notifications@github.com
:

Hello !

The code only documentation does not give a clear way on how to use this
library, any chance to have a tutorial or a sample application that works
straight away ?

I could not get anything to work due to missing configuration, it doesn't
seem to have default configuration.

I installed to a custom location $HOME/local/ulib .

Cheers !


Reply to this email directly or view it on GitHub
#6.

@mingodad
Copy link
Author

Hello Stefano !

Thanks for the fast reply !

I tried again with a config file with the paths reflecting my installation and it worked !

ULIB_HOME=$HOME/local/ulib
export PATH=$ULIB_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ULIB_HOME/lib:$LD_LIBRARY_PATH

bin/userver_tcp -c userver.cfg

One of the problems was that most directives accept a relative path but "PLUGIN_DIR" doesn't probably would be a good idea to specify this on the config file comments or check in code if the path provided is relative adjust it adding the executable/config/$PWD path.

Thanks !

@stefanocasazza
Copy link
Owner

Hi,
I am glad that it worked... "PLUGIN_DIR" it accept a relative path but it
must start with a '.' as you can see at source file:
ULib-1.4.2/src/ulib/net/server/server.cpp line 989

Cheers !

EDIT:
I changed the semantic, now "PLUGIN_DIR" consider a relativ path if not start with "/"...

2015-05-16 20:36 GMT+02:00 Domingo Alvarez Duarte notifications@github.com
:

Hello Stefano !

Thanks for the fast reply !

I tried again with a config file with the paths reflecting my installation
and it worked !

ULIB_HOME=$HOME/local/ulib
export PATH=$ULIB_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ULIB_HOME/lib:$LD_LIBRARY_PATH

bin/userver_tcp -c userver.cfg

One of the problems was that most directives accept a relative path but
"PLUGIN_DIR" doesn't probably would be a good idea to specify this on the
config file comments or check in code if the path provided is relative
adjust it adding the executable/config/$PWD path.

Thanks !


Reply to this email directly or view it on GitHub
#6 (comment).

@lgallindo
Copy link

@stefanocasazza What is your native language? If you write some tutorial, I might be able to translate it into English.

@stefanocasazza
Copy link
Owner

stefanocasazza commented Mar 23, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants