Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Error building C program, library complication Post 302589479 by Bateman1001 on Wednesday 11th of January 2012 11:05:51 PM
Old 01-12-2012
Error building C program, library complication

Hi
I'm relatively new to the unix environment, I'm about the install the root package from cern ROOT since I need this for a secondary program for DNA sequencing analysis. I however get into some trouble while I do this.
I download the root file and ./configured it according the the macOSx64 architecture. I defined a shell varible according to instructions named $ROOTSYS which I added to my Path setenv PATH $PATH":$ROOTSYS/bin.

After this I tried to build the DNA-analysis package, with the make command.
I Got an error message that several libraries could not be located, actually all the libraries specified within the root file.

I figured out that I forgot to run an additional script of root package,specifying all the libraries within root/lib file( source ~/root/bin/thisroot.csh

Finally I tried to build the CNVnator package again, most of the packages worked this time except one, and I got this error message

"
++ -pthread -m64 -o cnvnator obj/cnvnator.o obj/HisMaker.o obj/AliParser.o obj/Genotyper.o obj/Genome.o samtools/libbam.a -L/Users/ericcson/Genomic_software/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -lfreetype
ld: library not found for -lfreetype
collect2: ld returned 1 exit status
make: *** [cnvnator] Error 1
"
It appears as of the shared library freetype package is not found, (when I made the ./configure - is said that this package already existed.

For somer eason it appears that I cannot acess this shared library, I have googles and tried to figure it out but I'm sort of stuck. Would appreciate help since I just started learning UNIX.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

irq complication

hi, i looked around already and had no luck finding anything. Im trying ot install a wpc11v3 linksys wireless card, and i have been for about a week now. :mad: Im near certain i have figured out my problem. When i plug in my card while knoppix is running, it crashes. When i plug it into... (0 Replies)
Discussion started by: jestra
0 Replies

2. UNIX for Advanced & Expert Users

building a 64-bit archive library

I'm trying to build an archive library using the following script. It builds fine on 32-bit architectures, but when I try to build on a computer with 64-bit architecture I get this error message: /usr/bin/ld: warning: i386 architecture of input file `../lpdlib/lpdlib_byteswapio.a(system.o)' is... (1 Reply)
Discussion started by: echorak
1 Replies

3. Shell Programming and Scripting

tcsh user failed to call library in ksh program

Hi folks, I'm trying to organize functions in my ksh program into libraries. If I run my program as any ksh user it will succeed. Only when I run my program as tcsh user (i.e oracle) I failed. Example ======= The ksh code: tornado:/tmp # cat nir.ksh #! /bin/ksh cdromPath=`pwd`... (1 Reply)
Discussion started by: nir_s
1 Replies

4. Programming

how to use a dynamical linked library in C++ program in Linux

I have a dynamically linked library, providing some functions needed in my project. I have successfully imported it into my VC ++ 6.0 project. Now, i am translating the project into pure C++ (such as avoiding using MFC classess) in Linux box. Does anyone know if it makes sense to try to use... (2 Replies)
Discussion started by: cy163
2 Replies

5. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

6. Shell Programming and Scripting

Adding a new column as sequential number but with a little complication

I am a newbie to shell programming and maybe somebody can help me out a little. Here's my problem: I got a PIPE delimited file with header record. I need to add a new column name as RECORDKEY. I would like to use a counter to generate this new value for each record. I plan to do a while loop and... (4 Replies)
Discussion started by: johnhips
4 Replies

7. AIX

Calling functions from main program from dlopened library function

Hello All, I am trying to call a function from the calling main program from a dlopened library function, below is the entire code, when I execute it it crashes with sigill. Can you guys help me out I guess I am missing out on the linker flag or something here. besides I am new to AIX and... (1 Reply)
Discussion started by: syedtoah
1 Replies

8. Programming

Trouble compiling program using the readline library.

Hi: in the info page for readline library I read -- Function: void rl_variable_dumper (int readable) Print the readline variable names and their current values to `rl_outstream'. If READABLE is non-zero, the list is formatted in such a way that it can be made part of an... (1 Reply)
Discussion started by: stf92
1 Replies

9. UNIX for Dummies Questions & Answers

Error building program in UNIX

I'm trying to build a program and I'm getting a series of messages that I don't understand (new to UNIX): make: Entering directory `/disk/cg6/ccoda/code/proj/abrupt/exp/cam1/models/atm/cam/tools/scam/ui' g++ -c -Wall -g -DLINUX -DREAL_TYPE=double -DNeedFuncProto ... (7 Replies)
Discussion started by: bstephens
7 Replies
ROOT(1) 						      General Commands Manual							   ROOT(1)

NAME
root - Interpretor of C++ for the ROOT framework SYNOPSIS
root [options] files ... DESCRIPTION
ROOTs Object-Oriented Technologies. root is a interactive interpretor of C++ code. It uses the ROOT framework. For more information on ROOT, please refer to http://root.cern.ch. An extensive Users Guide is available from that site. OPTIONS
-? Show summary of options. -b Run in batch mode without graphics -n Do not execute logon and logoff macros as specified in .rootrc -q Exit after processing command line macro files -l Do not show splash screen SEE ALSO
rootcint(1), cint(1), root-config(1), rootd(1), h2root(1), g2root(1) For extensive documentation on the ROOT system, see http://root.cern.ch <http://root.cern.ch> A Users Guide is available online. <http://root.cern.ch/root/UsersGuide.html> The classes of ROOT are all documented by the automatic documentation system, and is available online. <http://root.cern.ch/root/html/ClassIndex.html> FILES
<etcdir>/system.rootrc System-wide configuration file. <etcdir> either ROOTSYS, or something like /etc/root <libdir>/* ROOT C++ class libraries. <libdir> is either ROOTSYS/lib or something like /usr/lib/root. <incdir>/* The header files for the ROOT C++ class libraries. <incdir> is either ROOTSYS/include or something like /usr/include/root. ~/.rootrc, ./.rootrc User configuration file ORIGINAL AUTHORS
The ROOT team (see web page above): Rene Brun and Fons Rademakers COPYRIGHT
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as pub- lished by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foun- dation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA AUTHOR
This manual page was written by Christian Holm Christensen <cholm@nbi.dk>, for the Debian GNU/Linux system (but may be used by others). ROOT
Version 3 ROOT(1)
All times are GMT -4. The time now is 10:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy