Linux From Scratch Permission Error when installing Binutils-2.27 Package


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Linux From Scratch Permission Error when installing Binutils-2.27 Package
# 1  
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.
# 2  
Old 07-28-2017
Can you tell us where the "Linux from Scratch Guide" is. It's a bit vague for us to guess what's wrong having not seen anything of what you have done other than the issue make install

Can I presume it is not something obvious like you are not running the command as the super-user account, usually root? The problem we have is that you have a single symptom but not really any context.



Thanks, in advance,
Robin
# 3  
Old 07-28-2017
Some questions first:

Which version of the LFS documentation are you following? V7.1 ?

Which guest Linux version are you using to compile your tool chain?

Which version of Cross GCC did you compile?

Is it Binutils Pass 1 or Pass 2 that fails?

Do note that some guest Linux distribution versions lack some essential utilities for a LFS build (e.g. Debian (Squeeze) doesn't install bison and gawk by default).

Are you building a kernel with specific features?

(To answer your question, yes, I have done this whole thing to create specific kernels for cloud use.)
This User Gave Thanks to hicksd8 For This Post:
# 4  
Old 08-04-2017
In answer to your question hicksd8, these are the respective versions for each of your questions:

version of LFS: 8.0

Guest Linux Version: 4.10.0 (on Kubuntu 17.04)

Cross GCC version: 6.3.0

Binutils Step: Pass 1


As for what my purpose is for the Operating System, I was originally planning for it to be an O.S. used by Chemists and other Scientists.
# 5  
Old 08-05-2017
So are you planning to build a special kernel for these users?

Okay, so based on your answers I guess that you are following the book step-by-step. If that is so, then your permissions issue is most likely that (1) you are logged in as user lfs, (2) your root filesystem right now is the Kubuntu boot volume, (3) you are build on a directory named 'lfs' or a separately mounted filesystem under mountpoint 'lfs'.

Don't take the book literally (I'm afraid that is so). If you are logged in as user lfs you will not have permission to create a directory '/tools'. You should be creating '/lfs/tools' and you need to either give that directory on the command line or use a $PATH variable (which is the same thing).

The 'tools' directory should be created in your build area. That is why you have a permissions error.

---------- Post updated 05-08-17 at 04:17 PM ---------- Previous update was 04-08-17 at 07:25 PM ----------

If your target users are chemists and other scientists have you looked at Scientific Linux?

Scientific Linux

Do you need a kernel to behave differently (eg, bespoke security behaviour or fitting of a back door)? That's why we build our own kernels. If it's just scientific functionality that you want, you may be able to avoid having to build your own.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. 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

2. 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

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 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

5. 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
Login or Register to Ask a Question