Rather read to the end of the mail before doing anything violent.
Jaromír Talíř wrote:
Hello Mark,
thanks for you attempt. One of our developers has Gentoo on desktop and
Fred is running there very well. But it is always about dependencies and
maybe some checks are still missing. I will walk through your mail and
comment individual steps.
That will be great.
fred-manager is script that can be used to install
fred under local (non
system) user in one of his directories. This has a lot of advantages.
You can run many Fred installations concurrently, you can easily
uninstall it by just deleting and so on. We use this for unit tests, for
performance tests etc.
So for a production server - what does one do? - copy everything to "/" ???
Mark J Elkins píše v Po 02. 03. 2009 v 19:14 +0200:
I'm attempting to install FRED onto a Gentoo
box. I'm using fred-manager
to do the grunt work.
I've started with a reasonably minimal install box (no X, etc) and so
far - added:
emerge -uv omniORB boost libdaemon postgresql bind bind-tools doxygen
pyorbit tinyerp-server freefont-ttf
I'm installing 'fred' into "/home/fred' - as user 'fred'.
Near the top - I get:-
------------------------------------------------------------------------------------------------------
[much deleted]
Generating python stubs from IDL files
omniidl -Cbuild/stubs -bpython -Wbinline -Wbpackage=pyfred.idlstubs
/home/fred/root/share/idl/fred/FileManager.idl
/home/fred/root/share/idl/fred/Mailer.idl
/home/fred/root/share/idl/fred/TechCheck.idl
/home/fred/root/share/idl/fred/ZoneGenerator.idl
omniidl: Could not import back-end 'python'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was 'No module named python')
error: Return status of omniidl is 256
This is result of installation of fred-pyfred python component. Python
components of fred use omniORBpy (
http://omniorb.sourceforge.net/) corba
python mappings. We should check for this dependency. Gentoo package
name is 'omniorbpy' and you will have to install it.
Its a bug in Gentoo Package-management
..first I deleted omniORB
Then:-
# emerge omniorbpy -v
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] net-misc/omniORB-4.0.5 USE="ssl" 0 kB
[ebuild N ] dev-python/omniorbpy-2.5 USE="ssl" 0 kB
...
then.. (at the end of installing omniorbpy-2.5)
* Detected file collision(s):
*
* /usr/lib/python2.5/site-packages/omniidl_be/__init__.pyc
* /usr/lib/python2.5/site-packages/omniidl_be/__init__.py
* net-misc/omniORB-4.0.5
* /usr/lib/python2.5/site-packages/omniidl_be/__init__.py
* /usr/lib/python2.5/site-packages/omniidl_be/__init__.pyc
*
* Package 'dev-python/omniorbpy-2.5' NOT merged due to file collisions.
ie - both packages are trying to own the same file - and Gentoo does not
like that.
Contents of one of the files is:
#
# Empty file to convince Python that this is a module.
#
netwisdom seems to be to delete the file - then (re)install omniorbpy-2.5.
The bug was fixed - but is back again - so this needs to be noted to
watch out for in Gentoo installs.
After this - I recompiled from scratch.
Results are towards the end of the email.
/home/fred/download/src/fred-doc2pdf-2.0.0/setup.cfg.template has been
copied to setup.cfg.
Updating setup configuration file (setup.cfg).
running install
ImportError: No module named trml2pdf
ImportError: No module named rml2pdf
ImportError: No module named trml2pdf
Module rml2pdf was found.
Looking for folders 'freefont', 'truetype', 'freefont-ttf'...
Found 1 folder(s).
Found 12 fonts in folder '/usr/share/fonts/freefont-ttf'.
Found font family 'FreeSans.ttf'
Configuration file fred-doc2pdf.conf has been updated
------------------------------------------------------------------------------------------------------
Has anyone installed FRED on Gentoo?
What am I still missing?
Python is installed - version 2.5.2
Is this error a problem? - I'm worried about "No module named python"
Commented above.
and now fine.
----------------
then...
At the end of my output - I get:-
-------------------------------------------------------------------------------------------------------------------------------
/usr/bin/install -c -m 644 'doc/html/tab_b.gif'
'/home/fred/root/share/doc/fred-mod-eppd/tab_b.gif'
/usr/bin/install -c -m 644 'doc/html/tab_l.gif'
'/home/fred/root/share/doc/fred-mod-eppd/tab_l.gif'
/usr/bin/install -c -m 644 'doc/html/tab_r.gif'
'/home/fred/root/share/doc/fred-mod-eppd/tab_r.gif'
/usr/bin/install -c -m 644 'doc/html/tabs.css'
'/home/fred/root/share/doc/fred-mod-eppd/tabs.css'
make[2]: Leaving directory `/home/fred/build/fred-mod-eppd'
make[1]: Leaving directory `/home/fred/build/fred-mod-eppd'
/home/fred/download/src/fred-webadmin-3.1.1/setup.cfg.template has been
copied to setup.cfg.
Updating setup configuration file (setup.cfg).
running install
ImportError: No module named simplejson
fred-webadmin needs simplejson module.
Checking dependencies.
-------------------------------------------------------------------------------------------------------------------------------
Again - is this the natural end of the compilation?
What is the "simplejson" module?
** Just found an installable package by that name **
This is just one of our dependencies. We use simplejson as template
engine for web whois design. The good is that at least installation
stops here. You have to install this package and run installation again.
Trying to start everything - I get:-
$ ./fred-manager start
ERROR: Starting PostgreSQL
This is strange. Maybe something useful can be found
in /home/fred/root/nofred/pg.log.
SUCCESS: Starting omniNames...
SUCCESS: Starting FRED central registry CORBA servers...
ERROR: Starting Apache...
./fred-manager: line 716:
/home/fred/root/etc/init.d/fred-webadmin-server: No such file or directory
./fred-manager: line 11: /home/fred/root/etc/init.d/local_named: No such
file or directory
ERROR: Starting local named
This looks like installation didn't finish. 'start' command expects that
all parts were installed on proper places.
I'd agree. I've decided to keep trying to "install" until
there are no
obvious errors.
I'll worry about 'start' later.
cannot
chdir(/var/spool/cron), bailing out.
/var/spool/cron: Permission denied
cannot chdir(/var/spool/cron), bailing out.
/var/spool/cron: Permission denied
cannot chdir(/var/spool/cron), bailing out.
/var/spool/cron: Permission denied
My concerns here are - why would I even expect a non-root user to be
able to start PostgreSQL?? - (which was already running)
I mentioned this at the beginning. Reason is embedding Fred environment
to some scope and it includes running postgresql and apache as local
user. Of course you can install Fred components directly (make
install/python setup.py install) as system wide, but that is not the
case for fred-manager.
Regarding 'cron' - on Gentoo - mortal users can not cd into
/var/spool/cron
$ ls -l /var/spool/
total 16
drwxr-x--- 4 root cron 4096 May 26 2008 cron
drwx--x--- 3 root lp 4096 Mar 2 17:47 cups
drwxr-x--- 6 mail mail 4096 Feb 2 20:05 exim
lrwxrwxrwx 1 root root 10 Feb 2 18:38 mail -> /home/mail
drwxrwxr-x 2 root mail 4096 May 26 2008 mail.dist
fred@fred ~ $ cd /var/spool/cron
-su: cd: /var/spool/cron: Permission denied
They can have a crontab though - if "/etc/cron.allow" has your name
and/or "/etc/cron.deny" does not (from the man page of crontab)
Thats using Paul Vixie's cron system.
There seems to
be an ugly mix between 'system' jobs and 'user' jobs?
The same goes for Apache - only system users (or root) should be able to
start (and stop) system processes.
Same for the contents of /var/spool/cron.
Should I actually copy all of "home/fred/root" to my machines "/"
???
No, all what fred-manager does should be able to run as non-root user.
At the and of installation there is function f_name_add_cron() that adds
regular domain generation to cron of local user. Maybe that cron system
on your linux is configured in the way that prohibit users to install
their cron processes and this is result.
lastly - the suggestion of just adding four
packages (as well as generic
tools) does seem misleading.
I don't understand this - which four packages you mean?
I quote from the 'howto'
FRED is designed to run Linux (and was tested on Linux only), but will
probably run on any Unix operating system which meets the requirements.
FRED requires following additional software to be installed:
* Apache <http://httpd.apache.org> Apache web server 2.x
* PostgreSQL <http://www.postgresql.org> database version 8.x
* OmniORB <http://omniorb.sourceforge.net/> CORBA server version 4.0
or better
* Boost <http://www.boost.org/> C++ libraries version 1.20 or better
* libdaemon <http://0pointer.de/lennart/projects/libdaemon/>
libdaemon library
Opps - 5 packages - not 4.
You do have a "
* ... " as well - but that could be anything!
Now the 'install' ends with:-
-----------------------------------
Updating setup configuration file (setup.cfg).
running install
ImportError: No module named omniORB
fred-webadmin needs omniORB module.
Checking dependencies.
... and I'm pretty sure omniORB 4.0.5 is installed.
Python has omniORB module in python language mappings - omniorbpy, the
same as for pyfred.
Hope, that this will help
I'm looking forward your report.
Regards,
Jaromir
The 'compile' now ends with:-
Updating setup configuration file (setup.cfg).
running install
ImportError: No module named dns
fred-webadmin needs dnspython module.
Checking dependencies.
- so ran "emerge dnspython"
that ended with:-
running install
ImportError: No module named cherrypy
fred-webadmin needs cherrypy version 3.x module.
Checking dependencies.
...so ran "emerge cherrypy"
Install said:-
ImportError: No module named simpletal
Had to add "dev-python/simpletal ~x86" to /etc/portage/package.keywords
then "emerge simpletal"
Ran install...
"zip" not found - so ran "emerge zip unzip"
Ran install...
All done!
Need mod_python module. Exiting!
so ran "emerge mod_python"
Ran install again and this time - ended with:-
All done!
cat: /home/fred/local_named.template: No such file or directory
I think we are getting closer.
So what should "local_named.template" contain?
I'll write you a help file for Gentoo after this is over. :-)
------------------------------------------------------------------------
_______________________________________________
Fred-users mailing list
Fred-users(a)lists.nic.cz
https://lists.nic.cz/mailman/listinfo/fred-users
--
. . ___. .__ Posix Systems - Sth Africa
/| /| / /__ mje(a)posix.co.za - Mark J Elkins, SCO ACE, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS Tel: +27 12 807 0590 Cell: +27 82 601 0496