Problems compiling Binutils 2.17

Problems compiling Binutils 2.17

am 03.08.2008 08:20:28 von Phil C

I am making my first attempt at compiling linux from source. To do this I'm using the LFS book and the most current stable kernel (2.6.26). The setup process seems to go fine but when I try and compile binutils it fails.

I'm using the following command taken from LFS. The command is done from the ../binutils-build folder.


#>CC="gcc -B/usr/bin/" ../binutils-2.17/configure \ --prefix=/tools --disable-nls --disable-werror

After entering the command I get one of two errors. If I sudo the command I get

#>/sbin invalid command 'configure'

In lieu of using sudo I get

#>../binutils-2.17/configure is an invalid file or directory.

(Both responses are approximations I have no access to the terminal from
the computer I'm on as I'm at work and not using Linux here, but you get the gist
of it. Using sudo it interprets the command improperly and without sudo it's
looking for a directory that doesn't exsist. Sorry I can't provide an exact terminal
copy. This has been a continuing problem due mainly to my ISP screwing up my
connection and thus leaving me with no internet at the house.)

The binutils-2.17 files are being stored in both the home directory of the user
I'm conducting the build from as well as in it's own folder under home. Is this a
sytnax error or have I placed the source files in the wrong location?

Thanks

- Phil C





--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Problems compiling Binutils 2.17

am 03.08.2008 13:04:39 von Phil C

>It seems like the configure script is not working.
>Did you check whether it is executeable or not? ( chmod +x )

>Is it in the directory ../binutils-2.12/ ?
>Why are you installing a system wide libary with sudo and not as root user?
>Yeti

Ill have to check on the permissions. I'm installing with sudo because I use Ubuntu so there is no root login.

- Phil C





--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Problems compiling Binutils 2.17

am 04.08.2008 12:11:04 von Dave Haywood

Phil C wrote:

>> It seems like the configure script is not working.
>> Did you check whether it is executeable or not? ( chmod +x )
>>
>
>
>> Is it in the directory ../binutils-2.12/ ?
>> Why are you installing a system wide libary with sudo and not as root user?
>> Yeti
>>
>
> Ill have to check on the permissions. I'm installing with sudo because I use Ubuntu so there is no root login.
>
>
Couple of options I can think of on Ubuntu:

1) sudo su -

You now have a root shell to do the install


or:


2) add a "wheel" group to /etc/group and add your user id to it

in /etc/pam.d/su uncomment "auth sufficient pam_wheel.so trust"

You can now su without using sudo and without specifying any
password so long as you are a member of the wheel group


Dave.

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Problems compiling Binutils 2.17

am 12.08.2008 11:48:34 von Sverre Hamre

On Mon, Aug 4, 2008 at 12:11 PM, Dave Haywood wrote:
> Phil C wrote:
>
>>> It seems like the configure script is not working.
>>> Did you check whether it is executeable or not? ( chmod +x )
>>>
>>
>>
>>>
>>> Is it in the directory ../binutils-2.12/ ?
>>> Why are you installing a system wide libary with sudo and not as root
>>> user?
>>> Yeti
>>>
>>
>> Ill have to check on the permissions. I'm installing with sudo because I
>> use Ubuntu so there is no root login.
>>
>>
>
> Couple of options I can think of on Ubuntu:
>
> 1) sudo su -
>
> You now have a root shell to do the install
>
>
> or:
>
>
> 2) add a "wheel" group to /etc/group and add your user id to it
>
> in /etc/pam.d/su uncomment "auth sufficient pam_wheel.so trust"
>
> You can now su without using sudo and without specifying any
> password so long as you are a member of the wheel group
>

also on ubuntu sudo -i
then you are root user.

Sverre

>
> Dave.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs