Sponsored Content
Special Forums UNIX and Linux Applications How to compile from source code? Post 302198625 by wrapster on Friday 23rd of May 2008 10:01:19 AM
Old 05-23-2008
How to compile from source code?

Hi all,

I downloaded the source code for a pkg.
But i dont know how to build from it?
I have no prior experience in building from source,so could you pls help me?

I tried ./configure(after entering into the dir containing the src codes)
but it generated some errors!!!!!
Some files .......... no ;gcc not found

This was the o/p i got where many files showed the same o/p...
But i know that gcc comes built in with solaris ,B-79a( /usr/sfw/bin/gcc)..
How to execute using this??
Do i have to pass this as an arg from the command line?

Pls assist!!
Thanks
 

9 More Discussions You Might Find Interesting

1. Programming

compile rpm-4.0 source

Hello Unix experts, I downloaded rpm-4.0 source from ftp.redhat.com and tried to make it. There are something I could not understand. - Makefile.in and Makefile.am instead of Makefile - file INSTALL doesn't show clearly the steps of compiling What are these 2 files, Makefile.in and... (2 Replies)
Discussion started by: eddie
2 Replies

2. Programming

error trying to compile a c++ source file

i tried to compile a c++ file using the g++ command: g++ <filename>.cpp -out <output_file> and i received the following error message: ld.so.1: gcc: fatal: relocation error: file gcc: symbol bindtextdomain: referenced symbol not found Killed is it that i am using incorrectly the... (1 Reply)
Discussion started by: ldrojasm
1 Replies

3. SuSE

How do I compile source undfer Suse Linux?

I've been usuing Suse 9.1 & 10 on 2 different machines for a while and have so far relied on ready compiled versions of programs in RPMs in order to install them. I'm unclear what is envolved in compiling from the source code myself. I did a general google on the topic and found some unclear... (3 Replies)
Discussion started by: Mark Ward
3 Replies

4. Solaris

Error when compile source code

Hello,I'm trying to compile source code for Nmap. My $PATH /usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ucb:/usr/local/bin:/usr/css/bin I type ./configure and all goes great.When I type ./make or ./make it says make not found.Why?I need a correct path for make?Thanks in advance. (2 Replies)
Discussion started by: bgf0
2 Replies

5. Programming

How to compile openGL code which is in C++ in ubuntu

Hi, I am trying to compile openGL code which is written in c++ ..but i am getting error msgs like this root@lxdevenv:~/Desktop# g++ diss.cpp -o diss -I/usr/X11R6/include/ -L/usr/X11R6/lib -lX11 -lXi -lXmu -lglut -lGL -lGLU diss.cpp:1:23: error: windows.h: No such file or directory... (2 Replies)
Discussion started by: Ravikishore
2 Replies

6. AIX

How to compile a package in AIX when we download its source?

How to compile a package surce in AIX when we download its source? (2 Replies)
Discussion started by: johnveslin
2 Replies

7. Programming

Compile and debug Vim source code

Hi, I want to debug Vim source code with GDB but I can't get it. It seems to run without debugger. Here is my try. I have supressed output of most commands. Tell me if you need them. $ uname -mor 2.6.37-ARCH i686 GNU/Linux $ mkdir ~/birei && cd ~/birei $ wget... (2 Replies)
Discussion started by: birei
2 Replies

8. Programming

C++ for dummies: how to compile a code.

Hi. I wrote a small programm which shows me display's refresh rate #include "stdafx.h" #include "windows.h" #include "iostream" using namespace std; int _tmain(int cout) { HDC hDCScreen = GetDC(NULL); int RefreshFrequency = GetDeviceCaps(hDCScreen, VREFRESH); ReleaseDC(NULL, hDCScreen);... (1 Reply)
Discussion started by: urello
1 Replies

9. Programming

Create a C source and compile inside Python 1.4.0 to 3.7.0 in Python for ALL? platforms...

Hi all... As you know I like making code backwards compatible for as many platforms as possible. This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
SCAN-BUILD(1)															     SCAN-BUILD(1)

NAME
scan-build scan-build(1) -- An utility for running the clang(1) analyzer from the command line SYNOPSIS
scan-build options build command [build options] DESCRIPTION
scan-build is a command line utility that enables a user to run the clang static analyzer over their codebase as part of performing a regu- lar build (from the command line). OPTIONS
-analyze-headers Also analyze functions in #included files. -o Target directory for HTML report files. Subdirectories will be created as needed to represent separate "runs" of the analyzer. If this option is not specified, a directory is created in /tmp (TMPDIR on Mac OS X) to store the reports. -h, --help Display the help message. -k Add a "keep on going" option to the specified build command. --keep-going This option currently supports make and xcodebuild. This is a convenience option; one can specify this behavior directly using build options. --html-title [title] Specify the title used on generated HTML pages. --html-title=[title] If not specified, a default title will be used. -plist By default the output of scan-build is a set of HTML files. This option outputs the results as a set of .plist files. --status-bugs By default, the exit status of scan-build is the same as the executed build command. Specifying this option causes the exit status of scan-build to be 1 if it found potential bugs and 0 otherwise. --use-cc [compiler path] By default, scan-build uses 'gcc' to compile and link --use-cc=[compiler path] your C and Objective-C code. Use this option to specify an alternate compiler. --use-c++ [compiler path] By default, scan-build uses 'g++' to compile and link --use-c++=[compiler path] your C++ and Objective-C++ code. Use this option to specify an alternate compiler. -v Verbose output from scan-build and the analyzer. A second and third '-v' increases verbosity. -V View analysis results in a web browser when the build --view completes. ADVANCED OPTIONS
: -constraints [model] Specify the contraint engine used by the analyzer. By default the 'range' model is used. Specifying 'basic' uses a simpler, less powerful constraint model used by checker-0.160 and earlier. -store [model] Specify the store model used by the analyzer. By default, the 'region' store model is used. 'region' specifies a field sensitive store model. Users can also specify 'basic', which is far less precise but can more quickly analyze code. 'basic' was the default store model for checker-0.221 and earlier. -no-failure-reports Do not create a 'failures' subdirectory that includes analyzer crash reports and preprocessed source files. EXAMPLES
Basic usage of scan-build is designed to be simple: just place the word "scan-build" in front of your build command: $ scan-build make $ scan-build xcodebuild In the first case scan-build analyzes the code of a project built with make and in the second case scan-build analyzes a project built using xcodebuild. It is also possible to use scan-build to analyze specific files: $ scan-build gcc -c t1.c t2.c This example causes the files t1.c and t2.c to be analyzed. AUTHORS
Maintained by the Clang / LLVM Team http://clang.llvm.org. This manual page was written by Ermenegildo Fiorito fiorito.g@gmail.com for the Debian Project. SEE ALSO
clang(1) scan-view(1) http://clang-analyzer.llvm.org December 2010 SCAN-BUILD(1)
All times are GMT -4. The time now is 01:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy