Error File /root/rpmbuild/sources
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring no such file or directory rpmbuild developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _
Rpmbuild Topdir
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it rpmbuild buildroot only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How do you create RPM from .spec file? up vote 0 down rpm failed no such file or directory vote favorite 1 I'm attempting to create an RPM from a spec file that was provided here: http://sauron.jyu.fi/docs/manual/x191.html Having not used rpm much, I assume that I execute the command rpmbuild and point it at the spec file. rpmbuild sauron.spec error: File /root/rpmbuild/SOURCES/sauron-0.7.3.tar.gz: No such file or directory Since it appears that the rpmbulid utility expects files to be located in a certain location, I copy them there. tree ~/rpmbuild/ /root/rpmbuild/ ├── BUILD ├── BUILDROOT ├── RPMS ├── SOURCES │ └──
Rpmmacros
sauron-0.7.3.tar.gz ├── SPECS │ └── sauron.spec └── SRPMS I've tried executing the rpmbuild command from ~ , ~/rpmbuild/SPECS and other directories, yet I'm not able to create the RPM. There is no output or logging that would indicate what the problem might me. This should be a simple task, yet even with google, I'm not able to figure it out. Can anyone offer guidance on how to build this RPM? rpm share|improve this question edited Mar 9 at 2:16 asked May 22 '14 at 1:53 spuder 3,990133979 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted First, you really shouldn't do this as root, because badly made spec files can do bad things. But you've got it basically right. Then, pretty much all you are missing is that you need one of the -b build options — probably -ba (for "build all"... see the rpmbuild man page for more... it's explained pretty reasonably, I think). That will generate both binary and source RPMs. So: rpmbuild -ba sauron.spec should do it. share|improve this answer answered May 22 '14 at 2:01 mattdm 19k76091 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of ser
Common F23 Bugs Common F24 Bugs Communicate with rpmbuild example Fedora The Documents Bug Reports Fedora Update System (Bodhi) rpmbuild %setup Fedora Build System (Koji) Official Spins FedoraForum.org > Community Lounge > Programming
Install Rpmbuild
& Packaging rpmbuild -bb ./test.spec error: File test-2.3.0.tar.gz: No such file FedoraForum Search User Name Remember Me? Password Forgot Password? Join http://unix.stackexchange.com/questions/131441/how-do-you-create-rpm-from-spec-file Us! Register All Albums FAQ Today's Posts Search Programming & Packaging A place to discuss programming and packaging. Google™ Search FedoraForum Search Red Hat Bugzilla Search Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools http://forums.fedoraforum.org/showthread.php?t=175976 Search this Thread Display Modes #1 20th December 2007, 05:24 PM powah Offline Registered User Join Date: Mar 2005 Posts: 83 rpmbuild -bb ./test.spec error: File test-2.3.0.tar.gz: No such file $ rpmbuild -bb ./test.spec error: File /home/powah/rpmbuild/SOURCES/test-2.3.0.tar.gz: No such file or directory test.spec is as follows: %define sourced_version %(cat ../../../distribution/VERSION) Release: %(cat ../../../distribution/RELEASE) # Override target directory for binary rpms %define _rpmdir ../../../distribution/packages/linux %define _prefix /usr/local Summary: SNMP Agent Name: test Vendor: pwwong, Inc. #Version: %{libmaj}.%{libmin}.%{librel} Version: %{sourced_version} License: Commercial Group: Applications/Cryptography Source: %{name}-%{version}.tar.gz Packager: Pwwong Support support@pwwong-inc.com BuildRoot: /var/tmp/%{name}-%{version}-root AutoReqProv: no %description SNMP Agent %prep %setup %build %install %define RPM_BUILD_DIR /usr/src/redhat/BUILD/%{name}-%{version} mkdir -p $RPM_BUILD_ROOT/%{_prefix}/ mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/ mkdir -p $RPM_BUILD_ROOT/%{_prefix}/bin/ mkdir -p $RPM_BUILD_ROOT/%{_prefix}/sbin/ mkdir -p $RPM_BUILD_ROOT/%{_prefix}/share/test/ mkdir -p $RPM_BUILD_ROOT//var/net-test/ mkdir -p $RPM_BUILD_ROOT//etc/init.d/ install $RPM_BUILD_DIR/%{name}-%{sourced_version}/testtrap $RPM_BUILD_ROOT/%{_prefix}/bin/testtrap install $
RPM General support questions Post Reply Print view Search Advanced http://www.centos.org/forums/viewtopic.php?t=48842 search 5 posts • Page 1 of 1 DevonL http://serverfault.com/questions/152704/checkinstall-failed-with-root-rpmbuild-has-no-source-directory Posts: 2 Joined: 2014/10/07 14:13:26 Issues creating an RPM Quote Postby DevonL » 2014/10/07 14:17:41 So I had followed the tutorial at http://www.lamolabs.org/blog/164/centos-rpm-tutorial-1/ and got as far as building the RPM off of my spec file, I'll no such include the spec file and then error output I'm getting, any help/insight here would be fantastic.My spec file:Code: Select allSummary: JAMSAgentX RPM Install
Name: JAMSAgentX
Version: 1
Release: 1
Source0: JAMSAgentX-1.tar.gz
License: None
Group: MVP Systems Software
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot
%description
Installation package for the no such file JAMSAgentX Executable
%prep
%setup -q
%build
%install
install -m 0755 JAMSAgentX /usr/bin/
%clean
rm -rf $RPM_BUILD_ROOT
%post
echo " "
echo "Installation of JAMSAgentX Complete!"
%files
%dir /usr/bin/JAMSAgentX
Error output:Code: Select allExecuting(%prep): /bin/sh -e /var/tmp/rpm-tmp.OOd75o
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/BUILD
+ rm -rf JAMSAgentX-1
+ /bin/tar -xf -
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/JAMSAgentX-1.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd JAMSAgentX-1
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mPk7Gi
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd JAMSAgentX-1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EjAZkc
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/JAMSAgentX-1-1.x86_64 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/JAMSAgentX-1-1.x86_64
++ dirname /root/rpmbuild/BUILDROOT/JAMSAgentX-1-1.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir /root/rpmbuild/BUILDROOT/JAMSAgentX-1-1.x86
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Checkinstall failed with /root/rpmbuild has no source directory up vote 4 down vote favorite 3 I am trying to use checkinstall to build a package from source code. However, when i run checkinstall , it ask : /root/rpmbuild has no source directory, please write the path to the rpm source directory tree. i am running on fedora 12 and system was installed through kickstart via repository of dvd of fc12. I was not aware of the rpm source directory during the installation. so how can i check whether rpm source has been installed or not. if not, how to make the rpm source directory so that i can please the checkinstall and build the package successfully. or can i bypass it? thanks a lot linux checkinstall share|improve this question edited Oct 14 '12 at 19:51 Rob Moir 26.9k44578 asked Jun 19 '10 at 3:24 leo 2113 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote Install the rpmdevtools package: Name : rpmdevtools Arch : noarch Version : 7.5 Release : 1.el6 Size : 216 k Repo : installed From repo : base Summary : RPM Development Tools URL : https://fedorahosted.org/rpmdevtools/ License : GPLv2+ and GPLv2 Description: This package contains scripts and (X)Emacs support files to aid in : development of RPM packages. : rpmdev-setuptree Create RPM build tree within user's home directory : rpmdev-diff Diff contents of two archives : rpmdev-newspec Creates new .spec from template : rpmdev-rmdevelrpms Find (and optionally remove) "development" RPMs : rpmdev-checksig Check package signatures us