You are not logged in.
Pages: 1
Topic closed
Hi there, I've searched all over and tried a few suggestions already. Will copy some history below and a few details of what I have already tried.
So basically I am learning how to extract and install tar files from source.
The tutorial has led me to this point and now I am getting the above error.
I have reinstalled gcc, and base devel, but the problem persists.
Am I missing something obvious?
TIA
Here is a brief history of my command line:
[hat-tip@archlinux units-1.74]$ less README
[hat-tip@archlinux units-1.74]$ mkdir ~/units174
[hat-tip@archlinux units-1.74]$ ./configure --prefix=$HOME/units174
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
[hat-tip@archlinux units-1.74]$ echo $HOME
/home/hat-tip
[hat-tip@archlinux units-1.74]$ ./configure --prefix=$HOME/units174
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
[hat-tip@archlinux units-1.74]$ ./configure --prefix=$HOME/hat-tip/units174
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
Last edited by hat-tip (2024-10-24 12:16:11)
Offline
OK after a reboot, I am trying again and now it just says No such file or directory exists.
I've tried using different variables of $HOME as noted in the tutorial but I am definitely missing something.
I have tried:
./configure --prefix=$/hat-tip@archlinux/units174
./configure --prefix=$HOME/units174
./configure --prefix=$HOME/hat-tip/units174
./configure --prefix=$HOME/units174
P.S the directory does exist as i repeated that step and got the result:
[hat-tip@archlinux ~]$ mkdir ~/units174
mkdir: cannot create directory ‘/home/hat-tip/units174’: File exists
Last edited by hat-tip (2024-10-24 05:57:51)
Offline
OK after a reboot, I am trying again and now it just says No such file or directory exists.
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
What says what exactly doesn't exist?
gcc --version
type -a gcc
Offline
The file that is in my question above "units174"
[hat-tip@archlinux ~]$ ./configure --prefix=$HOME/units174
bash: ./configure: No such file or directory
[hat-tip@archlinux ~]$ ./configure --prefix=$HOME/units174
bash: ./configure: No such file or directory
[hat-tip@archlinux ~]$ mkdir ~/units174
mkdir: cannot create directory ‘/home/hat-tip/units174’: File exists
[hat-tip@archlinux ~]$ ./configure --prefix=$HOME/units174
bash: ./configure: No such file or directory
[hat-tip@archlinux ~]$ ./configure --prefix=$HOME/hat-tip/units174
bash: ./configure: No such file or directory
[hat-tip@archlinux ~]$ ./configure --prefix=$HOME/units174
bash: ./configure: No such file or directory
[hat-tip@archlinux ~]$ echo $home
[hat-tip@archlinux ~]$ ./configure --prefix=$/hat-tip@archlinux/units174
bash: ./configure: No such file or directory
[hat-tip@archlinux ~]$ sudo fdisk -l /dev/sda
[sudo] password for hat-tip:
fdisk: cannot open /dev/sda: No such file or directory
Offline
[hat-tip@archlinux ~]$ gcc --version
gcc (GCC) 14.2.1 20240910
[hat-tip@archlinux ~]$ type -a gcc
gcc is /usr/bin/gcc
Offline
lfs has a simple test for gcc:
echo 'int main(){}' | gcc -
shoukd produce a file called "a.out" - or otherwise will throw an error why gcc doesn't work
Offline
thanks - iĺl give it a shot.
Iḿ thinking of doing a complete re-install actually anyway as I used the arch install to install this version and i feel i missed out a lot of the learning steps along the way. I do think i needed a slightly simpler approach for a while though as it gave me time to learn most of the very basic staple commands. I have dyslexia and have to learn everything 3 times for it to stick. Despite this I am still very inspired and excited about this new learning journey that i am on. Itś fascinating.
I'll mark this as resolved to avoid wasting anyone's time.
I spent the day today printing the manual and other useful docs from the wiki... Thanks for your time cryptearth.
Offline
[hat-tip@archlinux ~]$ ./configure --prefix=$HOME/units174
bash: ./configure: No such file or directory
./configure does not exist or isn't executable
stat ./configure
./configure --prefix=$/hat-tip@archlinux/units174
That's complete nonsense, please don't enter random stuff into the shell, no matter how frustrated you may be. It's an awesome way to get more frustrated … or panicing.
Offline
Everything but the very first error in this thread are simply due to you not even being in the proper directory to run configure. Quite frankly, given this mistake and the ongoing flailing that ensued, I'd strong advise against trying such things again until you understand some fundamentals of how linux and a command shell work (including understanding how directories and relative paths work).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Actually i get the same error when i am in the correct directory.
Anyway, I put this post as closed.
So unless you have anything specific to say regarding this specific error i.e. from experience: "C compiler cannot create executables." please refrain from commenting on this thread.
As for entering random things into the terminal, nothing I entered was random, and I am not ¨panicking" at all. I was simply trying to enter different variables of what might be the correct format of my home directory as per the instructions here to enter echo $HOME
: https://hpc.ncsu.edu/Documents/unixtut/unix7.html
Many thanks.
Offline
from experience: "C compiler cannot create executables.
[hat-tip@archlinux units-1.74]$ ./configure --prefix=$HOME/units174
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
Your gcc installation is or was broken.
Whether or not that is still the case is unknown, because the following "errors" are completely unrelated.
There's simply no "configure" file in the location where you're running that command.
nothing I entered was random
Then, how exactly, did you, totally unrandomly, end up with insane bullshit like
./configure --prefix=$/hat-tip@archlinux/units174
That pattern is completely not in https://hpc.ncsu.edu/Documents/unixtut/unix7.html and also not the problem here at all - you're throwing random, made up nonsense into the shell.
That's a recipe for disaster.
Actually i get the same error when i am in the correct directory.
Really?
pwd
ls -la
./configure --prefix=$HOME/units174
Offline
Thanks for reading my response. I will now delete this post as this is just wasting everybody's time.
Thank you.
Offline
Ah well it seems it is not possible to delete posts.
Yes, really. If you read the command lines that I copied in the original post it is there. I was not cd´d into the correct directory I did proceed to cd in to the correct directory and got the same result.
As I have said previously I am no longer seeking any help on this post.
Offline
Closing by implied request... Note that people here don't seek you ill will, but you seem to have a few fundamental misunderstandings of how a shell works and you're strongly advised to learn more about these concepts before jumping into the deep end.
Offline
Pages: 1
Topic closed