Results 1 to 10 of 14
I'm sorry if theres already another thread of this, but I'm am so confused I have no idea what I'm typing into terminal anymore. Its just random stuff I found ...
- 08-14-2008 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
Can't install git.
I'm sorry if theres already another thread of this, but I'm am so confused I have no idea what I'm typing into terminal anymore. Its just random stuff I found on webpages. I was trying to install Java, and the Java instructions told me to install rpm, then rpm told me to install git, then git told me to install yum. Lol, I'm so confused. I found this tutorial:
http://www.linuxforums.org/forum/lin...are-linux.html
and tried the method on my source of git, but I got an error. So that leads me to:
THE PROBLEM
Reading this tutorial I unpacked the gz source file of git, then I cd'd into it, then I tried ./configure but this came up:
Heres config.logCode:configure: CHECKS for programs checking for cc... cc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details.
I hope thats not too much. If anyone could give me any direction it would be greatly appreciated.Code:This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by git configure 1.5.6.4, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = scott-linux-desktop uname -m = i686 uname -r = 2.6.22-14-generic uname -s = Linux uname -v = #1 SMP Sun Oct 14 23:05:12 GMT 2007 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:1877: CHECKS for programs configure:1934: checking for cc configure:1950: found /usr/bin/cc configure:1961: result: cc configure:1997: checking for C compiler version configure:2004: cc --version >&5 cc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2007: $? = 0 configure:2014: cc -v >&5 Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) configure:2017: $? = 0 configure:2024: cc -V >&5 cc: '-V' option must have argument configure:2027: $? = 1 configure:2050: checking for C compiler default output file name configure:2077: cc conftest.c >&5 /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status configure:2080: $? = 1 configure:2118: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "git" | #define PACKAGE_TARNAME "git" | #define PACKAGE_VERSION "1.5.6.4" | #define PACKAGE_STRING "git 1.5.6.4" | #define PACKAGE_BUGREPORT "git@vger.kernel.org" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2125: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_prog_ac_ct_CC=cc ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='' ASCIIDOC8='' ASCIIDOC='' CC='cc' CFLAGS='' CPP='' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FREAD_READS_DIRECTORIES='' GREP='' LDFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' NEEDS_LIBICONV='' NEEDS_SOCKET='' NEEDS_SSL_WITH_CRYPTO='' NO_C99_FORMAT='' NO_CURL='' NO_DEFLATE_BOUND='' NO_D_INO_IN_DIRENT='' NO_D_TYPE_IN_DIRENT='' NO_EXPAT='' NO_ICONV='' NO_IPV6='' NO_MEMMEM='' NO_MKDTEMP='' NO_OPENSSL='' NO_SETENV='' NO_SOCKADDR_STORAGE='' NO_STRCASESTR='' NO_STRLCPY='' NO_STRTOUMAX='' NO_SYS_SELECT_H='' NO_UNSETENV='' OBJEXT='' OLD_ICONV='' PACKAGE_BUGREPORT='git@vger.kernel.org' PACKAGE_NAME='git' PACKAGE_STRING='git 1.5.6.4' PACKAGE_TARNAME='git' PACKAGE_VERSION='1.5.6.4' PATH_SEPARATOR=':' SHELL='/bin/bash' SNPRINTF_RETURNS_BOGUS='' TAR='' TCLTK_PATH='' ac_ct_AR='' ac_ct_CC='cc' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "git" #define PACKAGE_TARNAME "git" #define PACKAGE_VERSION "1.5.6.4" #define PACKAGE_STRING "git 1.5.6.4" #define PACKAGE_BUGREPORT "git@vger.kernel.org" configure: exit 77
- 08-14-2008 #2Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
I just had the same problem again installing rpm:
Ok judging by this I think theres something wrong with my C compiler. I'm going to try and fix that. I probably will need help.Code:// Bunch of configuring stuff checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables
- 08-14-2008 #3Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
Ok, I've had it. This c compiler thing is driving me crazy. I tried downloading a bunch of compilers (gcc) but it said I needed the c compiler to install them. ARRRGAHGGHSH. How do I get this? Usually programs will only say what was in my first post but the latest one said this:
Does this mean anything? Do I already have a c compiler on my computer? Cause thats the only way I could set the CC variable to it. I'm running the latest version of ubuntu. Any help here?Code:checking for a BSD compatible install... /usr/bin/install -c *** This configuration is not supported in the following subdirectories: target-libffi target-boehm-gc target-zlib target-libjava (Any other directories should still work fine.) /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status *** The command 'gcc -o conftest -g -O2 conftest.c' failed. *** You must set the environment variable CC to a working compiler.
- 08-14-2008 #4Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
Ok I solved the original problem using this thread I found:
C compiler cannot create executables - Ubuntu Forums
I did:
apt-get install libc6-dev g++ gcc
But I'm still missing a ton of other libraries, so I'm going to have to install them.
- 08-15-2008 #5Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
There are several java compilers available in the repositories of ubuntu. I don't use Ubuntu often, but I notice that I have one running in a virtual machine on a server I use.
Ubuntu is based on GNU/Debian. Software is manipulated by a package manager -- it is used to install, delete, update, etc. software. The command-line-interface ("CLI") package manager that many people use is apt-get, which you have already used. Package managers are used to keep track of software so that your system can be easily maintained. Once you get some experience, installing software from the repositories is easy and painless (mostly). You can test software, choose among similar packages, then get rid of the ones you don't want. GNU/Debian has repositories that offer many thousands of packages (some say almost 20,000).
An allied program is apt-cache. You can use it to query the existence and status of software packages.
On RedHat and SuSE systems, package managers rpm and yum are used. Although some folks might have those installed on their GNU/Debian systems, most would not need them, and if you did use them you might run into conflicts if you install with one package manager that the other does not know about.
Before we go farther, let us know more precisely what you want -- a specific java compiler, or will any one suffice? ... cheers, drlWelcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )
- 08-16-2008 #6Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
I'm not sure. I guess I want to learn how to use apt-get better. It makes no sense. I've been trying to install rpm using:
for a while now, and before it would say that the package exists, but has a new name. Now randomly, it says its available. I have no idea why.Code:apt-get install rpm
- 08-16-2008 #7Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
I think I get it. I'm not sure. But I tried this earlier
and it didn't do anything. But then I downloaded the source for it, and tried it again. Now it worked and I am installing it.Code:apt-get install m4
Is this how its suppose to work?
- 08-16-2008 #8Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
You will need to supply evidence to get the best answers to your questions.
For example, suppose I wanted to install m4. I might want to simulate it first -- i.e. try it without actually installing it.
Here is a copy of what I did:
First note that I have CODE brackets around that text. You can get that by selecting the text in the editing box after you have pasted it in from your console, then click the # button just above the editing window. Using CODE brackets for data, commands, scripts, etc. makes it easier for others to read.Code:$ apt-get -s install m4 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: m4 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. Inst m4 (1.4.10-0ubuntu2 Ubuntu:7.10/gutsy) Conf m4 (1.4.10-0ubuntu2 Ubuntu:7.10/gutsy)
Now, note that the output gives us essential information. The m4 package may depend on other packages. In this case, either it stands alone, or the other packages are present. The manager says it will install only m4 at this point. It's a binary package in the repositories. The action is simulated because I added the option "-s". You can read more about that by executing:
however, man pages are generally reference documents not tutorials.Code:man apt-get
We can find out more about the situation with apt-cache:
At this point I cannot give you more information because I don't know in detail what you did.Code:$ apt-cache show m4 Package: m4 Priority: optional Section: interpreters Installed-Size: 508 Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Santiago Vila <sanvila@debian.org> Architecture: i386 Version: 1.4.10-0ubuntu2 Depends: libc6 (>= 2.6-1) ...
Repeating my question: are you interested in a particular java or any java? When I tried to execute javac, I got:
this allows us to consider what java compiler in which we might be interested. We could use apt-cache to see details about any of those packages ... cheers, drlCode:$ javac The program 'javac' can be found in the following packages: * java-gcj-compat-dev * jikes-sablevm * gcj-4.2 * kaffe * ecj * jikes-sun (You will have to enable component called 'multiverse') ...
PS A short note about git. The package named git in the repositories is not the same git as is used for source control. Use apt-cache to see details about the repository git.Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )
- 08-16-2008 #9Just Joined!
- Join Date
- Mar 2008
- Posts
- 34
What I'm trying to do right now is learn how all of this works. Java was really just an ending goal. I was just trying to get a plug-in for the web browser. I just got the jre working by using the non-rpm installation of java, but it won't link to my browser. I tried putting in this file in the mozilla plug-ins, but I don't have the "libjavaplugin_oji.so" anywhere, which I'm suppose to have in order to create this plug-in. I'm not sure why I don't have it.
With the apt-get thing, its just really cryptic. What I was talking about with the m4 package is that I tried it earlier and it did this:
Then I tried again after a few minutes and it installed it. I have no idea why, it did the same thing with rpm. I'd say it was a problem with my connection to the internet, but it read the package lists and state information successfully so that means the internet was working. I was just wondering why this would happen.Code:Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package m4
I'd like to get rpm to work too. So far I've tried it on java:
I've checked, and a lot of these are actually here, the ones that aren't are: basename, gawk, and sort. And these files are found in /usr/bin/. So I cp'd these files from /usr/bin/ to /bin/ and it still gives me the same message.Code:root@happypandaface-desktop:/home/happypandaface/Desktop/Downloads# rpm -iv jre-6u7-linux-i586.rpm error: Failed dependencies: /bin/basename is needed by jre-1.6.0_07-fcs.i586 /bin/cat is needed by jre-1.6.0_07-fcs.i586 /bin/cp is needed by jre-1.6.0_07-fcs.i586 /bin/gawk is needed by jre-1.6.0_07-fcs.i586 /bin/grep is needed by jre-1.6.0_07-fcs.i586 /bin/ln is needed by jre-1.6.0_07-fcs.i586 /bin/ls is needed by jre-1.6.0_07-fcs.i586 /bin/mkdir is needed by jre-1.6.0_07-fcs.i586 /bin/mv is needed by jre-1.6.0_07-fcs.i586 /bin/pwd is needed by jre-1.6.0_07-fcs.i586 /bin/rm is needed by jre-1.6.0_07-fcs.i586 /bin/sed is needed by jre-1.6.0_07-fcs.i586 /bin/sort is needed by jre-1.6.0_07-fcs.i586 /bin/touch is needed by jre-1.6.0_07-fcs.i586 /usr/bin/cut is needed by jre-1.6.0_07-fcs.i586 /usr/bin/dirname is needed by jre-1.6.0_07-fcs.i586 /usr/bin/expr is needed by jre-1.6.0_07-fcs.i586 /usr/bin/find is needed by jre-1.6.0_07-fcs.i586 /usr/bin/tail is needed by jre-1.6.0_07-fcs.i586 /usr/bin/tr is needed by jre-1.6.0_07-fcs.i586 /usr/bin/wc is needed by jre-1.6.0_07-fcs.i586 /bin/sh is needed by jre-1.6.0_07-fcs.i586
- 08-16-2008 #10Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
I give you a lot of credit for digging in, trying to do things, and asking for help.
However, because you didn't know about package managers and you have changed the content of some system directories, you probably have a system that is inconsistent. You seem to be comfortable with the command line, so installing software will come easy once you know a few things. As it is now, I would not trust the state of your system. Luckily, re-installs are also easy, and relatively fast as long as you accept the defaults.
You seem to want to get to the meat of the issue and work your way up. If so, then begin reading at https://help.ubuntu.com/8.04/add-app...anced.html#apt and work your way up the URL to see the context where everything fits.
You don't need to re-install now, do some reading, experimenting, practicing, perhaps writing some notes. Keep in mind that you will be trashing the current system. When you are comfortable with installing and deleting software the Ubuntu way, do a fresh install, use the appropriate package manager (for GNU/Debian, and its children like Ubuntu: apt-get, for example, not any of the rpm-based managers), and proceed to enjoy life.
When I begin working on a system, I allocate enough time to do several installs because I always learn something along the way about what I should have done or should have avoided but didn't.
Best wishes ... cheers, drlWelcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )


Reply With Quote