Bitcoin Forum
May 14, 2024, 09:06:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [BOUNTY] Ubuntu 12.04 Environment to compile bitcoin  (Read 1772 times)
ProfMac (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1001



View Profile
December 22, 2013, 09:24:37 PM
 #1

I want an environment to compile bytecoin (BTE) under Ubuntu 12.04 (Precise Pangolin).  This is the 1:1 bitcoin clone that was released April 1, and may or may not be an April Fools's gag.

I will have a newly installed and updated standard Ubuntu 12.04 (Precise Pangolin) virtual machine (Oracle VirtualBox), and I will test your script in that environment.  Certain posts suggest that related altcoins, especially CNC, will give a clean make in Ubuntu 11.04.

You will provide a shell script that runs as root, that makes a complete environment to compile bytecoin, and does a clean make of bytecoin. 
I will own and publish the script.  You may do anything else that you wish with it.  I have made an initial effort to do this, and there are some missing dependencies.  Some of the altcoin threads discuss these dependencies.  I would rather pay you to handle these details than duplicate your expertise. 

If you have trouble connecting to a node, you may try addnode 66.234.123.28 add in your configuration file.

for example:

#!/bin/sh
#sudo apt-get install ssh, ntp, git, <anything else that is necessary>
#other installs as may be necessary

#---
#git the source

#---
#perform the make


Please submit a bid denominated in BTC and a deadline.

I will consider making payment in USD or BTE, provided that we agree on the exchange rate.  If I pay in BTC or BTE, I will disclose the TXiD.


I try to be respectful and informed.
1715677616
Hero Member
*
Offline Offline

Posts: 1715677616

View Profile Personal Message (Offline)

Ignore
1715677616
Reply with quote  #2

1715677616
Report to moderator
1715677616
Hero Member
*
Offline Offline

Posts: 1715677616

View Profile Personal Message (Offline)

Ignore
1715677616
Reply with quote  #2

1715677616
Report to moderator
1715677616
Hero Member
*
Offline Offline

Posts: 1715677616

View Profile Personal Message (Offline)

Ignore
1715677616
Reply with quote  #2

1715677616
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715677616
Hero Member
*
Offline Offline

Posts: 1715677616

View Profile Personal Message (Offline)

Ignore
1715677616
Reply with quote  #2

1715677616
Report to moderator
1715677616
Hero Member
*
Offline Offline

Posts: 1715677616

View Profile Personal Message (Offline)

Ignore
1715677616
Reply with quote  #2

1715677616
Report to moderator
1715677616
Hero Member
*
Offline Offline

Posts: 1715677616

View Profile Personal Message (Offline)

Ignore
1715677616
Reply with quote  #2

1715677616
Report to moderator
ProfMac (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1001



View Profile
December 22, 2013, 09:27:47 PM
 #2

Oh my, my mouse button bounced.  This should compile bytecoin-qt to be accepted.  Execution of bytecoin-qt in my 12.04 virtual box is my acceptance criteria.



I try to be respectful and informed.
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
December 23, 2013, 01:03:22 AM
 #3

Hi,

Here:
Quote
apt-get install -y git-core build-essential
apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-test-dev
apt-get install -y libdb5.1++-dev libssl-dev pkg-config qt4-qmake libqt4-dev libqrencode-dev libminiupnpc-dev
git clone https://github.com/ahmedbodi/bytecoin/
cd bytecoin/
qmake bytecoin-qt.pro USE_QRCODE=1
make
cd src; make -f makefile.unix bytecoind

Some more packages may be missing if your env is different from mine. (in created the test env with debootstrap)

Elbandi
ProfMac (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1001



View Profile
December 23, 2013, 04:06:46 AM
 #4

This looks pretty good.  There is still one apparently well known problem. 

On my system, I have the directory path /etc/apt/preferences.d/.  This directory is empty.  I am assuming that this is where the file should go that is mentioned in the answer linked above.  What should that file name be, and should that fix be applied?


I try to be respectful and informed.
crunchynut
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
December 23, 2013, 04:17:49 AM
 #5

maybe "make -f makefile.unix USE_UPNP=-"

◯ ◯ ◯ ◯

>>>>>> LAUNCHED: RAPECOIN - YOU CAN'T SAY NO TO THIS COIN <<<<<<

◯ ◯ ◯ ◯
ProfMac (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1001



View Profile
December 23, 2013, 04:48:13 AM
 #6

maybe "make -f makefile.unix USE_UPNP=-"

Do you have a working binary?

I try to be respectful and informed.
ProfMac (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1001



View Profile
December 23, 2013, 06:56:09 AM
 #7

I have a successful build.
I do not have a solution to the libupnpc-dev problem.

I try to be respectful and informed.
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
December 23, 2013, 08:40:16 AM
 #8

This looks pretty good.  There is still one apparently well known problem. 

On my system, I have the directory path /etc/apt/preferences.d/.  This directory is empty.  I am assuming that this is where the file should go that is mentioned in the answer linked above.  What should that file name be, and should that fix be applied?


what is the result for this command
Code:
apt-cache policy libminiupnpc8 libminiupnpc-dev
ProfMac (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1001



View Profile
December 23, 2013, 04:23:10 PM
 #9

This looks pretty good.  There is still one apparently well known problem. 

On my system, I have the directory path /etc/apt/preferences.d/.  This directory is empty.  I am assuming that this is where the file should go that is mentioned in the answer linked above.  What should that file name be, and should that fix be applied?


what is the result for this command
Code:
apt-cache policy libminiupnpc8 libminiupnpc-dev


That's pretty handy.  I really need to read the docs again.


Code:
avalon@avalon-VirtualBox:~/bytecoin$ apt-cache policy libminiupnpc8 libminiupnpc-dev
libminiupnpc8:
  Installed: 1.6-precise2
  Candidate: 1.6-precise2
  Version table:
 *** 1.6-precise2 0
    500 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu/ precise/main amd64 Packages
    100 /var/lib/dpkg/status
  1.6-3ubuntu1 0
    500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
libminiupnpc-dev:
  Installed: (none)
  Candidate: 1.6-3ubuntu1
  Package pin: 1.6-3ubuntu1
  Version table:
  1.6-3ubuntu1 100
    500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

I try to be respectful and informed.
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
December 23, 2013, 04:50:32 PM
 #10

Ah, you use 3thparty repo, which use different name for upnp.

try install with this command:
Code:
apt-get install -y libminiupnpc8-dev libminiupnpc8

Or if you want to install the official package:
Code:
apt-get install -y libminiupnpc-dev=1.6-3ubuntu1 libminiupnpc8=1.6-3ubuntu1
ProfMac (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1001



View Profile
December 23, 2013, 06:35:50 PM
 #11

I now have made working binaries of bytecoin-qt and bytecoind, and have a stream of consciousness .bash_history file.

Thanks


I try to be respectful and informed.
ProfMac (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1001



View Profile
December 24, 2013, 04:00:28 AM
 #12

I created a new virtual machine in Oracle VirtualBox.  I set the memory too 1024, and set the network to bridged, not NAT.  I started the machine, and placed the Ubuntu Precise Pangolin (12.04) distribution CD into the reader, and booted from it.

I did a standard install.  I set my time zone, keyboard, and not much else.

Then I executed
Code:
>sudo ls
so that the password would be entered, and I copied and pasted the following commands.  I ended up with a working copy of bitcoind and bitcoin-qt.  I have not actually tried to run this as a shell script.

I usually enter my public ssh key, restrict logins to ssh, and some other stuff that I don't remember right now:  I like egg-nog.

If you have a nice script to set up the firewall, lock down logins, and generally tighten security, please feel free to post it.


Code:
#!/bin/sh
# ----------------
# upgrade the standard Ubuntu Precise Pangolin (12.04) distribution,
# prepare to build bytecoin
# build bytecoin
# place on desktop
# ----------------
# before executing, perform sudo ls

cd ~
# ---- comment out the next 3 lines if you don't have an apt proxy. 
echo "Acquire::http { Proxy \"http://yourproxy.local:3142\"; };"  > proxy.temp
sudo chown root:root proxy.temp
sudo mv proxy.temp /etc/apt/apt.conf.d/01proxy
# ----
sudo apt-get update; sudo apt-get -y upgrade
sudo apt-get install -y python python-dev ntp git \
gparted openssh-server \
traceroute \
libdb5.1++-dev libssl-dev pkg-config qt4-qmake libqt4-dev \
libqrencode-dev \
libboost-system-dev libboost-filesystem-dev libboost-program-options-dev \
libboost-thread-dev libboost-test-dev \
git-core build-essential \
libminiupnpc8-dev libminiupnpc8=1.6-3ubuntu1 libminiupnpc-dev=1.6-3ubuntu1   
# This last line ^ fixes a pesky problem.
git clone https://github.com/ahmedbodi/bytecoin
cd ~/bytecoin
qmake bytecoin-qt.pro USE_QRCODE=1
make
cd src; make -f makefile.unix bytecoind

# ----
# set up some directories and links.
# ----
ln ~/bytecoin/bytecoin-qt ~/Desktop/bytecoin-qt
ln ~/bytecoin/src/bytecoind ~/Desktop/bytecoind
mkdir -p ~/.bytecoin
cp ~/bytecoin/bytecoin.conf ~/.bytecoin/.
echo "logtimestamps=1" >> ~/.bytecoin/bytecoin.conf

I try to be respectful and informed.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!