Sponsored Content
Top Forums Shell Programming and Scripting Linux From Scratch Permission Error when installing Binutils-2.27 Package Post 303001154 by LinuxPie42 on Thursday 27th of July 2017 10:45:51 PM
Old 07-27-2017
Linux Linux From Scratch Permission Error when installing Binutils-2.27 Package

Hello, I recently decided to create a Linux Operating System from Scratch using the Linux from Scratch Guide. Everything was going great until it was time to finish installing the package Binutils-2.27. Once I entered "make install" into the terminal, I get this error:

Code:
make[1]: Entering directory '/mnt/lfs/sources/binutils-2.27/build'
/bin/bash ../mkinstalldirs /tools /tools
mkdir -p -- /tools /tools
mkdir: cannot create directory '/tools': Permission denied
mkdir: cannot create directory '/tools': Permission denied
Makefile:2501: recipe for target 'installdirs' failed
make[1]: *** [installdirs] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build'
Makefile:2255: recipe for target 'install' failed
make: *** [install] Error 2

I have tried installing the package using various Linux Distributions, added the L.F.S. user to the sudoers file, and even tried replacing the packages; but none of it got passed this error. If you tried using this guide before and passed this error, please advise on what I should do to get rid of this error.
 

5 More Discussions You Might Find Interesting

1. Linux

Linux From Scratch

LFS (Linux From Scrath) it's tools for make own distribution. U know how create own distribution ?? thanks cYa (2 Replies)
Discussion started by: kezzol
2 Replies

2. UNIX for Dummies Questions & Answers

Setup a printer on Linux from scratch, everything to do

I am a beginner in Unix. I have redhat linux running in a dell work station. my question is how can I setup a printer using the command line so that I can use the command lp filename to print, how can I define the printer name? my printer is HP laserjet connected to network Edit/Delete Message (0 Replies)
Discussion started by: docaia
0 Replies

3. Red Hat

Setup a printer on Linux from scratch

I am a beginner in Unix. I have redhat linux running in a dell work station. my question is how can I setup a printer using the command line so that I can use the command lp filename to print, how can I define the printer name? my printer is HP laserjet connected to network (2 Replies)
Discussion started by: docaia
2 Replies

4. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

5. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies
DH_AUTO_INSTALL(1)                                                   Debhelper                                                  DH_AUTO_INSTALL(1)

NAME
dh_auto_install - automatically runs make install or similar SYNOPSIS
dh_auto_install [buildsystemoptions] [debhelperoptions] [--params] DESCRIPTION
dh_auto_install is a debhelper program that tries to automatically install built files. It does so by running the appropriate command for the build system it detects the package uses. For example, if there's a Makefile and it contains a install target, then this is done by running make (or MAKE, if the environment variable is set). If there is a setup.py or Build.PL, it is used. Note that the Ant build system does not support installation, so dh_auto_install will not install files built using Ant. Unless --destdir option is specified, the files are installed into debian/package/ if there is only one binary package. In the multiple binary package case, the files are instead installed into debian/tmp/, and should be moved from there to the appropriate package build directory using dh_install(1). DESTDIR is used to tell make where to install the files. If the Makefile was generated by MakeMaker from a Makefile.PL, it will automatically set PREFIX=/usr too, since such Makefiles need that. This is intended to work for about 90% of packages. If it doesn't work, or tries to use the wrong install target, you're encouraged to skip using dh_auto_install at all, and just run make install manually. OPTIONS
See "BUILD SYSTEM OPTIONS" in debhelper(7) for a list of common build system selection and control options. --destdir=directory Install files into the specified directory. If this option is not specified, destination directory is determined automatically as described in the "DESCRIPTION" section. -- params Pass params to the program that is run, after the parameters that dh_auto_install usually passes. SEE ALSO
debhelper(7) This program is a part of debhelper. AUTHOR
Joey Hess <joeyh@debian.org> 11.1.6ubuntu2 2018-05-10 DH_AUTO_INSTALL(1)
All times are GMT -4. The time now is 06:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy