Re: [rrd-users] RRDTools Server and Installing RRDTools in a shared hosting environment

2010-01-09 Thread AllSort ofQuestions
OK I can say it is working under RH EL5.
What I did was to manually unpack the RPM and to copy the files in a 
subdirectory where I have full access
The next step was to use the perl directive "use lib" to point the perl script 
to that path. It worked with 
perl-rrdtool-1.0.50-3.el5.rf.i386.rpm 

Next I tried higher versions because I need the "--no-border" and some other 
things which seem to be available 
only in later versions (haven't checked the linux version but the windows 
version I am using rejects the -no-border
switch)
I have tried -no-border on Ubuntu and it is not working in version 1.30.

Anyway, no matter what which version I try between 1.2.30 and 1.3.9 (RPMs) I am 
receiving the same message which is

Can't load
'/home/username/html/Others/rrdtools/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.so'
for module RRDs: librrd.so.2: cannot open shared object file: No such file or
directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line
230.
 at script.pl line 3
Compilation failed in require at script.pl line 3.

Can anybody tell me what makes the 1.0.5 works and what makes all the other 
higher version fail?

I also tried to install the binaries, I am OK if I can create script that I can 
put in crontab and generate the images with rrdtool 1.3.9 while I am updating 
the database with 1.050. Would this work?
The binary distribution seems to have some problems with loading the libraries. 
Does anybody know how to load the libraries if the are not installer in 
/usr/lib or /usr/local/lib ?

I also tried /lib/ld-linux.so.2 --library-path PATH EXECUTABLE

This somehow change something but I don't know enough about Unix to say what 
exactly changed. Please see below

[u...@p3nlh047 bin]$ ./rrdtool
./rrdtool: error while loading shared libraries: librrd.so.4: cannot open 
shared object file: No such file or directory

and

[u...@p3nlh047 bin]$ /lib/ld-linux.so.2 --library-path . rrdtools
rrdtools: error while loading shared libraries: rrdtools: cannot open shared 
object file
[cris...@p3nlh047 bin]$


Thank you
PF





From: Simon Hobson 
To: rrd-users@lists.oetiker.ch
Sent: Sat, January 9, 2010 12:27:37 PM
Subject: Re: [rrd-users] RRDTools Server and Installing RRDTools in a shared 
hosting environment

AllSort ofQuestions wrote:

>I have two questions somehow related to each other. I asking these 
>questions because apparently I can't run rrdtools in a shared hosted 
>envirionmnet. (Linux-REd Hat @Godaddy www.godaddy.com)
>From what I could see they have perl available for their clients but 
>only a limited set of modules, probably the most popular ones, are 
>installed and you can not install your own.

You are unlikely to be able to run any software not already 
supported. On a typical shared web hosting service, the server hosts 
multiple sites all using a common set of software. Whilst I believe 
it should be technically possible to install your own binaries in 
your own storage space, in practice I would expect most shared 
hosting providers to prohibit this (either in their ToS or by 
technical restrictions - typically the server would be configured to 
not execute binaries outside of certain system wide shared 
directories) and this would impact on their more expensive services 
they'd rather you buy if you want to do this.

In my limited experience, the larger the hosting company, the less 
likely they are to be able to accommodate you - with only smaller 
companies with manually (or semi manually) managed servers having the 
capability.

Have you tried asking GoDaddy if they have a server with RRD Tools 
installed that they could move your site to ?

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr..com/gift/___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] RRDTools Server and Installing RRDTools in a shared hosting environment

2010-01-09 Thread AllSort ofQuestions
HA!

I just read this: http://www.devdaily.com/perl/edu/articles/pl010015/

If you don't have root access ...
If you don't have access to the root password on your Unix server, or you're 
not allowed to add Perl modules to the Perl installation directories, what can 
you do? (Note: This problem usually arises when you're renting web space on 
somebody else's web server, and they don't have the module installed that you 
need -- a fairly common occurrence.)
In cases like this, the thing to do is to install the Perl module yourself into 
a directory where you do have write permission. For instance, if my name is 
George, and my HOME directory is /home/george, I might install my Perl modules 
into a directory named /home/george/modules. If you follow the installation 
instructions for Perl modules, this is very easy to do.
Assuming that goes okay and you now have the module installed in 
/home/george/modules, how do you get your Perl/CGI programs to find the module? 
Fortunately, that too is easy. All you have to do is modify your Perl/CGI 
program slightly to tell the program where else it should look for modules.
Assuming that goes okay and you now have the module installed in 
/home/george/modules, how do you get your Perl/CGI programs to find the module? 
Fortunately, that too is easy. All you have to do is modify your Perl/CGI 
program slightly to tell the program where else it should look for modules.
For instance, if the people that host my web site didn't have the CGI.pm module 
available, I'd install it in /home/george/modules. Then I'd modify my Perl/CGI 
program to find the module by adding this line near the top of my Perl programs:
use lib '/home/george/modules';
This simple line of code tells your Perl program to add this directory to it's 
@INC search directory. @INC contains the list of directories Perl searches when 
looking for modules. The use lib command is the easiest way I know to modify 
@INC.
Once you've made this change, you can use your normal "use" or "require" 
statements later in your program (just like you normally would).
A simple demo program
Listing 1 contains a small demo program you can use to test this process. When 
you run this program from the Unix command line, it (1) uses the use lib 
/home/george/modules statement to modify @INC, and then (2) prints the value of 
@INC to standard output. (Note: Don't try to run this program by accessing it 
from a web browser, because it won't work as written.)
#!/usr/bin/perl
use lib "/home/george/modules";
print "\...@inc is @INC\n";
Listing 1 (above): This simple demo program shows an easy way to modify Perl's 
@INC variable. This lets you add your custom directories to Perl's search path, 
allowing you to use Perl modules that aren't installed in "default" locations.
Conclusion
If you don't have access to the root account on your web server, or you're not 
allowed to install Perl modules into the standard directories -- fear not -- 
you can still install Perl modules into other directories, and then access them 
from your programs. Just use the use lib statement to add your search directory 
to Perl's search path, and your problems will be solved!




____________
From: Simon Hobson 
To: rrd-users@lists.oetiker.ch
Sent: Sat, January 9, 2010 12:27:37 PM
Subject: Re: [rrd-users] RRDTools Server and Installing RRDTools in a shared 
hosting environment

AllSort ofQuestions wrote:

>I have two questions somehow related to each other. I asking these 
>questions because apparently I can't run rrdtools in a shared hosted 
>envirionmnet. (Linux-REd Hat @Godaddy www.godaddy.com)
>From what I could see they have perl available for their clients but 
>only a limited set of modules, probably the most popular ones, are 
>installed and you can not install your own.

You are unlikely to be able to run any software not already 
supported. On a typical shared web hosting service, the server hosts 
multiple sites all using a common set of software. Whilst I believe 
it should be technically possible to install your own binaries in 
your own storage space, in practice I would expect most shared 
hosting providers to prohibit this (either in their ToS or by 
technical restrictions - typically the server would be configured to 
not execute binaries outside of certain system wide shared 
directories) and this would impact on their more expensive services 
they'd rather you buy if you want to do this.

In my limited experience, the larger the hosting company, the less 
likely they are to be able to accommodate you - with only smaller 
companies with manually (or semi manually) managed servers having the 
capability.

Have you tried asking GoDaddy if they have a server with RRD Tools 
installed that they could move your site to ?

-- 
Simon Hobson

Visi

Re: [rrd-users] RRDTools Server and Installing RRDTools in a shared hosting environment

2010-01-09 Thread Simon Hobson
AllSort ofQuestions wrote:

>I have two questions somehow related to each other. I asking these 
>questions because apparently I can't run rrdtools in a shared hosted 
>envirionmnet. (Linux-REd Hat @Godaddy www.godaddy.com)
>From what I could see they have perl available for their clients but 
>only a limited set of modules, probably the most popular ones, are 
>installed and you can not install your own.

You are unlikely to be able to run any software not already 
supported. On a typical shared web hosting service, the server hosts 
multiple sites all using a common set of software. Whilst I believe 
it should be technically possible to install your own binaries in 
your own storage space, in practice I would expect most shared 
hosting providers to prohibit this (either in their ToS or by 
technical restrictions - typically the server would be configured to 
not execute binaries outside of certain system wide shared 
directories) and this would impact on their more expensive services 
they'd rather you buy if you want to do this.

In my limited experience, the larger the hosting company, the less 
likely they are to be able to accommodate you - with only smaller 
companies with manually (or semi manually) managed servers having the 
capability.

Have you tried asking GoDaddy if they have a server with RRD Tools 
installed that they could move your site to ?

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users