Compile for debian from another system

Post here if you need help setting up your server, etc.
izissise
On Lightcycle Grid
Posts: 13
Joined: Mon Dec 24, 2012 3:52 pm

Compile for debian from another system

Post by izissise »

Hello,

I want to setup a armagetron-dedicated server, but for some reason i'm unable to setup a dev environnement on that server , is it possble to compile the server from another computer and then generate a deb package so I can install it on the server ?

Thank you :D
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Compile for debian from another system

Post by Light »

It's technically possible, but could cause problems from differed versions. I wouldn't recommend going at it that way.

You should have SSH if you've installed the server package, so maybe you would like to give my script a shot? It will install sty+ct by default, so change that if you really want. Most people would choose it though, so you probably don't need to change anything.

http://wiki.armagetronad.org/index.php/ ... e_Easy_Way
izissise
On Lightcycle Grid
Posts: 13
Joined: Mon Dec 24, 2012 3:52 pm

Re: Compile for debian from another system

Post by izissise »

Thanks you, but it didn't work, I really can't install a dev environnement (i can't update libc6 cause my kernel is too old (apparently), which prevent g++ installation , and i can't update the kernel cause it's a vps).

But if you know how i can make it trought another computer , i'll be glad !!
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: Compile for debian from another system

Post by compguygene »

What you are saying really doesn't make sense, even a really old VPS would let you still add dev tools, albeit older ones. What OS is your VPS running? Also, every VPS provider will have newer OS templates to let you redo your VPS with a current or at least a year old OS. Have you considered those options?
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
izissise
On Lightcycle Grid
Posts: 13
Joined: Mon Dec 24, 2012 3:52 pm

Re: Compile for debian from another system

Post by izissise »

I'm on debian6
uname -a
Linux vps 2.6.32-042stab076.8 #1 SMP Tue May 14 20:38:14 MSK 2013 x86_64 GNU/Linux
I could have the vps under debian7 but i don't feel like reinstalling all my services
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Compile for debian from another system

Post by Light »

I've ran them on Debian 6 before, and even did it using my script. I think 6 was sid then. Anyways, the point is that you should definitely be able to install everything needed there.
User avatar
theo
Round Winner
Posts: 204
Joined: Sat Feb 12, 2011 12:06 am

Re: Compile for debian from another system

Post by theo »

Sid doesn't have a number. Sid is just sid.

Only testing versions got a number. Then it's frozen and becomes stable. Another name (and number) is used for the new testing.

Please post the result of

Code: Select all

cat /etc/debian_version
cat /etc/apt/sources.list
lsb_release -a
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Compile for debian from another system

Post by Light »

theo wrote:Sid doesn't have a number. Sid is just sid.

Only testing versions got a number. Then it's frozen and becomes stable. Another name (and number) is used for the new testing.

Please post the result of

Code: Select all

cat /etc/debian_version
cat /etc/apt/sources.list
lsb_release -a
Testing & Sid I basically consider a version ahead. Especially since it was close to time of the switch to the next stable release. Stable release doesn't get many updates other than some security updates and whatnot if I remember correctly, so basically it's left unchanged. So, I just call Sid version + 1, even though some things may only be temporary and changes will be made before release.
izissise
On Lightcycle Grid
Posts: 13
Joined: Mon Dec 24, 2012 3:52 pm

Re: Compile for debian from another system

Post by izissise »

Here commands results:
cat /etc/debian_version
jessie/sid
cat /etc/apt/sources.list
deb http://ftp.debian.org/debian squeeze main contrib non-free
deb http://security.debian.org squeeze/updates main contrib non-free

deb http://ftp.us.debian.org/debian unstable main
deb-src http://ftp.us.debian.org/debian unstable main
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux unstable (sid)
Release: unstable
Codename: sid
User avatar
theo
Round Winner
Posts: 204
Joined: Sat Feb 12, 2011 12:06 am

Re: Compile for debian from another system

Post by theo »

Hm, your sources.list is either very old or screwed up.

You're mixing sqeeze (the former stable) with sid (unstable).

Did you modify the sources.list? If so when/why?

Did you use apt before that? After that? Did it work?


What's the result of:

Code: Select all

cat /etc/apt/apt.conf
cat /etc/apt/preferences.d/*
for pkg in $(dpkg -l | sed 1,5d | awk '{print $2}'); do  apt-cache policy $pkg| sed -n 6p | awk '{print $3}'; done | sort | uniq -c | sort
(last command could take a while)
izissise
On Lightcycle Grid
Posts: 13
Joined: Mon Dec 24, 2012 3:52 pm

Re: Compile for debian from another system

Post by izissise »

I don't think i modified my sources.list
I did use apt-get to install so common program (it worked).
cat /etc/apt/preferences.d/*
cat: /etc/apt/preferences.d/*: No such file or directory
cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory

121 stable/main
1 Packages
505
User avatar
theo
Round Winner
Posts: 204
Joined: Sat Feb 12, 2011 12:06 am

Re: Compile for debian from another system

Post by theo »

Well that didn't really help.

Stable may refer to different flavor at different times.

It seems that you don't have any sid packages. So I'd advise you to remove sid from your sources.list.

Try this :

Code: Select all

dpkg -l *-image*
dpkg -l *libc6*
izissise
On Lightcycle Grid
Posts: 13
Joined: Mon Dec 24, 2012 3:52 pm

Re: Compile for debian from another system

Post by izissise »

sudo dpkg -l *-image*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================================-=========================-=========================-=======================================================================================
un linux-image <none> <none> (no description available)
rc linux-image-3.10-3-amd64 3.10.11-1 amd64 Linux 3.10 for 64-bit PCs
sudo dpkg -l *libc6*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================================-=========================-=========================-=======================================================================================
ii libc6:amd64 2.17-92+b1 amd64 Embedded GNU C Library: Shared libraries
un libc6-amd64 <none> <none> (no description available)
un libc6-dev <none> <none> (no description available)
un libc6.1 <none> <none> (no description available)
Thanks for the help, but i think I'll reinstall everything and go on debian7
User avatar
theo
Round Winner
Posts: 204
Joined: Sat Feb 12, 2011 12:06 am

Re: Compile for debian from another system

Post by theo »

Well, according to the kernel and libc6 image, you're using testing (jessie):

Code: Select all

http://packages.debian.org/search?keywords=linux-image-3.10-3-amd64&searchon=names&exact=1&suite=all&section=all
http://packages.debian.org/search?keywords= libc6&searchon=names&exact=1&suite=all&section=all
So i'd try the following:

Replace your sources.list by this:

Code: Select all

deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free
Then run

Code: Select all

aptitude update; aptitude -sVy upgrade
That's allow us to see if it works without modifying anything.
izissise
On Lightcycle Grid
Posts: 13
Joined: Mon Dec 24, 2012 3:52 pm

Re: Compile for debian from another system

Post by izissise »

too late, i already reinstalled, everything
I used light's script and compile went great.

Thanks for your help guys :wink:
Post Reply