perfsonar-dev - Re: [pS-dev] RPM creation - errors
Subject: perfsonar development work
List archive
- From: Guilherme Fernandes <>
- Cc: Perfsonar Development <>
- Subject: Re: [pS-dev] RPM creation - errors
- Date: Thu, 31 Jan 2008 12:24:59 -0200
Maciej Glowiak wrote:
Hi,Hi Maciej,
I am getting errors trying to run rpm_maker.pl script. I've read the guide document, but it doesn't help. Maybe I missed another document?I'll make the script check if the directories are already created before attempting to create them.
Running the script for the first time (having default properties already set up) I get:
====================================================================
mac@reed:/home/perfsonar$
perl rpm_maker.pl
-- perfSONAR web services RPM maker --
Enter service summary [XML Lookup Service]:
Enter service name [XML-LS]:
Enter service version [1.2]:
Enter service dependencies [perfsonar-tomcat >= 6.0.7 , perfsonar-exist >= 1.1.1]:
Enter service description [perfSONAR XML Lookup Service]:
Last entered message to user after installation:
Use that one (y/n) [n]?y
XML-LS-1.2/
error: File /usr/src/rpm/SOURCES/XML-LS-1.2.tar.gz: No such file or directory
====================================================================
Running it for the second time:
====================================================================
mac@reed:/home/perfsonar$
perl rpm_maker.pl
-- perfSONAR web services RPM maker --
Enter service summary [XML Lookup Service]:
Enter service name [XML-LS]:
Enter service version [1.2]:
Enter service dependencies [perfsonar-tomcat >= 6.0.7 , perfsonar-exist >= 1.1.1]:
Enter service description [perfSONAR XML Lookup Service]:
Last entered message to user after installation:
Use that one (y/n) [n]?y
mkdir: cannot create directory `rpm/BUILD': File exists
mkdir: cannot create directory `rpm/RPMS': File exists
mkdir: cannot create directory `rpm/SOURCES': File exists
mkdir: cannot create directory `rpm/SPECS': File exists
mkdir: cannot create directory `rpm/SRPMS': File exists
mkdir: cannot create directory `XML-LS-1.2': File exists
There was a problem creating the source file directory (which will have the webapps directory inside it).
Try doing it manually (mkdir XML-LS-1.2) and check what's wrong.
====================================================================
So, some questions:Do you have the webapps directory with a XML-LS-1.2 directory inside (containing a default installation of the service)?
1. What should I do before running rpm_maker.pl? Let's suppose I created /home/perfsonar and have got compiled and configured service (for instance: /home/mac/projects/perfsonar/trunk/geant2_java-xml-ls)
2. What else do I need? (sources? why the /usr/src/rpm/SOURCES/XML-LS-1.2.tar.gz is missing?)The above directory should have been suficient. It's strange that it's looking in /usr/src if you're running it from /home/perfsonar. The scripts does a chdir("rpm") before proceeding to the next steps, maybe this is changing to /usr/src/rpm somehow? Maybe you could give me limited access to the machine you're trying to install so I can check it?
3. Now, there is a requirement to have the /home/perfsonar directory in order to create RPM. What if I want to create RPM as non-root user using my own directory? Couldn't it be configurable?About the directory, it was decided that everything will be installed in the /home/perfsonar directory so that we don't have ask the users anything. The building process reflects basically the same things that will be done in the installation process, that's why you need to create the RPMs from that directory.
I don't think it's possible to build rpms using non-root users, but I'm not sure. If it's possible, I don't see any problems with it.
Best regards,
Guilherme
Best regards
Maciej
- RPM creation - errors, Maciej Glowiak, 01/31/2008
- Re: [pS-dev] RPM creation - errors, Cándido Rodríguez Montes, 01/31/2008
- Re: [pS-dev] RPM creation - errors, Frederic LOUI, 01/31/2008
- Re: [pS-dev] RPM creation - errors, Guilherme Fernandes, 01/31/2008
- Re: [pS-dev] RPM creation - errors, Frederic LOUI, 01/31/2008
- Re: [pS-dev] RPM creation - errors, Maciej Glowiak, 01/31/2008
- Re: [pS-dev] RPM creation - errors, Frederic LOUI, 01/31/2008
Archive powered by MHonArc 2.6.16.