Author Topic: Building from source  (Read 8575 times)

ccoudsi

  • Guru
  • ****
  • Posts: 244
    • View Profile
Building from source
« on: March 08, 2010, 05:09:50 am »
I'm following this link to build my development environment http://wiki.linuxmce.org/index.php/Building_LinuxMCE_0810
I was able to run the preparation steps one by one then I run "./build.sh" and I can see all packages created/moved to "/var/www"
after installing apache2 on the builder machine, I moved to the test machine and I did "pre-install-from-repo.sh" per "Installing 0810"
and I modifed my "sources.list" to use my "deb http://192.168.0.35/ ./" instead of "deb http://deb.linuxmce.org/ubuntu/ interpid beta2"
when I run "apt-get update" on the test machine I get the following error " W: failed to fetch http://192.168.0.35/ ./Packages.gz 404 Not Found"
I can see "Packages.gz" on the builder machine under "/var/www"
Any ideas???
Cheers |[BEER]
Charlie,

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Building from source
« Reply #1 on: March 13, 2010, 07:08:36 pm »
IMHO it isn't related with LMCE. Have a look that howto. Maybe it'll help you.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

ccoudsi

  • Guru
  • ****
  • Posts: 244
    • View Profile
Re: Building from source
« Reply #2 on: March 13, 2010, 08:55:40 pm »
Can you please check my attached  "/var/www" & test machine "sources.list" contents if it looks OK not missing anything???

Here's the output when I run the "apt-get update" on the test machine

Code: [Select]
root@ubuntu:/home/ccoudsi# apt-get update
Ign http://192.168.0.35 ./ Release.gpg  
Ign http://192.168.0.35 ./ Translation-en_US
Ign http://192.168.0.35 ./ Release                                                                                                    
Ign http://192.168.0.35 ./ Packages                                                                                                  
Err http://192.168.0.35 ./ Packages                                                                                                  
  404 Not Found                                                                                                                      
Ign file: ./ Release.gpg                                                                                                              
Ign file: ./ Translation-en_US                                                                                                        
Ign file: ./ Release                                                                                                                  
Ign file: ./ Packages                                                                                                                
Ign http://debian.slimdevices.com stable Release.gpg                                                                                  
Ign http://debian.slimdevices.com stable/main Translation-en_US                                                                      
Get:1 http://debian.slimdevices.com stable Release [1645B]                                                                            
Ign http://debian.slimdevices.com stable/main Packages                                                                                
Hit http://debian.slimdevices.com stable/main Packages                                                                                
Get:2 http://security.ubuntu.com intrepid-security Release.gpg [189B]                                                                
Ign http://security.ubuntu.com intrepid-security/main Translation-en_US                                                              
Hit http://packages.medibuntu.org intrepid Release.gpg                                                                                
Ign http://packages.medibuntu.org intrepid/free Translation-en_US                                                                    
Ign http://packages.medibuntu.org intrepid/non-free Translation-en_US                                                                
Hit http://us.archive.ubuntu.com intrepid Release.gpg                                                                                
Ign http://us.archive.ubuntu.com intrepid/main Translation-en_US                                                                      
Ign http://security.ubuntu.com intrepid-security/restricted Translation-en_US                                                        
Ign http://security.ubuntu.com intrepid-security/universe Translation-en_US                                                          
Ign http://security.ubuntu.com intrepid-security/multiverse Translation-en_US                                                        
Get:3 http://security.ubuntu.com intrepid-security Release [51.2kB]                                                                  
Hit http://packages.medibuntu.org intrepid Release                                                                                    
Ign http://us.archive.ubuntu.com intrepid/restricted Translation-en_US                                                                
Ign http://us.archive.ubuntu.com intrepid/universe Translation-en_US                                                                  
Ign http://us.archive.ubuntu.com intrepid/multiverse Translation-en_US                                                                
Get:4 http://us.archive.ubuntu.com intrepid-updates Release.gpg [189B]                                                                
Ign http://us.archive.ubuntu.com intrepid-updates/main Translation-en_US                                                              
Ign http://us.archive.ubuntu.com intrepid-updates/restricted Translation-en_US                                                        
Ign http://us.archive.ubuntu.com intrepid-updates/universe Translation-en_US                                                          
Ign http://us.archive.ubuntu.com intrepid-updates/multiverse Translation-en_US                                                        
Get:5 http://www.avenard.org intrepid Release.gpg [189B]                                                                              
Ign http://www.avenard.org intrepid/release Translation-en_US                                                                        
Hit http://us.archive.ubuntu.com intrepid Release                                                                                    
Get:6 http://us.archive.ubuntu.com intrepid-updates Release [51.2kB]                                                                  
Get:7 http://www.avenard.org intrepid Release [14.3kB]                                                                                
Hit http://packages.medibuntu.org intrepid/free Packages                                                                              
Hit http://packages.medibuntu.org intrepid/non-free Packages                                                                          
Get:8 http://www.avenard.org intrepid/release Packages [176kB]                                                                        
Get:9 http://security.ubuntu.com intrepid-security/main Packages [187kB]                                                              
Hit http://us.archive.ubuntu.com intrepid/main Packages                                                                              
Hit http://us.archive.ubuntu.com intrepid/restricted Packages                                                                        
Hit http://us.archive.ubuntu.com intrepid/main Sources                                                                                
Hit http://us.archive.ubuntu.com intrepid/restricted Sources                                                                          
Hit http://us.archive.ubuntu.com intrepid/universe Packages                                                                          
Hit http://us.archive.ubuntu.com intrepid/universe Sources                                                                            
Hit http://us.archive.ubuntu.com intrepid/multiverse Packages
Hit http://us.archive.ubuntu.com intrepid/multiverse Sources
Get:10 http://us.archive.ubuntu.com intrepid-updates/main Packages [385kB]
Get:11 http://security.ubuntu.com intrepid-security/restricted Packages [3877B]
Get:12 http://security.ubuntu.com intrepid-security/main Sources [49.0kB]
Get:13 http://security.ubuntu.com intrepid-security/restricted Sources [1146B]
Get:14 http://security.ubuntu.com intrepid-security/universe Packages [84.1kB]
Get:15 http://security.ubuntu.com intrepid-security/universe Sources [21.2kB]
Get:16 http://security.ubuntu.com intrepid-security/multiverse Packages [6730B]
Get:17 http://security.ubuntu.com intrepid-security/multiverse Sources [1858B]
Get:18 http://us.archive.ubuntu.com intrepid-updates/restricted Packages [8460B]
Get:19 http://us.archive.ubuntu.com intrepid-updates/main Sources [122kB]
Get:20 http://us.archive.ubuntu.com intrepid-updates/restricted Sources [2482B]
Get:21 http://us.archive.ubuntu.com intrepid-updates/universe Packages [139kB]
Get:22 http://us.archive.ubuntu.com intrepid-updates/universe Sources [37.1kB]
Get:23 http://us.archive.ubuntu.com intrepid-updates/multiverse Packages [14.8kB]
Get:24 http://us.archive.ubuntu.com intrepid-updates/multiverse Sources [5055B]
Fetched 1363kB in 4s (300kB/s)
W: Failed to fetch http://192.168.0.35/./Packages.gz  404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.
root@ubuntu:/home/ccoudsi# ping 192.168.0.35
PING 192.168.0.35 (192.168.0.35) 56(84) bytes of data.
64 bytes from 192.168.0.35: icmp_seq=1 ttl=64 time=1.17 ms
64 bytes from 192.168.0.35: icmp_seq=2 ttl=64 time=0.503 ms
64 bytes from 192.168.0.35: icmp_seq=3 ttl=64 time=0.565 ms
64 bytes from 192.168.0.35: icmp_seq=4 ttl=64 time=0.441 ms
64 bytes from 192.168.0.35: icmp_seq=5 ttl=64 time=0.414 ms
^C
--- 192.168.0.35 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4038ms
rtt min/avg/max/mdev = 0.414/0.619/1.175/0.283 ms
root@ubuntu:/home/ccoudsi#
« Last Edit: March 13, 2010, 09:58:19 pm by ccoudsi »
Cheers |[BEER]
Charlie,

LegoGT

  • Regular Poster
  • **
  • Posts: 29
    • View Profile
    • Medium Rare Brain
Re: Building from source
« Reply #3 on: March 14, 2010, 05:11:25 pm »
Did you do these steps from the wiki?

Code: [Select]
pushd /var/www
wget http://deb.linuxmce.org/ubuntu/dists/intrepid/lmce-alpha2/binary-all/libft-perl_1.0_all.deb
wget http://deb.linuxmce.org/ubuntu/dists/intrepid/lmce-alpha-latest/binary-all/mail-transport-agent_1.0_all.deb
dpkg-scanpackages . >Packages
gzip -c Packages > Packages.gz
popd
A brain dump of my neverending projects: http://MediumRareBrain.com

ccoudsi

  • Guru
  • ****
  • Posts: 244
    • View Profile
Re: Building from source
« Reply #4 on: March 14, 2010, 06:33:16 pm »
LegoGT,
Yes, I did that same results.

Now I created a VM with only Kubuntu 810 and I skipped the section about "Setting up a chroot environment" and run the following :
Code: [Select]
1)
sudo su -
apt-get update

2)
apt-get install subversion
svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/src/Ubuntu_Helpers_NoHardcode

3)
cd Ubuntu_Helpers_NoHardcode
./install.sh
cd /usr/local/lmce-build

4)
cat >/etc/lmce-build/builder.custom.conf <<EOF

# Uncomment to avoid DVD build step[s]
do_not_build_sl_dvd="yes"
do_not_build_dl_dvd="yes"


# Uncomment to create fake win32 binaries
win32_create_fake="yes"

# Point to the development sqlCVS server for 0810

sqlcvs_host="schema.linuxmce.org"
EOF

5)
cd /usr/local/lmce-build

6)
./prepare.sh

I'm getting the following error
Code: [Select]
Fetched 275MB in 8min49s (520kB/s)
/usr/local/lmce-build
*** Done: /usr/local/lmce-build/prepare-scripts/cd2-prepare.sh

********************************************************************************
*** Running: /usr/local/lmce-build/prepare-scripts/install-build-pkgs.sh
********************************************************************************
Reading package lists...
Building dependency tree...
Reading state information...
dmsetup is already the newest version.
E: Couldn't find package dvb-s2api-liplianin-headers
root@ubuntu:/usr/local/lmce-build#


Cheers |[BEER]
Charlie,

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: Building from source
« Reply #5 on: May 07, 2010, 04:37:47 am »
Anybody anything on this last error, i got it too.

Richard

dcubox1

  • Veteran
  • ***
  • Posts: 130
    • View Profile
Re: Building from source
« Reply #6 on: May 10, 2010, 05:40:33 pm »
Im lookin to build from source however I dont want to ruin my current live hybrid setup.
Can I build my dev environment in a VM setup? or what is the best method?
If VM is an option anyone know where I can download a kubuntu VM setup?

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Building from source
« Reply #7 on: May 10, 2010, 07:36:17 pm »
Sure you can run build env under VMWare or under VirtualBox which is free. Just install it and create a new Ubuntu virtual machine. Then install Kubuntu nad setup dev env as it's described in the wiki. BTW, you can have on your core and use chroot env to isolate it.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

dcubox1

  • Veteran
  • ***
  • Posts: 130
    • View Profile
Re: Building from source
« Reply #8 on: May 11, 2010, 03:47:59 pm »
Im giving the VirtualBox setup a go.
I have just installed Kubuntu 810 so im just wondering are the instructions on
http://wiki.linuxmce.com/index.php/Building_LinuxMCE_0810 still relevant? minus the chrooting as im just going to use this as a dev environment?

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: Building from source
« Reply #9 on: May 13, 2010, 07:42:00 am »
yes still good, but...... there is a script floating around that possy made to make a chroot environment, was easy to use.
i just used a clean ubuntu install on virtualbox and than made a chroot build on it.

BTW, make sure you make your hard drive big enough, it probably needs to be 60Gb+ or even 80Gb so, i ran out of space on my 40Gb and it's difficult to expand the hard drive space on virtualbox.

On a side note to save some space, don't make the cd1 and cd2 iso's

I build mine in a virtualbox and it's good to go now, even got the apache server working going out.

Now i'm trying to make another vm to test the build.

Richard

MarcoZan

  • Veteran
  • ***
  • Posts: 148
    • View Profile
Re: Building from source
« Reply #10 on: May 13, 2010, 08:20:41 am »
I'm not a virtualization guru, so my question may sound quite stupid.

Currently I have LMCE 7.10 working, and would like to give 8.10 a try. Do you think it is possible to set up a virtual machine with 8.10 on the same box ? Is there anyone that already did it?
I'm asking this because my core is actually the only box with enough disc space and horse power that I have. I guess that the problem may be on the network side, as both LMCEs would claim to be in the 192.168.80.0 network and try to be the DHCP server for that.
Is there any hint/setting for VMware/Virtualbox to prevent such a network mess?

Thanks and regards

Marco

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Building from source
« Reply #11 on: May 13, 2010, 10:29:52 am »
Not sure that using VMWare is a good idea in  your case. I have dual boot core/hybrid with 0710 and 0810. So, I can test 0810. But it something wrong with it (it happens often ;)) I just boot 0710.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

dcubox1

  • Veteran
  • ***
  • Posts: 130
    • View Profile
Re: Building from source
« Reply #12 on: May 13, 2010, 11:16:56 am »
yes still good, but...... there is a script floating around that possy made to make a chroot environment, was easy to use.
i just used a clean ubuntu install on virtualbox and than made a chroot build on it.

BTW, make sure you make your hard drive big enough, it probably needs to be 60Gb+ or even 80Gb so, i ran out of space on my 40Gb and it's difficult to expand the hard drive space on virtualbox.

On a side note to save some space, don't make the cd1 and cd2 iso's

I build mine in a virtualbox and it's good to go now, even got the apache server working going out.

Now i'm trying to make another vm to test the build.

Richard

Why do I need 60+GB of space all I want to do is setup an environment where I can fool around with the code and database!?
Would less then 10GB not suffice?

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Building from source
« Reply #13 on: May 13, 2010, 11:35:07 am »
Quote
Why do I need 60+GB of space all I want to do is setup an environment where I can fool around with the code and database!?
Would less then 10GB not suffice?

I have 40Gb for Virtual Box LinuxMCE installation. To just run and test LinuxMCE is enough 10GB. But to setup env for building LinuxMCE it's not. The full checkout of the sources is about 5GB or more if I remember correctly.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

George_Ts

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Building from source
« Reply #14 on: May 13, 2010, 06:36:27 pm »
Do remember that VBox has dynamically-growing disks