I have my program saved as prog.c  how do I compile it and run it?
121267
./configure checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for ghc... no configure: error: GHC is required unless bootstrapping from .hc files. 256   I want to install Glasgow Haskell Compiler, and ./configure asks for GHC. What kind of GHC is it asking for? Global Hadron Collider? I downloaded the source from
16043
I've been having a problem with compiling.   I used the following test C code below and saved it as test.c in Home folder.  #include &lt;stdio.h&gt; int main() {   printf("Bruh!");   return 0; }   When I run in terminal the code   gcc test.c -o test   I get  nothing.  Thank you
46250
Is there a way I can do what stated in the title from the terminal commands, or will I have to look into the codes?
36363
Session transcript: &gt; type lookma.c int main() {   printf(&quot;%s&quot;, &quot;no stdio.h&quot;); }  &gt; cl lookma.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 Copyright (C) Microsoft Corporation.  All rights reserved.  lookma.c Microsoft (R) Incremental Linker Version 8.00.50727.762 Copyright (C) Microsoft Corporation.  All rights reserved.  /out:lookma.exe lookma.obj  &gt; lookma no stdio.h
42860
I need to compile all of the C files in a directory into seperate outputs... see example gcc -Wall program1.c -o program1.out  How do I do this?
76646
How do I mark a file as executable using a graphical interface (GUI)?
22283
Before I add more detail to my question, I have to say something very important: Yes, my script has &quot;Allow executing file as program&quot; turned on. The question itself: For programming reasons (shared libraries), I can't execute my program just from the executable, because I need to access LD_LIBRARY_PATH before executing the program. I created this script to do this (baring in mind this is my first time ever writing a script): #!/bin/bash #Get the current directory and append the SO's location currentDir=$(pwd)'/libs/'  #Change the library path export LD_LIBRARY_PATH=$currentDir  #Run the program ./program  After running this from the terminal I thought that it has worked, there were no errors and the program didn't complain about shared libraries. But unfortunately, if I try to double-click the .sh file from Nautilus, nothing happens. The worst part as well, is that since I'm running it from the GUI, I have no idea what error it is getting. I'm running Ubuntu 14.04 and the executable is a C++ program using the SFML libraries (Yes I could just have the dependencies, but SFML isn't commonly installed on Linux computers, and this is besides the point).
25720
i need to learn to do it just using the commands in the terminal. any help would really help thanks
73573
How can I create an empty file from the command line?
24279
I want to make an alias in my .bashrc or .bashrc_aliases file (probably the latter).  Specifically, I want to call the clang command for my *.c file I'm writing. What I'm looking for is best summed up if I provide an example:  I have program1.c written I want to be able to type (in the terminal) compile program1, and something like the following should be actually run:  clang -ggdb -std=c99 -Wall -Werror   program1.c -lcrypt -lcs50 -lm -o program1   For those who have taken Harvard's CS50 class, you will recognize this as their make command. So if the above is impossible, and you know another way to make this happen, I'm all ears. I'm trying to avoid using their VM, as my netbook isn't really up to par to handle a VM.
97527
I have a directory with many compiled C programs that I would like to back up. Right now they are named program.out but I would like to change this to just program.  Would it still be possible to exclude these? Also, what sort of regex would I use to quickly rename them all?
5593
I get this error:  Can't locate Foo.pm in @INC  Is there an easier way to install it than downloading, untarring, making, etc?
77038
There is an executable I want to install on a computer that I can't recompile that wasn't built as a package, and I want to download the libraries it requires to run them.  Below is part of the output from running ldd on it  libpango-1.0.so.0 =&gt; /usr/lib/i386-linux-gnu/libpango-1.0.so.0 (0xb702f000) libcairo.so.2 =&gt; /usr/lib/i386-linux-gnu/libcairo.so.2 (0xb6f64000) libatk-1.0.so.0 =&gt; /usr/lib/i386-linux-gnu/libatk-1.0.so.0 (0xb6f43000) libsqlite3.so.0 =&gt; /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xb6e9e000) libc.so.6 =&gt; /lib/i386-linux-gnu/libc.so.6 (0xb6cf4000) /lib/ld-linux.so.2 (0xb786e000) libxcb.so.1 =&gt; /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb6cd3000) libgio-2.0.so.0 =&gt; /usr/lib/i386-linux-gnu/libgio-2.0.so.0 (0xb6b7c000) libm.so.6 =&gt; /lib/i386-linux-gnu/libm.so.6 (0xb6b4f000)   Is there a tool that can use this information to select which packages should be downloaded or better yet extract only the libraries listed and their dependencies, in order to minimize the disk usage? The system is running on a headless VM and the program will be displayed via VNC.  Although I suspect that a full blown graphics desktop will supply most of the libraries needed I want to download only the required libraries, their dependencies and just enough of the X Windows package to support it.
2170
what would be a command to run in different distros?
107892
I was using a Makefile from the book " (2001)". It was strange for me to see that GNU make does compile the code correctly, without even specifying a compiler in the Makefile. It's like baking without any recipe!  This is a minimal version of the code:  test.c  int main(){}   Makefile  all:            test   and make really works! This is the command it executes:  cc     test.c   -o test   I couldn't find anything useful in the documentation. How this is possible?    P.S. One additional note: Even the language is not specified; Because test.c is available, GNU make uses cc. If there exists test.cpp or test.cc (when there is no test.c), it uses g++ (and not c++).
14640
I've just started learning Lisp and I can't figure out how to compile and link lisp code to an executable.  I'm using clisp and clisp -c produces two files:   .fas .lib   What do I do next to get an executable?
106866
Which IDLE package I should install from Software Center in Ubuntu assuming I want to program in Python 3?