Programming :: Compile And Install From A Tarball?
May 2, 2011
I recently downloaded a tarball which contains a .src file for a program to convert .ttf fonts to .cxf fonts for use in Qcad drawings. how to compile and install this program in linuxmint 9 or ubuntu lucid. What I downloaded from the ribbonsoft.com website is a tarball called ttf2cxf-0.0.0.1-src.tar.gz. It contains a directory /ttf2cxf-0.0.0.1-src, which contains three files: main.cpp, Makefile, and ttf2cxf. I can post the contents of these files. This is not a high priority problem but i have been messing around with this for a while and have made no progress.
Is there an "easy" explanation somewhere in the forum about how to install programs which are in tarball form? I am relearning much of openSUSE and unsure of the compiling commands, which one(s) should be ran as a user, which commands should be ran as root... I've done a search on this topic and it seems there is a difference in login between make, make install, checkinstall etc.
I understand I'll also need some developer packages to compile tarballs however I don't know which ones. The last time I unsuccessfully tried to work with tarballs was when openSUSE 9.x was current. It's been that long. There is a program I absolutely need, it's SecondLife which I haven't found in any RPM repositories. I've downloaded the "linux" version from their website. The file name is: SecondLife-i686-2.5.2.223426.tar.bz2 I have a 64bit Toshiba notebook running 11.4
I've read a few other threads about installing tarballs and just about all of them mention running the ./configure script. BTW, I'm working on a machine without internet connection and I'm using karmic. I successfully extracted the contents of the tarball and a directory of those contents was created. I navigated into that directory and tried "sudo ./configure" as per some instructions I found on the net, but the result was "bash:./configure: no such file or directory".
I get this same error message when I try "./configure --help | less" Is "./configure" something that is meant to come as part of the OS or do I need to install that separately too!?! when I try to create a keyboard short cut for opening a terminal by using the "keyboard shortcuts" option in system > preferences the setting lists it as "disabled". Is there some way for enabling? I know how to get to a complete screen terminal by using ctrl+alt+f2 but I also want a shortcut for other terminal box which is accessible via the applications area.
My Fedora 14 have installed gcc-4.5.1-4.fc14.x86_64,qt-4.7.1-5.fc14.x86_64, I don't know how to use g++ to compile QT program. Do I need to set PATH or something else?
i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile
I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.
I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using
$ f77 readmixed.o subroutines.o -o readmixed subroutines.o(.text+0x0): In function `norm1_': : multiple definition of `norm1_' readmixed.o(.text+0x3987): first defined here
This compiles against g++ template headers but not against the icpc headers. Code: #include <string> #include <vector> template <typename T> class MyList : public std::vector< T* >{ };
template <typename T> class MyListIterator : public MyList<T>::iterator{ }; int main(){ MyListIterator< int > test; return 0; }
My new guy has created several functioning webpages on his machine with TOMCAT 6 with Sun JDK, yet our machines use TOMCAT 5.5 with Open JDK, which his webpages don't show. Do you have any idea how to make them work? The error showing in a browser:
Code: HTTP Status 500 - type Exception report message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception org.apache.jasper.JasperException: Unable to compile class for JSP:
I'm trying to write a helper for the mount utility (mount.truecrypt) and there are some things in the util-linux-ng package that would be helpful. For example, in fstab.c, there is a lock_mtab() function. I want to be able to do something like:
Code:
#include "fstab.h" int main(int argc, char *argv[]) { lock_mtab();
[code]....
But I don't know how to compile it. I was trying (naively) something like:
But I guess the problem is fstab needs a whole bunch of other stuff. Should I just build the entire util-linux-ng package and then use the output somehow? If anyone is interested in mount.truecrypt (to be compatible with mount and /etc/fstab) you might be interested in giving me a little bit of guidance. I've got enough code to build the actual truecrypt command thus far. In fact, it's useable, but not robust (ie, doesn't lock the mtab, etc). You can browse the source for util-linux-ng here: [URL] and download a tagged release here:[URL]
I have decided to try out a little bit of c++ programing so I went out and bought me a book "Sams Teach your self C++ in 21 Days" Now I am at the part of the book where you write the hello world script. when I run Code: cc hello.cpp get this
how i could compile for example: a tutorial file of cantera open source files. when i do :g++ example.cpp -o examplei get huge errors such as the header files are not here,...please tell me how i could compile it. ofcourse i have configured the full opensources and i see in /usr/local/cantera/binthat the files are there but i still can not compile and execute any cpp file.
I work on Fedora 9 and I'm unable to compile my c++ program using the make in the terminal as well as in the IDE-Anjuta.although 'make' works fine with C programs,I get an error that g++ command is not found whenever I try it with C++ programs.
i was trying to Compile my c++ program..cme across this problem....but my c programs are getting compilied without any problem.I am using fedora 14. Below is the way terminal reacted to my program..
gcc prog1.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory
I've got the "OpenCryptoKi" project source from "sourceforge.net" at here:But I don't know how should I compile and build it by "GCC" or "Make"?!I have ubuntu 9.04 and I've set the linux runlevel at 3, but I'm not so familiar with compiling such project at commandline environment of linux
how to cross compile the perl script for arm_v5t.le.gcc??downloaded perl script unable to compile from the cross folder as per the readme.txt instruction
i have just modify tcp.c file in/usr/src/linux/net/ ipv4 location.Now should i compile the complete kernel?if not then how to compile that net/ipv4 package or etc.
I've been trying to work out a way to stop chunks of code being compiled using a variable in my makefile but can't work it out. What I mean is for example in my code I might have.
/****output comms portdata********/ printf(" debug comms port %d",ReadPort("ttys1);
I only wish this code to be compiled when I'm debugging. What I've tried is using #ifdef with
#ifdef COMM_PORT_DEBUG printf(" debug comms port %d",ReadPort("ttys1); #endif
Then in my make file I set COMM_PORT_DEBUG to 1 so
DEBUG_DEFS = COMM_PORT_DEBUG=1
I then thought I could put it into my in my link line