View Full Version : Source code of ubuntu
NumerataNero
August 30th, 2011, 10:04 PM
I'm looking for the code base of Ubuntu, where do I find these?
regards.
Bachstelze
August 30th, 2011, 10:15 PM
Ubuntu is not a single program, but a collection of packages. To obtain the source package from which a binary packge was built, you can use apt-get source package.
Enigmapond
August 30th, 2011, 10:16 PM
Try here...it's for 10.04 but they are all here at this site. Just change the url.. :)
http://cdimage.ubuntu.com/releases/10.04/release/source/
NumerataNero
August 30th, 2011, 10:29 PM
thanks for the answers, to be more specic I'm looking for base64 src code.
cgroza
August 30th, 2011, 10:35 PM
thanks for the answers, to be more specic I'm looking for base64 src code.
You need to look in the package coreutils.
Smart Viking
August 30th, 2011, 11:08 PM
If you combine post #2 and #5, that results in:
apt-get source coreutilsInside there are multiple instances of the file base64.c, I don't know what's the real deal.
Bachstelze
August 30th, 2011, 11:41 PM
Reminds me I need to work on my MIPS assembly version...
NumerataNero
August 31st, 2011, 04:03 AM
Great, exactly what I needed ;)
NumerataNero
August 31st, 2011, 04:07 AM
If you combine post #2 and #5, that results in:
apt-get source coreutilsInside there are multiple instances of the file base64.c, I don't know what's the real deal.
I tried some of these and all give me different result then the base64 on Ubuntu and HP-UX.
Its the way they deal with the last bytes I gues,
Bachstelze
August 31st, 2011, 04:56 AM
I tried some of these and all give me different result then the base64 on Ubuntu and HP-UX.
Its the way they deal with the last bytes I gues,
You are probably not compiling them right.
NumerataNero
August 31st, 2011, 05:02 AM
Still one question (embarased ;)
I build the stuff but I'm trying to figure out how the component itself is build.
Compiling is ok with gcc -o base64 base64.c -I ../lib but I'm getting unrosolved externals.
Should I link against coreutils.a sitting in ../lib? I tried gcc etc -l ../coreutils.a but no luck.
(still learning, I'm an old VMS gue but speeding up)
Bachstelze
August 31st, 2011, 05:04 AM
You need to
./configure
make
If you compile it another way, it might not work. It's not a stand-alone tool, but part of a larger package (coreutils), so it is possible that it needs other things in that package.
NumerataNero
August 31st, 2011, 05:27 AM
You need to
./configure
make
If you compile it another way, it might not work. It's not a stand-alone tool, but part of a larger package (coreutils), so it is possible that it needs other things in that package.
I've done that but I want to build the base64 standalone also.
Bachstelze
August 31st, 2011, 05:40 AM
Well, you can't. :) Why do you care, though? coreutils doesn't take a lot of time to build even on a fairly ancient machine.
pjd99
August 31st, 2011, 05:56 AM
Reminds me I need to work on my MIPS assembly version...
Ouch. Have to implement a MIPS datapath for an assignment, but at least get to choose the language. Now I just have to learn VHDL again.
NumerataNero
September 5th, 2011, 04:21 AM
Thanks for the great support. ;-)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.