Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6054151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:07:15+00:00 2026-05-23T08:07:15+00:00

The file ldm.spec contains the line Source: /web/ftp/pub/ldm/%{name}-%{version}.tar.gz in its first section. %{name} and

  • 0

The file ldm.spec contains the line

Source:         /web/ftp/pub/ldm/%{name}-%{version}.tar.gz

in its first section. %{name} and %{version} are set correctly. The given file does exist.

The command rpmbuild --nobuild ldm.spec error-exits with the message

error: File /home/steve/rpmbuild/SOURCES/ldm-6.9.8.tar.gz: No such file or directory

What must be done to get this to work?

Additional information:

$ uname -a
Linux gilda.unidata.ucar.edu 2.6.27.41-170.2.117.fc10.x86_64 #1 SMP Thu Dec 10 10:36:29 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
$ rpmbuild --version
RPM version 4.6.1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:07:16+00:00Added an answer on May 23, 2026 at 8:07 am

    By default, rpmbuild expects the basename() of the source file to exist in the %_topdir/SOURCES directory, regardless of where it otherwise states. In spec files you’ll often see a URL (wget.spec):

    Source: ftp://ftp.gnu.org/gnu/wget/wget-%{version}.tar.bz2
    

    It doesn’t fetch it at build time, even if it was on your own filesystem. The “No such file or directory” error comes from the %setup macro looking for the file in the default location, and not seeing it.

    The solution is to copy (or make a symlink) of the file to your rpmbuild/SOURCES directory.

    If you, for whatever reason, don’t want to have to copy that file to your user’s SOURCES directory, you can use the the -T option to the %setup mecro, it tells it to “Not Perform Default Archive Unpacking”:

    %setup -T
    

    You’ll have to unpack the archive yourself in the %prep section, if you choose to go this route.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

FILE: I'm working with a refined csv version of a searchlog file which contains
file.each_line do |line| #skip the first one/not a user 3.times { next } if
File main.py, line 52, in <module> r2n(name) File C:\Users\Riki\Documents\Universita\Erasmus\Personalization and Metadata modeling 02817\Final Project\friends_followers__redis_to_networkx.py,
file.txt contains: ##w## ##wew## using mac 10.6, bash shell, the command: cat file.txt |
File.open(path, 'r').each do |line| row = line.chomp.split('\t') puts #{row[0]} end path is the path
File C:\Users\Tom\Desktop\Tetris!\tetris.py, line 206, in typeSet Globals.blockArray[i].x.append(7) IndexError: list index out of range I
File F:\ake\pa\th\help.py, line 268, in main print type(outputs[x]) KeyError: '0' My file is quite
file location is: yiiroot/framework/widjets/assets/gridview/jquery.yiigridview.js I need to change one line in this file so
File /usr/local/lib/python2.5/site-packages/libxml2.py, line 1, in <module> import libxml2mod ImportError: /usr/local/lib/python2.5/site-packages/libxml2mod.so: undefined symbol:xmlTextReaderSetup >>> import
File /srv/xxxx/venv/lib/python2.6/site-packages/django/core/files/storage.py, line 193, in delete os.remove(name) OSError: [Errno 13] Permission denied: '/srv/notxxxelinq/app/xxx/site_media/xx/xxx/20101217T194905.document.pdf' I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.