How to build a package from sources

hi all,
Can someone please give some advices regarding making binaries from sources. I have found that a lot of programs on Snow Leopard can be also run in terminal and are in source form and need to be build. I have installed Xcode already and I have some programming skills as well such as using MinGW (GNU GCC) and VS EE on WinXP. I have never done anything in any UNIX-like system and I know sources need to be just compiled.
Please, give me a link if you have any =)
Regards.

I think you have done something in a UNIX-like system. MinGW is designed to provide a UNIX-line build system with GCC for Windows. Now, however, you have the real thing.
In most cases, all you need to do is extract the source tarbar into a directory (or checkout via CVS or SVN). Go into that directory with the Terminal and type "configure" and, if that goes well, "make", and if that looks good "sudo make install".

Similar Messages

  • How to build a package from local files?

    I have a couple of git projects cloned on my hd which I'd like to package. Now, it seems unneccessary to make a tarball of the files and move it to the build directory.... I've also tried to add the path to the source dir as the source line -- source=("/path/to/repo/*"), but that doesn't work either.
    what's the correct way to do this?

    Not quite, but close enough, I suppose. I have a ~/src tree and a ~/pkg tree, and my original question was -- to be more precise -- if I can tell makepkg, directly or in the PKGBUILD, to look in a certain folder in the src tree for the files to use for the pkg. I guess I can symlink to the ~/src directory. Thanks for the pointer.

  • Compile a package from source...

    I'm trying to learn how to compile a package from source code.
    I choose bfgminer as my example. I know there's already a pre-built package.
    # Get bfgminer-3.3.0
    wget http://luke.dashjr.org/programs/bitcoin … 3.3.0.tbz2
    tar -Jxvf bfgminer-3.3.0.tar.bz2
    cd bfgminer-3.3.0
    pacman -S uthash    # Required Dependencies
    pacman -S lm_sensors
    # I want to be able to remove unnecessary modules, so I defined CFLAGS:
    CFLAGS="--disable-avalon --disable-opencl --disable-bitfury --disable-littlefury --disable-bitforce --disable-modminer --disable-x6500 --disable-ztex"
    ./configure
    # The package compiles successfully, but It seems to have ignored the CFLAGS.
    Configuration Options Summary:
      Enabled..Drivers.....: avalon bigpic bitforce bitfury_gpio cairnsmore erupter icarus littlefury modminer opencl opencl:adl opencl:sensors x6500 ztex
      Disabled.Drivers.....: bfsb cpu metabank proxy
        To enable proxy, install libmicrohttpd 0.9.5+ (getwork) or libevent 2.0.3+ (stratum)
      Enabled..Algorithms..: SHA256d
      Disabled.Algorithms..: scrypt
      Enabled..Options.....: ncursesw5
      Disabled.Options.....:
    Compilation............: make (or gmake)
      CFLAGS...............:    -pthread -g -O2 -I/usr/include/libusb-1.0    -pthread -Ilibblkmaker
      LDFLAGS..............:   -pthread -Llibblkmaker/.libs -Wl,-rpath,\$$ORIGIN/libblkmaker/.libs,-zorigin  -lpthread  -ldl -lcurl  -ljansson  -L/usr/lib -lncursesw   -lm -ludev -lusb-1.0   -lsensors -lblkmaker_jansson-0.1 -lblkmaker-0.1
    Installation...........: make install && ldconfig #(as root if needed, with 'su' or 'sudo')
      prefix...............: /usr/local
    What did I do wrong?

    cfr wrote:
    ThinkFast wrote:Well you may have misread it at first, but I am running as root. For me, after building a system it seems hard to know when to create a standard user. And it's easy to just continue as root. Most tutorials don't mention it at all.
    Can it be done after the first login as root and changing the root password?
    Easy it may be, but it is also incredibly dangerous. I find it terrifying that people even think of doing this.
    I don't know which tutorials you are reading but the Beginners' Guide clearly includes this step as the first one to complete after rebooting into your new system:
    https://wiki.archlinux.org/index.php/Be … management
    You should do the minimum necessary as root. You should only ever perform a task as root if (1) the task cannot be performed with less privileges, (2) you understand exactly what the task is designed to accomplish AND (3) you understand why it needs to be performed with root privileges.
    While I admit that most do not go this far, I do not compile code with an account which is even in wheel. That means I don't compile even as my regular user - let alone root.
    I guess I have just gotten lucky so far. Thanks for your advise.

  • Building 32bit wine from source

    Anyone know if it is possible to build 32bit wine from source on 64bit arch? There are patches I would like to apply to wine but currently the only way I can install wine on 64bit arch is via bin32-wine which uses the 32bit binary.
    Other distributions this is very easy. It is just a matter of installing all of the 32bit libraries as well as the 64 bit libraries. I used to do this all the time with debian. Now with arch, even installing all of the 32bit libraries it does not seem to work at all. Has anyone been able to do this?
    If someone can point me in the right direction on how to get 32bit wine to compile, i will try to make and maintain a package on the AUR which will do this.

    I needed this a couple of months back but I couldn't find any documentation on this, other than building a chroot. Which seemed too much for me. So instead I booted ubuntu ;(
    But it seems easy now: http://wiki.archlinux.org/index.php/Arc … _Arch64.3F

  • How to remove a package from package structure?

    Hello profs,
    i have a problem. I add a package 'A' to another package 'B' in the package builder.
    Now i don't know how to remove package 'A' from the list of package 'B'.
    I have not found in the docu of package builder how to remove a package from the included list.
    Has somebody an idea how to do it?
    Thanks a lot.

    I found out that the relation between the packages saved in table TDEVC.
    Field PARENTCL contains the surrounding package 'B' of the package 'A' field DEVCLASS.
    At the moment the only way to remove the package is to modify the table.
    But i look for another possibility for this issue.
    Best regards
    Waldemar

  • Compiling a package from source files

    I am trying to install a package from source files. The installation instructions for this package say that I should just download the scripts to one directory, enter the correct paths in the Makefile (which comes with the package) and run "make".
    The problem is that while the g++ compiler is there on my computer
    (there is a binary called g++ located at
    /Developer/usr/bin/g++
    I am not sure if that is the real compiler. Or where the c header files are, for instance, I can't find math.h, or stdio.h or any of the other standard files.
    Any help will be greatly appreciated. I am very new to command lines, so please explain as you would to a five year old.
    To help with specifics, I edited the Makefile so that the first part looks like:
    #MATLABDIR ?= /usr/local/matlab
    # for Mac
    MATLABDIR ?= /Applications/MATLAB_R2008b.app
    CXX ?= g++
    #CXX = g++-4.1
    CFLAGS = -Wall -Wconversion -O3 -fPIC -I$(MATLABDIR)/extern/include
    Thanks a ton for the help

    Your compiler program is gcc. (/usr/bin/gcc).
    http://gcc.gnu.org/
    in terminal type (at the prompt):
    gcc --version
    (press return)
    should output the following:
    i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
    Copyright (C) 2007 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.
    If it does, your compiler is alive and kicking and ready for action, if not, reinstall developer tools
    package from your SL install DVD.
    The usual ritual for compiling is to drag the directory containing the source code to your desktop,
    then, in terminal, change terminal path to the source directory using the change directory command
    "cd".
    example; say I have a program called cdrtools 2.0.1 and the source is in a folder I dragged to my
    desktop called cdrtools_2.0.1:
    In terminal i would type:
    cd /Users/kj/Desktop/cdrtools_2.0.1
    Follow the instructions that come with the package. Typically they will tell you to:
    ./configure
    ( Many packages have a configure script which will query your system and configure themselves
    appropriately. Not supported by all software).
    make
    ( Compile the software. Some require a file name to build such as make foo. make reads a file
    normally called Makefile for what commands to run).
    make install
    ( Install the software. Typically packages will put themselves in /usr/local. Run as root).
    That is the usual ritual, but you must follow the instructions that come with the software, as they
    may vary.
    Read documentation!
    Look for files called: INSTALL, README, SETUP, or similar.
    For more information see the following:
    http://luv.asn.au/overheads/compile.html
    Now beware that some source code written before Snow Leopard was released may not compile
    properly on SL, because of SL's 64Bit gcc extensions. If the source has not been updated to run
    under the Snow Leopard compiler, then the compilation may fail.
    IF the program fails to compile, or fails to run after compiling, then most likely, then the source
    may need updating.
    good luck, and don't pull all your hair out at once. Save some for later.
    The guys in the 'NIX forum can help you with all the grizzly details as you go on your quest.
    http://discussions.apple.com/forum.jspa?forumID=735
    Good luck,
    Kj ♘

  • How to call a package from the Report in Oracle Application Express

    How to call a package from the Report in Oracle Application Express

    Hello,
    What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
    Or do you want to execute a procedure when something happens on the page, like clicking a button?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to build a String from Date?

    How to build a String from class Date?
    How to get the year, month, day, hour ... from a Date object.

    Ok to build a string use this function in java.util.Date
    toString()
    TO get year, date, etc u can use the following functions
    getYear()
    getDate()
    This link might help u more
    http://java.sun.com/products/jdk/1.1/docs/api/java.util.Date.html

  • How to  upload Transaction data from source system to BI 7.0

    Dear friends,
    I want to know how to  upload Transaction data from source system to BI 7.0.
    if anybody having step by step material for this process ,please send it to my
    mail id.
    [email protected]
    [email protected]
    Thanks,
    D.prabhu

    Hi,
    it works in the same way as before in case you are not using the new features like the dtp and the transformations. Using the new features, you schedule a infopackage to load the data up to psa and schedule a dtp to post the data to the targets.
    regards
    Siggi
    PS: We want to share knowledge in sdn and not keeping it private by having the information sent to our email adresses.

  • How long CSS blocks flow, from source which detected as source DoS?

    My application generates except normal flow, flow which CSS treats as DoS attack. Both flows have the same source.
    I am afraid that, CSS can block proper flow.
    So, I have question: how long CSS blocks flow, from source which detected as source DoS?
    Krzysztof

    I am not very sure of the lenghth of time that it blocks the flow from the source, if it is considered as a source of DoS attack, but the workaround would be to bypass the cache for that particular source, since you are already aware that it might cause a problem. You could use a bypass rule to do so. You can also use the flow timeout feature with the flow port[1|2|3|4|5|6|7|8|9|10] timeout command to configure a flow timeout value for a TCP or UDP port. I am not very sure if this feature would help in your situation, bypass seems to be a better option.

  • How to call a package from a different instance?

    Dear all:
    how to call a package from a different instance?
    for example:
    package A belongs to instance A1
    package B belongs to instance B1
    Now I want to call the package B in instance A1, how can I do ? my environment is oracle 10g
    Regards
    Terry

    Terry Chen wrote:
    Dear all:
    how to call a package from a different instance?
    for example:
    package A belongs to instance A1
    package B belongs to instance B1
    Now I want to call the package B in instance A1, how can I do ? my environment is oracle 10g
    First you have to create create dblink in A1 database as below
    CREATE DATABASE LINK INSA1
       CONNECT TO USER_NAME IDENTIFIED BY <pass>
       USING 'B!' Then you can execute exec pack_b@INSA1;

  • How to install a package from a disc

    i have the file     sudo-1.7.2p3.tar    on a disk and i need to know how to install a package from a cd, what lines do i need to type to install it?:|

    If you are running as root, you can execute that command as ../../b43-fwcutter-011/b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta.o and there is no need for sudo.
    Btw, what wireless card is this? Have you tried searching for a pacman package for it?
    To access the cd drive, use the mount command. Enter man mount to read the manual. (I assume you do not have a graphical environment set up yet.)
    Last edited by fsckd (2010-05-12 04:37:52)

  • [SOLVED] Building VCS packages from AUR fails

    Hello,
    Whenever I try to build a git or svn package from AUR, build fails with the error in a clean chroot enviroment:
    ==> ERROR: Unknown download protocol: svn
    Aborting...
    When the build starts, makepkg actually downloads source files properly. Any clues?
    Last edited by yuan_modu (2015-04-02 16:31:03)

    Trilby wrote:How many packages has this happened with?  Can you give an example of one that produces this error?  If the download proceeds when the build starts, it sounds like the PKGBUILD is outdated and is manually grabbing the source in the build function (in pacman<4.0 style).
    I was building https://aur.archlinux.org/packages/uefi-shell-svn: a popular and up-to-date PKGBUILD.
    Indeed I didn't merge the conf files of  clean chroot. There was a makepkg.conf.pacnew, the lacking part in my old makepkg.conf was:
    VCSCLIENTS=('bzr::bzr'
    'git::git'
    'hg::mercurial'
    'svn::subversion')
    and some small changes. Everything works fine now. Was my bad. Sorry for incovenience and thanks for your help.
    Last edited by yuan_modu (2015-04-02 13:08:21)

  • Making package from source

    I just created a working build of firefox 3.0.8 from source without using abs. I am wondering how I would be able to turn my build into a package that I can install via pacman.
    I don't really know what information I need to give but any help would be appriciated.

    Spelchek wrote:I'm running arch for fun and expirience, so I thought that compiling something the normal way would be a good thing to learn.
    I was overlooking things as usual, but I have run into a new problem. When I run the "make package" command it creates a bzip and not the gzip as required by pacman.
    but...abs IS the normal way. It just keeps track of all the files installed and makes the package for pacman...., which, is exactly what you're asking how to do.
    If you want to compile a custom firefox for yourself, do it in the form of a PKGBUILD

  • Compiling Packages from Source

    I am having some issues using the "make" command when compiling any kind of source code. When doing so, I get the sort of error that one would would expect when trying to build without headers. However, this is not the case. I do have the kernel headers installed (matching the kernel version, of course) and still I am unable to build. Interestingly enough, I am able to make packages from the AUR from source using packer, so I assume that I am able to make packages. Or am I painfully deluded in my understanding?

    TheHebes wrote:@tavianator- I have looked, the RTL8188CE driver is not present is NOT in the AUR. (packer -Ss r 8188 comes up with nothing). Furthermore, @graysky, I do have have kernel26-headers installed. Both the kernel and headers are version 2.6.39 3-1. For the most part, by the looks of it, there is no packagebuild available, so managing this through pacman is not looking like an option. From what I gather, "make" is the only way this is going to compile.
    The driver you want is indeed in the AUR.  Look at the description:
    http://aur.archlinux.org/packages.php?ID=46797
    The driver name and version number exactly match the errors from make you posted above:
    TheHebes wrote:make[1]: *** No rule to make target `*/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192'.  Stop.
    Last edited by mrstegeman (2011-08-10 11:36:02)

Maybe you are looking for

  • Partial Delivery

    Hello All:    Can't make paritial delivery work on my SBO.. This is for test.. I have a sales order with item requestion 10 pcs.. I copy to delivery and make quantity 5 pcs.. And when I come back to do another delivery for it The line has close, if I

  • End of file error - avi exported from PPRO

    Encore 1.5 PPro 1.5 I have a project with 16 avi files exported from PPro. Four of them caused the error. I re-exported them and one was fixed. The other three keep causing the error. I am starting to get a little crazy trying to figure out what is g

  • Referencing Components in HashMaps

    Hi All, In my current little project I am using a HashMap to manage my components. They are referenced everywhere from the hashmap and everything was going smoothly up until now. I am still relatively new to Java, but not new to OOP and general progr

  • How to put photos on ipod

    can someone please tell me how to put photos on my ipod.

  • Log on as batch task with User Profile Disks

    We have a Windows Server 2012 R2 Remote Desktop deployment, where we use user profile disks stored on a central file server. We are trying to run a scheduled tasks as a user, while they are logged off. When the tasks runs, I can see an event in event