Bitcoin Forum
November 08, 2024, 05:40:29 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: make gmc make: *** No rule to make target 'gmc'. Stop.  (Read 309 times)
bapparabi (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
October 03, 2017, 09:56:20 AM
 #1

i am getting his error when try to apps make gmc

Code:
make gmc
make: *** No rule to make target 'gmc'.  Stop.

i am trying to install musiccoin demon using this https://github.com/Musicoin/go-musicoin

can you guy tell me what s iisue and how to solve it

hashtobewild
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 04, 2017, 02:19:05 PM
 #2

i am getting his error when try to apps make gmc

Code:
make gmc
make: *** No rule to make target 'gmc'.  Stop.

i am trying to install musiccoin demon using this https://github.com/Musicoin/go-musicoin

can you guy tell me what s iisue and how to solve it



pulling the code, will check and see if I can help Smiley. You may want to post coin specific questions in their respective threads.
bapparabi (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
October 04, 2017, 02:22:01 PM
 #3

another new problem started . old one solved because it has wrong go path

Code:
sudo service nginx reload
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
root@localhost:/etc/nginx/sites-available#
root@localhost:/etc/nginx/sites-available# nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/default:93
nginx: configuration file /etc/nginx/nginx.conf test failed
root@localhost:/etc/nginx/sites-available#

hashtobewild
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 04, 2017, 02:30:27 PM
 #4

i am getting his error when try to apps make gmc

Code:
make gmc
make: *** No rule to make target 'gmc'.  Stop.

i am trying to install musiccoin demon using this https://github.com/Musicoin/go-musicoin

can you guy tell me what s iisue and how to solve it



pulling the code, will check and see if I can help Smiley. You may want to post coin specific questions in their respective threads.

it seems to work fine for me. What platform are you building on?

In Ubuntu 17.04:
make sure you have the dependencies installed:
Code:
sudo apt-get install golang

(that was all I needed, but maybe there is something else?)

Pull the code:
Code:
git clone https://github.com/Musicoin/go-musicoin.git

Change directory to the pulled code:
Code:
cd go-musicoin

Issue the make command as specified in the git README:
Code:
make gmc

You should see something like this:
Code:
build/env.sh go run build/ci.go install ./cmd/gmc
>>> /usr/lib/go-1.7/bin/go install -ldflags -X main.gitCommit=8b31cac15d4b5693c2367a8d6fe5275af107aadd -v ./cmd/gmc
github.com/ethereum/go-ethereum/common
github.com/ethereum/go-ethereum/crypto/randentropy
github.com/ethereum/go-ethereum/crypto/sha3
github.com/ethereum/go-ethereum/rlp
golang.org/x/crypto/ripemd160
github.com/ethereum/go-ethereum/logger/glog
github.com/ethereum/go-ethereum/crypto/secp256k1
github.com/hashicorp/golang-lru/simplelru
github.com/hashicorp/golang-lru
github.com/rcrowley/go-metrics
github.com/syndtr/goleveldb/leveldb/util
github.com/syndtr/goleveldb/leveldb/comparer
github.com/ethereum/go-ethereum/logger
github.com/ethereum/go-ethereum/params
github.com/golang/snappy
github.com/syndtr/goleveldb/leveldb/cache
github.com/syndtr/goleveldb/leveldb/storage
github.com/syndtr/goleveldb/leveldb/filter
gopkg.in/karalabe/cookiejar.v2/collections/prque
github.com/pborman/uuid
github.com/rjeczalik/notify
github.com/syndtr/goleveldb/leveldb/opt
golang.org/x/crypto/pbkdf2
golang.org/x/crypto/scrypt
github.com/ethereum/go-ethereum/event
gopkg.in/fatih/set.v0
github.com/rs/cors
github.com/syndtr/goleveldb/leveldb/errors
github.com/syndtr/goleveldb/leveldb/iterator
github.com/syndtr/goleveldb/leveldb/journal
golang.org/x/net/context
github.com/syndtr/goleveldb/leveldb/memdb
github.com/syndtr/goleveldb/leveldb/table
github.com/rcrowley/go-metrics/exp
golang.org/x/net/websocket
gopkg.in/urfave/cli.v1
github.com/huin/goupnp/httpu
github.com/ethereum/go-ethereum/metrics
github.com/huin/goupnp/scpd
github.com/huin/goupnp/soap
github.com/huin/goupnp/ssdp
github.com/syndtr/goleveldb/leveldb
github.com/ethereum/go-ethereum/rpc
golang.org/x/net/html/atom
golang.org/x/net/html
golang.org/x/text/encoding/internal/identifier
golang.org/x/text/transform
github.com/ethereum/go-ethereum/internal/debug
golang.org/x/text/encoding
golang.org/x/text/encoding/internal
golang.org/x/text/internal/utf8internal
golang.org/x/text/encoding/charmap
golang.org/x/text/encoding/japanese
golang.org/x/text/encoding/korean
golang.org/x/text/encoding/simplifiedchinese
github.com/ethereum/go-ethereum/ethdb
golang.org/x/text/encoding/traditionalchinese
golang.org/x/text/runes
golang.org/x/text/internal/tag
golang.org/x/text/language
golang.org/x/text/encoding/unicode
github.com/jackpal/gateway
golang.org/x/tools/go/ast/astutil
github.com/ethereum/go-ethereum/event/filter
github.com/jackpal/go-nat-pmp
github.com/mattn/go-colorable
github.com/mattn/go-isatty
github.com/robertkrimen/otto/file
github.com/robertkrimen/otto/token
github.com/fatih/color
github.com/robertkrimen/otto/dbg
github.com/robertkrimen/otto/ast
github.com/robertkrimen/otto/registry
golang.org/x/tools/imports
github.com/ethereum/go-ethereum/internal/web3ext
github.com/peterh/liner
github.com/robertkrimen/otto/parser
github.com/mattn/go-runewidth
github.com/nsf/termbox-go
github.com/gizak/termui
golang.org/x/text/encoding/htmlindex
golang.org/x/net/html/charset
github.com/huin/goupnp
github.com/robertkrimen/otto
github.com/huin/goupnp/dcps/internetgateway1
github.com/huin/goupnp/dcps/internetgateway2
github.com/ethereum/go-ethereum/p2p/nat
github.com/ethereum/go-ethereum/crypto/ecies
github.com/ethereum/go-ethereum/crypto
github.com/ethereum/go-ethereum/core/vm
github.com/ethereum/go-ethereum/trie
github.com/ethereum/go-ethereum/accounts
github.com/ethereum/go-ethereum/common/compiler
github.com/ethereum/go-ethereum/common/httpclient
github.com/ethereum/go-ethereum/common/registrar
github.com/ethereum/go-ethereum/p2p/discover
github.com/ethereum/go-ethereum/accounts/abi
github.com/ethereum/go-ethereum/p2p
github.com/ethereum/go-ethereum/core/types
github.com/ethereum/go-ethereum/core/state
github.com/ethereum/go-ethereum/internal/jsre
github.com/ethereum/go-ethereum/console
github.com/ethereum/go-ethereum/pow
github.com/ethereum/go-ethereum/accounts/abi/bind
github.com/ethereum/go-ethereum/node
github.com/ethereum/go-ethereum/whisper
github.com/ethereum/go-ethereum/eth/downloader
github.com/ethereum/ethash
github.com/ethereum/go-ethereum/core
github.com/ethereum/go-ethereum/common/registrar/ethreg
github.com/ethereum/go-ethereum/eth/fetcher
github.com/ethereum/go-ethereum/eth/filters
github.com/ethereum/go-ethereum/miner
github.com/ethereum/go-ethereum/eth
github.com/ethereum/go-ethereum/release
github.com/ethereum/go-ethereum/cmd/utils
github.com/ethereum/go-ethereum/cmd/gmc
Done building.
Run "build/bin/gmc" to launch musicoin.
hashtobewild
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 04, 2017, 02:34:52 PM
 #5

another new problem started . old one solved because it has wrong go path

Code:
sudo service nginx reload
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
root@localhost:/etc/nginx/sites-available#
root@localhost:/etc/nginx/sites-available# nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/default:93
nginx: configuration file /etc/nginx/nginx.conf test failed
root@localhost:/etc/nginx/sites-available#



Your nginx config is broken... around line 93  in file: /etc/nginx/sites-enabled/default .

If you send the content of that file I'll take a look. To get the content of the file:
Code:
cat /etc/nginx/sites-enabled/default

bapparabi (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
October 04, 2017, 02:38:06 PM
 #6

hi hashtobewild i mage to solve that issue already sir .. now problem is something else in ngnix issue do you know why i am getting this issue and how to solve it ..here is code of default

Code:
root@localhost:/etc/nginx/sites-available# cat /etc/nginx/sites-enabled/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

# Default server configuration
#
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        # SSL configuration
        #
        # listen 443 ssl default_server;
        # listen [::]:443 ssl default_server;
        #
        # Note: You should disable gzip for SSL traffic.
        # See: https://bugs.debian.org/773332
        #
        # Read up on ssl_ciphers to ensure a secure configuration.
        # See: https://bugs.debian.org/765782
        #
        # Self signed certs generated by the ssl-cert package
        # Don't use them in a production server!
        #
        # include snippets/snakeoil.conf;

        root /var/www/html;

        # Add index.php to the list if you are using PHP
        index index.html index.htm index.nginx-debian.html;

        server_name _;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #       include snippets/fastcgi-php.conf;
        #
        #       # With php7.0-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        #       # With php7.0-fpm:
        #       fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #       deny all;
        #}
}


# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
#server {
#       listen 80;
#       listen [::]:80;
#
#       server_name example.com;
#
#       root /var/www/example.com;
#       index index.html;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}
upstream api {

server drowningpool.net:8080;

}
location /api {

proxy_pass http://api;

}
hashtobewild
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 04, 2017, 03:08:45 PM
 #7

hi hashtobewild i mage to solve that issue already sir .. now problem is something else in ngnix issue do you know why i am getting this issue and how to solve it ..here is code of default

Code:
root@localhost:/etc/nginx/sites-available# cat /etc/nginx/sites-enabled/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

# Default server configuration
#
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        # SSL configuration
        #
        # listen 443 ssl default_server;
        # listen [::]:443 ssl default_server;
        #
        # Note: You should disable gzip for SSL traffic.
        # See: https://bugs.debian.org/773332
        #
        # Read up on ssl_ciphers to ensure a secure configuration.
        # See: https://bugs.debian.org/765782
        #
        # Self signed certs generated by the ssl-cert package
        # Don't use them in a production server!
        #
        # include snippets/snakeoil.conf;

        root /var/www/html;

        # Add index.php to the list if you are using PHP
        index index.html index.htm index.nginx-debian.html;

        server_name _;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #       include snippets/fastcgi-php.conf;
        #
        #       # With php7.0-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        #       # With php7.0-fpm:
        #       fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #       deny all;
        #}
}


# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
#server {
#       listen 80;
#       listen [::]:80;
#
#       server_name example.com;
#
#       root /var/www/example.com;
#       index index.html;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}
upstream api {

server drowningpool.net:8080;

}
location /api {

proxy_pass http://api;

}

That last part looks fishy... can't test it, but on a thumb-suck it should look something like this:

Code:
upstream api 
{
server drowningpool.net:8080;
}

server
{
location /api
{
proxy_pass http://api;
}
}

You can see a fairly good example here:
http://nginx.org/en/docs/http/ngx_http_upstream_module.html
bapparabi (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
October 04, 2017, 03:14:37 PM
 #8

now no error all working thing but problem is now that

http://www.drowningpool.net/

don't show the pool site showing default ?? do you have nay idea what is the issue may be
hashtobewild
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 04, 2017, 03:32:14 PM
 #9

now no error all working thing but problem is now that

http://www.drowningpool.net/

don't show the pool site showing default ?? do you have nay idea what is the issue may be

It is a bit tricky to debug (not known file locations and setup etc.), but generally:

You are probably going to want to merge the two server sections into one.
Then change this line:
Code:
root /var/www/html;

to point to the location of the files for the site.
bapparabi (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
October 04, 2017, 03:34:24 PM
 #10

this need to be done to make it work in that default file


Configure nginx to serve API on /api subdirectory. Configure nginx to serve www/dist as static website.
Serving API using nginx

Create an upstream for API:

Code:
upstream api {
    server 127.0.0.1:8080;
}

and add this setting after location /:

Code:
location /api {
    proxy_pass http://api;
}

can you tell me what actual setting should i have to use in the default ngnix file
hashtobewild
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 04, 2017, 05:42:28 PM
 #11

this need to be done to make it work in that default file


Configure nginx to serve API on /api subdirectory. Configure nginx to serve www/dist as static website.
Serving API using nginx

Create an upstream for API:

Code:
upstream api {
    server 127.0.0.1:8080;
}

and add this setting after location /:

Code:
location /api {
    proxy_pass http://api;
}

can you tell me what actual setting should i have to use in the default ngnix file


Sure, I can take a swing:

Replace the contents of your default file with this:

Code:
upstream api 
{
server drowningpool.net:8080;
}


server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/dist; # <- This should be the absolute path to the files
        index index.html index.htm index.nginx-debian.html;

        server_name _;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }

location /api
{
proxy_pass http://api;
}
}
bapparabi (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
October 04, 2017, 05:55:51 PM
 #12

this need to be done to make it work in that default file


Configure nginx to serve API on /api subdirectory. Configure nginx to serve www/dist as static website.
Serving API using nginx

Create an upstream for API:

Code:
upstream api {
    server 127.0.0.1:8080;
}

and add this setting after location /:

Code:
location /api {
    proxy_pass http://api;
}

can you tell me what actual setting should i have to use in the default ngnix file


Sure, I can take a swing:

Replace the contents of your default file with this:

Code:
upstream api 
{
server drowningpool.net:8080;
}


server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/dist; # <- This should be the absolute path to the files
        index index.html index.htm index.nginx-debian.html;

        server_name _;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }

location /api
{
proxy_pass http://api;
}
}

thanks you so much finally mange to make this work ..all thanks for yuor for your help
hashtobewild
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 04, 2017, 06:09:07 PM
 #13

Pleasure Smiley Glad I could help!
bapparabi (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
October 04, 2017, 06:14:09 PM
 #14

Pleasure Smiley Glad I could help!

do you know for music coin what configuration should the will will have

Code:
{
  // Set to the number of CPU cores of your server
  "threads": 2,
  // Prefix for keys in redis store
  "coin": "eth",
  // Give unique name to each instance
  "name": "main",

  "proxy": {
    "enabled": true,

    // Bind HTTP mining endpoint to this IP:PORT
    "listen": "0.0.0.0:8888",

    // Allow only this header and body size of HTTP request from miners
    "limitHeadersSize": 1024,
    "limitBodySize": 256,

    /* Set to true if you are behind CloudFlare (not recommended) or behind http-reverse
      proxy to enable IP detection from X-Forwarded-For header.
      Advanced users only. It's tricky to make it right and secure.
    */
    "behindReverseProxy": false,

    // Stratum mining endpoint
    "stratum": {
      "enabled": true,
      // Bind stratum mining socket to this IP:PORT
      "listen": "0.0.0.0:8008",
      "timeout": "120s",
      "maxConn": 8192
    },

    // Try to get new job from geth in this interval
    "blockRefreshInterval": "120ms",
    "stateUpdateInterval": "3s",
    // Require this share difficulty from miners
    "difficulty": 2000000000,

    /* Reply error to miner instead of job if redis is unavailable.
      Should save electricity to miners if pool is sick and they didn't set up failovers.
    */
    "healthCheck": true,
    // Mark pool sick after this number of redis failures.
    "maxFails": 100,
    // TTL for workers stats, usually should be equal to large hashrate window from API section
    "hashrateExpiration": "3h",

    "policy": {
      "workers": 8,
      "resetInterval": "60m",
      "refreshInterval": "1m",

      "banning": {
        "enabled": false,
        /* Name of ipset for banning.
        Check http://ipset.netfilter.org/ documentation.
        */
        "ipset": "blacklist",
        // Remove ban after this amount of time
        "timeout": 1800,
        // Percent of invalid shares from all shares to ban miner
        "invalidPercent": 30,
        // Check after after miner submitted this number of shares
        "checkThreshold": 30,
        // Bad miner after this number of malformed requests
        "malformedLimit": 5
      },
      // Connection rate limit
      "limits": {
        "enabled": false,
        // Number of initial connections
        "limit": 30,
        "grace": "5m",
        // Increase allowed number of connections on each valid share
        "limitJump": 10
      }
    }
  },

  // Provides JSON data for frontend which is static website
  "api": {
    "enabled": true,
    "listen": "0.0.0.0:8080",
    // Collect miners stats (hashrate, ...) in this interval
    "statsCollectInterval": "5s",
    // Purge stale stats interval
    "purgeInterval": "10m",
    // Fast hashrate estimation window for each miner from it's shares
    "hashrateWindow": "30m",
    // Long and precise hashrate from shares, 3h is cool, keep it
    "hashrateLargeWindow": "3h",
    // Collect stats for shares/diff ratio for this number of blocks
    "luckWindow": [64, 128, 256],
    // Max number of payments to display in frontend
    "payments": 50,
    // Max numbers of blocks to display in frontend
    "blocks": 50,

    /* If you are running API node on a different server where this module
      is reading data from redis writeable slave, you must run an api instance with this option enabled in order to purge hashrate stats from main redis node.
      Only redis writeable slave will work properly if you are distributing using redis slaves.
      Very advanced. Usually all modules should share same redis instance.
    */
    "purgeOnly": false
  },

  // Check health of each geth node in this interval
  "upstreamCheckInterval": "5s",

  /* List of geth nodes to poll for new jobs. Pool will try to get work from
    first alive one and check in background for failed to back up.
    Current block template of the pool is always cached in RAM indeed.
  */
  "upstream": [
    {
      "name": "main",
      "url": "http://127.0.0.1:8545",
      "timeout": "10s"
    },
    {
      "name": "backup",
      "url": "http://127.0.0.2:8545",
      "timeout": "10s"
    }
  ],

  // This is standard redis connection options
  "redis": {
    // Where your redis instance is listening for commands
    "endpoint": "127.0.0.1:6379",
    "poolSize": 10,
    "database": 0,
    "password": ""
  },

  // This module periodically remits ether to miners
  "unlocker": {
    "enabled": false,
    // Pool fee percentage
    "poolFee": 1.0,
    // Pool fees beneficiary address (leave it blank to disable fee withdrawals)
    "poolFeeAddress": "",
    // Donate 10% from pool fees to developers
    "donate": true,
    // Unlock only if this number of blocks mined back
    "depth": 120,
    // Simply don't touch this option
    "immatureDepth": 20,
    // Keep mined transaction fees as pool fees
    "keepTxFees": false,
    // Run unlocker in this interval
    "interval": "10m",
    // Geth instance node rpc endpoint for unlocking blocks
    "daemon": "http://127.0.0.1:8545",
    // Rise error if can't reach geth in this amount of time
    "timeout": "10s"
  },

  // Pay out miners using this module
  "payouts": {
    "enabled": false,
    // Require minimum number of peers on node
    "requirePeers": 25,
    // Run payouts in this interval
    "interval": "12h",
    // Geth instance node rpc endpoint for payouts processing
    "daemon": "http://127.0.0.1:8545",
    // Rise error if can't reach geth in this amount of time
    "timeout": "10s",
    // Address with pool balance
    "address": "0x0",
    // Let geth to determine gas and gasPrice
    "autoGas": true,
    // Gas amount and price for payout tx (advanced users only)
    "gas": "21000",
    "gasPrice": "50000000000",
    // Send payment only if miner's balance is >= 0.5 Ether
    "threshold": 500000000,
    // Perform BGSAVE on Redis after successful payouts session
    "bgsave": false
  }
}
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!