How-To Gitlab

Dyskusja w 'Oh'Linux? Software hacking' rozpoczęta przez użytkownika Silas Mariusz, 3 Kwiecień 2015.

Ładowanie...
Tagi:
  1. Silas Mariusz
    Offline

    Silas Mariusz SysOp Administrator

    Dołączył:
    5 Kwiecień 2008
    Wiadomości:
    6 033
    Miejscowość:
    Nowy Sącz
    Local Time:
    12:35
    Oceny:
    +1 340 / 30 / -5
    Followers:
    22
    QNAP:
    TVS-x71
    Ethernet:
    1 GbE
    TVS-x71 1 GbE
    awww.freebsdnews.com_wp_content_uploads_gitlab_0.
    acamo_githubusercontent_com_d3304cf0302931a323d635850928bc506d8e2449e2db9befaa1f9e82b715534070. aabout.gitlab.com_images_4_1_gitlab_line_diff.

    Wymagane:
    - Optware

    1. Zainstaluj wymagane pakiety
    Kod (Bash):
    1. ipkg update
    2. ipkg upgrade
    3.  
    4. ipkg install python27 binutils coreutils git svn git-svn gcc perl patch sudo gawk grep sed make zlib openssl-dev gdbm readline ncurses-dev libxml2 libxslt m4 redis findutils man mc
    5.  
    6. # Soft-link pkill (required for start/stop gitlab)
    7. ln -sf /opt/bin/pgrep /opt/bin/pkill
    Skonfiguruj serwer Redis
    Kod (Bash):
    1. cp /opt/share/doc/redis/examples/redis.conf /opt/etc/redis.conf
    2.  
    3. mcedit /opt/etc/redis.conf
    4. # ... lub:
    5. #vi /opt/etc/redis.conf
    Zmień ustawienia parametrów damonize i bind:
    Kod (INI):
    1. damonize yes
    2.  
    3. bind 127.0.0.1
    Uruchom serwer Redis:
    Kod (Bash):
    1. redis-server /opt/etc/redis.conf
    Dodaj Redis serwer do automatycznego startu z systemem, np. z skryptu Optware.
    Kod (Bash):
    1. mcedit /etc/init.d/Optware.sh
    Kod (Bash):
    1.   start)
    2.  
    3.        ...
    4.  
    5.        [ -x "/opt/bin/redis-server" ] && /opt/bin/redis-server /opt/etc/redis.conf
    6.        ;;
    7.   stop)
    8.         killall redis-server
    9.  
    10.         /bin/echo "Disable Optware/ipkg"
    11.        ...
    Skompiluj biblioteki: libyaml, libicu, libffi, and libatomic_ops
    libyaml
    Kod (Bash):
    1. cd /share/homes/admin
    2. curl http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz | tar xz
    3. cd yaml-0.1.4
    4. ./configure --prefix=/opt
    5. make
    6. make install
    libatomic_ops
    Kod (Bash):
    1. cd /share/homes/admin
    2. curl http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-1.1.tar.gz | tar xz
    3. cd libatomic_ops-1.1
    4. ./configure --prefix=/opt
    5. make
    6. make install
    libicu
    Kod (Bash):
    1. _CFLAGS="${CFLAGS}"
    2. _CXXFLAGS="${CXXFLAGS}"
    3.  
    4. # UWAGA!
    5. # Poniższe linijki wylacznie dla serwerow QNAP NAS na platformie Intel!
    6. export CFLAGS="-O2 -march=i686"
    7. export CXXFLAGS="-O2 -march=i686"
    8. # Koniec :)
    9.  
    10. cd /share/homes/admin
    11. curl http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz | tar xz
    12. cd icu/source
    13. ./configure --prefix=/opt
    14. make
    15. make install
    16.  
    17. export CFLAGS="$_CFLAGS" ; export -n _CFLAGS
    18. export CXXFLAGS="$_CXXFLAGS" ; export -n _CXXFLAGS
    libffi
    Kod (Bash):
    1. cd /share/homes/admin
    2. curl ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz | tar xz
    3. cd libffi-3.0.13
    4. ./configure --prefix=/opt
    5. make
    6. make install
    7. cp /opt/lib/libffi-3.0.13/include/* /opt/include/
    2. Zainstaluj Ruby z App Center lub ręcznie skompiluj:
    Kod (Bash):
    1. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/lib"
    2.  
    3. cd /share/homes/admin
    4. curl ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.bz2 | tar xj
    5. cd ruby-1.9.3-p448
    6. ./configure --prefix=/opt --disable-install-rdoc
    7. make
    8. make install
    Następnie...:
    Kod (Bash):
    1. # Update RubyGems:
    2. gem update --system
    3.  
    4. # Download default cert.pem
    5. curl -fsSL curl.haxx.se/ca/cacert.pem -o "$(ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE')"
    6.  
    7. # Install Bundler and Charlock_holmes Gem:
    8. gem install bundler --no-ri --no-rdoc
    9. gem install charlock_holmes --version '0.6.9.4'
    Skompiluj: libv8
    Kod (Bash):
    1. # Libv8 Gem is required to run gitlab. The bundler in gitlab needs Libv8 version , however, that version has ia32 error on TS-212. And recent libv8 also has some configuration problem.
    2.  
    3. cd /share/homes/admin
    4. git clone git://github.com/cowboyd/libv8.git
    5. cd libv8
    6. bundle install
    Modyfikacje:
    wyłącz hardfp (UWAGA: Tylko dla starej generacji serwerow NAS na platformie ARM!)
    dodaj -fno-strict-aliasing
    WYŁĄCZ check_git-svn!
    usuń -Wno-unused-local-typedefs

    Kod (GNU make):
    1. diff --git a/ext/libv8/builder.rb b/ext/libv8/builder.rb
    2. index 7407515..e51de3e 100755
    3. --- a/ext/libv8/builder.rb
    4. +++ b/ext/libv8/builder.rb
    5. @@ -18,13 +18,14 @@ module Libv8
    6.        # compilation failures due to warnings about aliasing.
    7.        # http://svnweb.freebsd.org/ports/head/lang/v8/Makefile?view=markup
    8.        flags << "strictaliasing=off" if RUBY_PLATFORM.include?("freebsd") and !check_gcc_compiler(compiler)
    9. +      flags << "strictaliasing=off"
    10.  
    11.        # Avoid compilation failures on the Raspberry Pi.
    12.        flags << "vfp2=off vfp3=off" if RUBY_PLATFORM.include? "arm"
    13.  
    14.        # FIXME: Determine when to activate this instead of leaving it on by
    15.        # default.
    16. -      flags << "hardfp=on" if RUBY_PLATFORM.include? "arm"
    17. +      flags << "hardfp=off" if RUBY_PLATFORM.include? "arm"
    18.  
    19.        # Fix Malformed archive issue caused by GYP creating thin archives by
    20.        # default.
    21. diff --git a/ext/libv8/checkout.rb b/ext/libv8/checkout.rb
    22. index 71a5308..5ac56cd 100644
    23. --- a/ext/libv8/checkout.rb
    24. +++ b/ext/libv8/checkout.rb
    25. @@ -21,7 +21,7 @@ module Libv8
    26.  
    27.        return unless git?(GYP_Source)
    28.  
    29. -      check_git_svn!
    30. +      #check_git_svn!
    31.  
    32.        Dir.chdir(GYP_Source) do
    33.          mkf = File.readlines(File.join(V8_Source, 'Makefile'))
    34. diff --git a/patches/gcc48-wno-unused-local-typedefs.patch b/patches/gcc48-wno-unused-local-typedefs.patch
    35. deleted file mode 100644
    36. index d45276d..0000000
    37. --- a/patches/gcc48-wno-unused-local-typedefs.patch
    38. +++ /dev/null
    39. @@ -1,28 +0,0 @@
    40. -diff --git a/build/common.gypi b/build/common.gypi
    41. -index 3a59639..365178a 100644
    42. ---- a/build/common.gypi
    43. -+++ b/build/common.gypi
    44. -@@ -376,7 +376,8 @@
    45. -           }],
    46. -           ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
    47. -             'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
    48. --                        '-Wnon-virtual-dtor', '-Woverloaded-virtual' ],
    49. -+                        '-Wnon-virtual-dtor', '-Woverloaded-virtual',
    50. -+                        '-Wno-unused-local-typedefs' ],
    51. -           }],
    52. -           ['OS=="linux" and v8_enable_backtrace==1', {
    53. -             # Support for backtrace_symbols.
    54. -diff --git a/build/standalone.gypi b/build/standalone.gypi
    55. -index 125c5bf..32eaf85 100644
    56. ---- a/build/standalone.gypi
    57. -+++ b/build/standalone.gypi
    58. -@@ -98,7 +98,8 @@
    59. -       'target_defaults': {
    60. -         'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
    61. -                     '-Wnon-virtual-dtor', '-pthread', '-fno-rtti',
    62. --                    '-fno-exceptions', '-pedantic' ],
    63. -+                    '-fno-exceptions', '-pedantic',
    64. -+                    '-Wno-unused-local-typedefs' ],
    65. -         'ldflags': [ '-pthread', ],
    66. -         'conditions': [
    67. -           [ 'OS=="linux"', {
    Kod (Bash):
    1. curl http://www.commani.net/post/ts-212-gitlab/@data/ts-212-armv5tel.patch | patch -p1
    Kod (Bash):
    1. #Then, checkout module and compile
    2. bundle exec rake checkout
    3. bundle exec rake compile
    4.  
    5. # Make gem file
    6. bundle exec rake binary
    3. System Users
    Kod (Bash):
    1. # Create a git user for Gitlab:
    2. adduser -h /share/homes/git -g "Gitlab" -s /bin/bash -D git
    3. passwd -u git
    4.  
    5. # sudo setting:
    6. echo "admin ALL=(ALL) ALL" > /opt/etc/sudoers.d/admin
    7. chmod 0440 /opt/etc/sudoers.d/admin
    4. GitLab shell
    Kod (Bash):
    1. # Login into git account
    2. sudo -u git -i
    Kod (Bash):
    1. # Clone gitlab shell
    2. cd /share/homes/git
    3. git clone https://github.com/gitlabhq/gitlab-shell.git
    4. cd gitlab-shell
    5. git checkout v1.7.4
    6. cp config.yml.example config.yml
    Edit config: gitlab_url repos_path auth_file redis:bin
    Kod (INI):
    1. gitlab_url: "http://git.example.com/"
    2.  
    3. repos_path: "/share/HDA_DATA/homes/git/repositories"
    4.  
    5. auth_file: "/share/homes/git/.ssh/authorized_keys"
    6.  
    7. redis:
    8.   bin: /opt/bin/redis-cli
    Important! repos_path MUST not contain any symlink!

    Do setup
    Kod (Bash):
    1. ./bin/install
    5. Database

    Use MySQL

    Generate random password (this is an option)

    $ dd if=/dev/random bs=1 count=4 | sha256sum | head -c 40
    Copy the generated password something like this: 6838821069eed7a87cf0d2228e1020d6b14edb47

    $ /usr/local/mysql/bin/mysql -u root -p
    mysql> CREATE USER 'gitlab'@'localhost' IDENTIFIED by '6838821069eed7a87cf0d2228e1020d6b14edb47';

    mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;

    mysql> GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost';

    mysql> flush privileges;

    mysql> \q

    6. GitLab

    Clone the source

    $ cd /share/homes/git

    $ git clone gitlabhq/gitlabhq · GitHub gitlab

    $ cd gitlab

    $ git checkout 6-2-stable
    Configure it

    $ cp config/gitlab.yml.example config/gitlab.yml

    $ vi config/gitlab.yml
    Edit config: gitlab:host satellites:path gitlabshell:repospath gitlabshell:hookspath git:bin_path

    gitlab:
    host: git.example.com

    satellites:
    path: /share/homes/git/gitlab-satellites/

    gitlab_shell:
    repos_path: /share/HDA_DATA/homes/git/repositories/
    hooks_path: /share/homes/git/gitlab-shell/hooks/

    git:
    bin_path: /opt/bin/git
    Make sure GitLab can write to the log/ and tmp/ directories

    $ chown -R git log/ tmp/

    $ chmod -R u+rwx log/ tmp/
    Create directory for satellites

    $ mkdir /share/homes/git/gitlab-satellites
    Create directories for sockets/pids and make sure GitLab can write to them

    $ mkdir tmp/pids/ tmp/sockets/

    $ chmod -R u+rwx tmp/pids/ tmp/sockets/
    Create public/uploads directory otherwise backup will fail

    $ mkdir public/uploads

    $ chmod -R u+rwx public/uploads
    Copy the example Unicorn config

    $ cp config/unicorn.rb.example config/unicorn.rb

    $ vi config/unicorn.rb
    Edit config: worker_processes working_directory listen timeout pid stderr_path stdout_path

    worker_processes 1

    working_directory "/share/homes/git/gitlab" # available in 0.94.0+

    listen "/share/homes/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 64
    #listen "127.0.0.1:8080", :tcp_nopush => true

    timeout 60

    pid "/share/homes/git/gitlab/tmp/pids/unicorn.pid"

    stderr_path "/share/homes/git/gitlab/log/unicorn.stderr.log"
    stdout_path "/share/homes/git/gitlab/log/unicorn.stdout.log"
    Confiugre Git global settings for git user, useful when editing via web Edit user.email according to what is set in gitlab.yml

    $ git config --global user.name "GitLab"

    $ git config --global user.email "gitlab@localhost"

    $ git config --global core.autocrlf input
    Configure GitLab DB settings

    MySQL

    $ cp config/database.yml.mysql config/database.yml

    $ vi config/database.yml
    Edit config: production:password production:socket

    production:
    password: "6838821069eed7a87cf0d2228e1020d6b14edb47"
    socket: /tmp/mysql.sock
    Install Gems

    Change directory into gitlab:

    $ cd /share/homes/git/gitlab
    Edit Gemfile.lock:

    File Before After
    Gemfile.lock libv8 (3.11.8.17) libv8 (3.16.14.3)
    therubyracer (0.11.4) therubyracer (0.12.0)
    libv8 (~> 3.11.8.12) libv8 (~> 3.16.14.3)
    Like this patch:

    diff --git a/Gemfile.lock b/Gemfile.lock
    index f919e6e..685233c 100644
    --- a/Gemfile.lock
    +++ b/Gemfile.lock
    @@ -264,7 +264,7 @@ GEM
    addressable (~> 2.3)
    letter_opener (1.1.1)
    launchy (~> 2.2)
    - libv8 (3.11.8.17)
    + libv8 (3.16.14.3)
    listen (1.2.2)
    rb-fsevent (>= 0.9.3)
    rb-inotify (>= 0.9)
    @@ -494,8 +494,8 @@ GEM
    term-ansicolor (1.2.2)
    tins (~> 0.8)
    test_after_commit (0.2.1)
    - therubyracer (0.11.4)
    - libv8 (~> 3.11.8.12)
    + therubyracer (0.12.0)
    + libv8 (~> 3.16.14.3)
    ref
    thin (1.5.1)
    daemons (>= 1.0.9)
    Install libv8 manually:

    $ gem install -i vendor/bundle/ruby/1.9.1/ /share/homes/admin/libv8/pkg/libv8-3.16.14.3-armv5tel-linux.gem
    Install gems:

    $ bundle install --deployment --without development test postgres aws
    Initialize Database and Activate Advenced Features

    $ rake gitlab:setup RAILS_ENV=production
    Compile javascript:

    $ rake assets:precompile RAILS_ENV=production
    Install Init Script

    (by admin)

    # cd /share/homes/git/gitlab/

    # cp lib/support/init.d/gitlab /opt/etc/init.d/S99gitlab

    # chmod +x /opt/etc/init.d/S99gitlab
    Modify the path: app_root

    app_root="/share/homes/git/gitlab"
    Omit -i option from sudo:

    if [ "$USER" != "$app_user" ]; then
    sudo -u "$app_user" -H $0 "$@"; exit;
    fi
    Register init script into MySettings.sh:

    start)

    /opt/etc/init.d/S99gitlab start
    ;;

    stop)

    /opt/etc/init.d/S99gitlab stop
    ;;
    Check Application Status

    Check if GitLab and its environment are configured correctly:

    $ cd /share/homes/git/gitlab

    $ rake gitlab:env:info RAILS_ENV=production
    7. Nginx

    Installation

    # ipkg install nginx
    Create nobody and nogroup

    # addgroup nogroup

    # adduser -s /bin/false -G nogroup -D -H nobody
    Site Configuration

    This is my own configuration I use NAS only for GitLab with nginx.

    # vi /opt/etc/nginx/nginx.conf
    worker_processes 1;

    events {
    worker_connections 1024;
    }


    http {
    include mime.types;
    default_type application/octet-stream;

    sendfile on;

    keepalive_timeout 65;

    upstream gitlab {
    server unix:/share/homes/git/gitlab/tmp/sockets/gitlab.socket;
    }

    server {
    listen 80;
    server_name git.example.com;

    access_log /opt/var/log/gitlab_access.log;
    error_log /opt/var/log/gitlab_error.log;

    location / {
    proxy_read_timeout 300;
    proxy_connect_timeout 300;
    proxy_redirect off;

    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;

    proxy_pass http://gitlab;
    }
    }
    }
    Register init script into MySettings.sh:

    start)

    /opt/etc/init.d/S80nginx start

    /opt/bin/redis-server /opt/etc/redis.conf

    /opt/etc/init.d/S99gitlab start
    ;;

    stop)

    /opt/etc/init.d/S80nginx stop

    killall redis-server

    /opt/etc/init.d/S99gitlab stop
    ;;
    Restart and check

    # /opt/etc/init.d/S80nginx restart

    # /opt/etc/init.d/S99gitlab restart

    # sudo -u git -i

    $ cd /share/homes/git/gitlab

    $ rake gitlab:check RAILS_ENV=production

    ---
    source: Gitlab install to QNAP TS-212 | COMMANI.NET
     
  2. dragmar
    Offline

    dragmar Passing Basics Beginner

    Dołączył:
    27 Listopad 2012
    Wiadomości:
    13
    Miejscowość:
    Bytom
    Local Time:
    12:35
    Oceny:
    +3 / 0 / -0
    Followers:
    0
    QNAP:
    TS-x19P II
    Ethernet:
    1 GbE
    TS-x19P II 1 GbE
    Witam.
    Próbuje zainstalować ale mam nieoczekiwany błąd podczas kompilacji libyaml

    Kod (Text):
    1. checking for a BSD-compatible install... /usr/bin/install -c
    2. checking whether build environment is sane... yes
    3. checking for a thread-safe mkdir -p... /opt/bin/mkdir -p
    4. checking for gawk... gawk
    5. checking whether make sets $(MAKE)... yes
    6. checking for gcc... gcc
    7. checking whether the C compiler works... yes
    8. checking for C compiler default output file name... a.out
    9. checking for suffix of executables...
    10. checking whether we are cross compiling... no
    11. checking for suffix of object files... o
    12. checking whether we are using the GNU C compiler... yes
    13. checking whether gcc accepts -g... yes
    14. checking for gcc option to accept ISO C89... none needed
    15. checking for style of include used by make... GNU
    16. checking dependency style of gcc... gcc3
    17. checking how to run the C preprocessor... gcc -E
    18. checking whether ln -s works... yes
    19. checking whether make sets $(MAKE)... (cached) yes
    20. checking build system type... armv5tel-unknown-linux-gnueabi
    21. checking host system type... armv5tel-unknown-linux-gnueabi
    22. checking for a sed that does not truncate output... /bin/sed
    23. checking for grep that handles long lines and -e... /opt/bin/grep
    24. checking for egrep... /opt/bin/grep -E
    25. checking for fgrep... /opt/bin/grep -F
    26. checking for ld used by gcc... /share/HDA_DATA/.qpkg/Optware/arm-none-linux-gnueabi/bin/ld
    27. checking if the linker (/share/HDA_DATA/.qpkg/Optware/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes
    28. checking for BSD- or MS-compatible name lister (nm)... /opt/bin/nm -B
    29. checking the name lister (/opt/bin/nm -B) interface... BSD nm
    30. checking the maximum length of command line arguments... 32768
    31. checking whether the shell understands some XSI constructs... yes
    32. checking whether the shell understands "+="... yes
    33. checking for /share/HDA_DATA/.qpkg/Optware/arm-none-linux-gnueabi/bin/ld option to reload object files... -r
    34. checking for objdump... objdump
    35. checking how to recognize dependent libraries... pass_all
    36. checking for ar... ar
    37. checking for strip... strip
    38. checking for ranlib... ranlib
    39. checking command to parse /opt/bin/nm -B output from gcc object... ok
    40. checking for ANSI C header files... yes
    41. checking for sys/types.h... yes
    42. checking for sys/stat.h... yes
    43. checking for stdlib.h... yes
    44. checking for string.h... yes
    45. checking for memory.h... yes
    46. checking for strings.h... yes
    47. checking for inttypes.h... yes
    48. checking for stdint.h... yes
    49. checking for unistd.h... yes
    50. checking for dlfcn.h... yes
    51. checking for objdir... .libs
    52. checking if gcc supports -fno-rtti -fno-exceptions... no
    53. checking for gcc option to produce PIC... -fPIC -DPIC
    54. checking if gcc PIC flag -fPIC -DPIC works... yes
    55. checking if gcc static flag -static works... no
    56. checking if gcc supports -c -o file.o... yes
    57. checking if gcc supports -c -o file.o... (cached) yes
    58. checking whether the gcc linker (/share/HDA_DATA/.qpkg/Optware/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes
    59. checking whether -lc should be explicitly linked in... no
    60. checking dynamic linker characteristics... GNU/Linux ld.so
    61. checking how to hardcode library paths into programs... immediate
    62. checking whether stripping libraries is possible... yes
    63. checking if libtool supports shared libraries... yes
    64. checking whether to build shared libraries... yes
    65. checking whether to build static libraries... yes
    66. checking for doxygen... false
    67. checking for ANSI C header files... (cached) yes
    68. checking for stdlib.h... (cached) yes
    69. checking for an ANSI C-conforming const... yes
    70. checking for size_t... yes
    71. configure: creating ./config.status
    72. config.status: creating yaml-0.1.pc
    73. gawk: ./confihJDzs/subs.awk:2: S["/; s/!.*/"]=am__EXEEXT_FALSE!%!_!# ""
    74. gawk: ./confihJDzs/subs.awk:2:                                 ^ syntax error
    75. gawk: ./confihJDzs/subs.awk:3: S["/; s/!.*/"]=am__EXEEXT_FALSE!%!_!# ""
    76. gawk: ./confihJDzs/subs.awk:3:                                     ^ syntax error
    77. gawk: ./confihJDzs/subs.awk:4: S["/; s/!.*/"]=am__EXEEXT_TRUE!#%!_!# "#"
    78. gawk: ./confihJDzs/subs.awk:4:                                ^ syntax error
    79. gawk: ./confihJDzs/subs.awk:4: S["/; s/!.*/"]=LTLIBOBJS!%!_!# ""
    80. gawk: ./confihJDzs/subs.awk:4:                          ^ syntax error
    81. gawk: ./confihJDzs/subs.awk:5: S["/; s/!.*/"]=LTLIBOBJS!%!_!# ""
    82. gawk: ./confihJDzs/subs.awk:5:                              ^ syntax error
    83. gawk: ./confihJDzs/subs.awk:5: S["/; s/!.*/"]=LIBOBJS!%!_!# ""
    84. gawk: ./confihJDzs/subs.awk:5:                        ^ syntax error
    85. gawk: ./confihJDzs/subs.awk:6: S["/; s/!.*/"]=LIBOBJS!%!_!# ""
    86. gawk: ./confihJDzs/subs.awk:6:                            ^ syntax error
    87. gawk: ./confihJDzs/subs.awk:6: S["/; s/!.*/"]=DOXYGEN_FALSE!%!_!# ""
    88. gawk: ./confihJDzs/subs.awk:6:                              ^ syntax error
    89. gawk: ./confihJDzs/subs.awk:7: S["/; s/!.*/"]=DOXYGEN_FALSE!%!_!# ""
    90. gawk: ./confihJDzs/subs.awk:7:                                  ^ syntax error
    91. gawk: ./confihJDzs/subs.awk:8: S["/; s/!.*/"]=DOXYGEN_TRUE!#%!_!# "#"
    92. gawk: ./confihJDzs/subs.awk:8:                             ^ syntax error
    93. gawk: ./confihJDzs/subs.awk:9: S["/; s/!.*/"]=DOXYGEN!false%!_!# "false"
    94. gawk: ./confihJDzs/subs.awk:9:                                 ^ syntax error
    95. gawk: ./confihJDzs/subs.awk:9: S["/; s/!.*/"]=OTOOL64!%!_!# ""
    96. gawk: ./confihJDzs/subs.awk:9:                        ^ syntax error
    97. gawk: ./confihJDzs/subs.awk:10: S["/; s/!.*/"]=OTOOL64!%!_!# ""
    98. gawk: ./confihJDzs/subs.awk:10:                            ^ syntax error
    99. gawk: ./confihJDzs/subs.awk:10: S["/; s/!.*/"]=OTOOL!%!_!# ""
    100. gawk: ./confihJDzs/subs.awk:10:                      ^ syntax error
    101. gawk: ./confihJDzs/subs.awk:11: S["/; s/!.*/"]=OTOOL!%!_!# ""
    102. gawk: ./confihJDzs/subs.awk:11:                          ^ syntax error
    103. gawk: ./confihJDzs/subs.awk:11: S["/; s/!.*/"]=LIPO!%!_!# ""
    104. gawk: ./confihJDzs/subs.awk:11:                     ^ syntax error
    105. gawk: ./confihJDzs/subs.awk:12: S["/; s/!.*/"]=LIPO!%!_!# ""
    106. gawk: ./confihJDzs/subs.awk:12:                         ^ syntax error
    107. gawk: ./confihJDzs/subs.awk:12: S["/; s/!.*/"]=NMEDIT!%!_!# ""
    108. gawk: ./confihJDzs/subs.awk:12:                       ^ syntax error
    109. gawk: ./confihJDzs/subs.awk:13: S["/; s/!.*/"]=NMEDIT!%!_!# ""
    110. gawk: ./confihJDzs/subs.awk:13:                           ^ syntax error
    111. gawk: ./confihJDzs/subs.awk:13: S["/; s/!.*/"]=DSYMUTIL!%!_!# ""
    112. gawk: ./confihJDzs/subs.awk:13:                         ^ syntax error
    113. gawk: ./confihJDzs/subs.awk:14: S["/; s/!.*/"]=DSYMUTIL!%!_!# ""
    114. gawk: ./confihJDzs/subs.awk:14:                             ^ syntax error
    115. gawk: ./confihJDzs/subs.awk:15: S["/; s/!.*/"]=lt_ECHO!echo%!_!# "echo"
    116. gawk: ./confihJDzs/subs.awk:15:                                ^ syntax error
    117. gawk: ./confihJDzs/subs.awk:16: S["/; s/!.*/"]=RANLIB!ranlib%!_!# "ranlib"
    118. gawk: ./confihJDzs/subs.awk:16:                                 ^ syntax error
    119. gawk: ./confihJDzs/subs.awk:17: S["/; s/!.*/"]=AR!ar%!_!# "ar"
    120. gawk: ./confihJDzs/subs.awk:17:                         ^ syntax error
    121. gawk: ./confihJDzs/subs.awk:18: S["/; s/!.*/"]=OBJDUMP!objdump%!_!# "objdump"
    122. gawk: ./confihJDzs/subs.awk:18:                                   ^ syntax error
    123. gawk: ./confihJDzs/subs.awk:19: S["/; s/!.*/"]=NM!/opt/bin/nm -B%!_!# "/opt/bin/nm -B"
    124. gawk: ./confihJDzs/subs.awk:19:                                     ^ syntax error
    125. gawk: ./confihJDzs/subs.awk:19: S["/; s/!.*/"]=ac_ct_DUMPBIN!%!_!# ""
    126. gawk: ./confihJDzs/subs.awk:19:                              ^ syntax error
    127. gawk: ./confihJDzs/subs.awk:20: S["/; s/!.*/"]=ac_ct_DUMPBIN!%!_!# ""
    128. gawk: ./confihJDzs/subs.awk:20:                                  ^ syntax error
    129. gawk: ./confihJDzs/subs.awk:20: S["/; s/!.*/"]=DUMPBIN!%!_!# ""
    130. gawk: ./confihJDzs/subs.awk:20:                        ^ syntax error
    131. gawk: ./confihJDzs/subs.awk:21: S["/; s/!.*/"]=DUMPBIN!%!_!# ""
    132. gawk: ./confihJDzs/subs.awk:21:                            ^ syntax error
    133. gawk: ./confihJDzs/subs.awk:21: S["/; s/!.*/"]=LD!/share/HDA_DATA/.qpkg/Optware/arm-none-linux-gnueabi/bin/ld%!_!# "/share/HDA_DATA/.qpkg/Optware/arm-none-linux-gnueabi/bin/ld"
    134. gawk: ./confihJDzs/subs.awk:21:                                   ^ syntax error
    135. gawk: ./confihJDzs/subs.awk:22: S["/; s/!.*/"]=LD!/share/HDA_DATA/.qpkg/Optware/arm-none-linux-gnueabi/bin/ld%!_!# "/share/HDA_DATA/.qpkg/Optware/arm-none-linux-gnueabi/bin/ld"
    136. gawk: ./confihJDzs/subs.awk:22:                                                                                  ^ syntax error
    137. gawk: ./confihJDzs/subs.awk:23: S["/; s/!.*/"]=FGREP!/opt/bin/grep -F%!_!# "/opt/bin/grep -F"
    138. gawk: ./confihJDzs/subs.awk:23:                                          ^ syntax error
    139. gawk: ./confihJDzs/subs.awk:24: S["/; s/!.*/"]=EGREP!/opt/bin/grep -E%!_!# "/opt/bin/grep -E"
    140. gawk: ./confihJDzs/subs.awk:24:                                          ^ syntax error
    141. gawk: ./confihJDzs/subs.awk:25: S["/; s/!.*/"]=GREP!/opt/bin/grep%!_!# "/opt/bin/grep"
    142. gawk: ./confihJDzs/subs.awk:25:                                      ^ syntax error
    143. gawk: ./confihJDzs/subs.awk:26: S["/; s/!.*/"]=SED!/bin/sed%!_!# "/bin/sed"
    144. gawk: ./confihJDzs/subs.awk:26:                                ^ syntax error
    145. gawk: ./confihJDzs/subs.awk:27: S["/; s/!.*/"]=host_os!linux-gnueabi%!_!# "linux-gnueabi"
    146. gawk: ./confihJDzs/subs.awk:27:                                         ^ syntax error
    147. gawk: ./confihJDzs/subs.awk:28: S["/; s/!.*/"]=host_vendor!unknown%!_!# "unknown"
    148. gawk: ./confihJDzs/subs.awk:28:                                       ^ syntax error
    149. gawk: ./confihJDzs/subs.awk:29: S["/; s/!.*/"]=host_cpu!armv5tel%!_!# "armv5tel"
    150. gawk: ./confihJDzs/subs.awk:29:                                     ^ syntax error
    151. gawk: ./confihJDzs/subs.awk:30: S["/; s/!.*/"]=host!armv5tel-unknown-linux-gnueabi%!_!# "armv5tel-unknown-linux-gnueabi"
    152. gawk: ./confihJDzs/subs.awk:30:                                                       ^ syntax error
    153. gawk: ./confihJDzs/subs.awk:31: S["/; s/!.*/"]=build_os!linux-gnueabi%!_!# "linux-gnueabi"
    154. gawk: ./confihJDzs/subs.awk:31:                                          ^ syntax error
    155. gawk: ./confihJDzs/subs.awk:32: S["/; s/!.*/"]=build_vendor!unknown%!_!# "unknown"
    156. gawk: ./confihJDzs/subs.awk:32:                                        ^ syntax error
    157. gawk: ./confihJDzs/subs.awk:33: S["/; s/!.*/"]=build_cpu!armv5tel%!_!# "armv5tel"
    158. gawk: ./confihJDzs/subs.awk:33:                                      ^ syntax error
    159. gawk: ./confihJDzs/subs.awk:34: S["/; s/!.*/"]=build!armv5tel-unknown-linux-gnueabi%!_!# "armv5tel-unknown-linux-gnueabi"
    160. gawk: ./confihJDzs/subs.awk:34:                                                        ^ syntax error
    161. gawk: ./confihJDzs/subs.awk:35: S["/; s/!.*/"]=LIBTOOL!$(SHELL) $(top_builddir)/libtool%!_!# "$(SHELL) $(top_builddir)/libtool"
    162. gawk: ./confihJDzs/subs.awk:35:                                                            ^ syntax error
    163. gawk: ./confihJDzs/subs.awk:36: S["/; s/!.*/"]=LN_S!ln -s%!_!# "ln -s"
    164. gawk: ./confihJDzs/subs.awk:36:                              ^ syntax error
    165. gawk: ./confihJDzs/subs.awk:37: S["/; s/!.*/"]=CPP!gcc -E%!_!# "gcc -E"
    166. gawk: ./confihJDzs/subs.awk:37:                              ^ syntax error
    167. gawk: ./confihJDzs/subs.awk:38: S["/; s/!.*/"]=am__fastdepCC_FALSE!#%!_!# "#"
    168. gawk: ./confihJDzs/subs.awk:38:                                    ^ syntax error
    169. gawk: ./confihJDzs/subs.awk:38: S["/; s/!.*/"]=am__fastdepCC_TRUE!%!_!# ""
    170. gawk: ./confihJDzs/subs.awk:38:                                   ^ syntax error
    171. gawk: ./confihJDzs/subs.awk:39: S["/; s/!.*/"]=am__fastdepCC_TRUE!%!_!# ""
    172. gawk: ./confihJDzs/subs.awk:39:                                       ^ syntax error
    173. gawk: ./confihJDzs/subs.awk:39: S["/; s/!.*/"]=CCDEPMODE!depmode=gcc3%!_!# "depmode=gcc3"
    174. gawk: ./confihJDzs/subs.awk:39:                                 ^ syntax error
    175. gawk: ./confihJDzs/subs.awk:40: S["/; s/!.*/"]=CCDEPMODE!depmode=gcc3%!_!# "depmode=gcc3"
    176. gawk: ./confihJDzs/subs.awk:40:                                          ^ syntax error
    177. gawk: ./confihJDzs/subs.awk:40: S["/; s/!.*/"]=AMDEPBACKSLASH!\%!_!# "\\"
    178. gawk: ./confihJDzs/subs.awk:40:                               ^ backslash not last character on line
    179. gawk: ./confihJDzs/subs.awk:40: S["/; s/!.*/"]=AMDEPBACKSLASH!\%!_!# "\\"
    180. gawk: ./confihJDzs/subs.awk:40:                               ^ syntax error
    181. config.status: error: could not create yaml-0.1.pc
    182.  
    Czy może mi ktoś rozwiązać problem
     
  3. pigers
    Offline

    pigers GOD's left hand - careful - he don't care anymore. Administrator

    Dołączył:
    26 Lipiec 2013
    Wiadomości:
    5 467
    Miejscowość:
    Nysa
    Local Time:
    12:35
    Oceny:
    +1 007 / 28 / -12
    Followers:
    2
    QNAP:
    TS-x53
    Synology:
    huh ? I do not collect crap
    Ethernet:
    1 GbE
    TS-x53 1 GbE
    czy gawk z Optware jest zainstalowany ? Jeśli tak wyloguj się z konsoli i wejdź jeszcze raz bo nie zaczytał nowych zmiennych.

    Jeśli nie ... to go zinstaluj i przeloguj się z konsoli.
     
  4. dragmar
    Offline

    dragmar Passing Basics Beginner

    Dołączył:
    27 Listopad 2012
    Wiadomości:
    13
    Miejscowość:
    Bytom
    Local Time:
    12:35
    Oceny:
    +3 / 0 / -0
    Followers:
    0
    QNAP:
    TS-x19P II
    Ethernet:
    1 GbE
    TS-x19P II 1 GbE
    qawk jest zainstalowany, zrestartowałem NAS ale nadal mam to samo. ostatni FW 4.1.3
     
  5. Silas Mariusz
    Offline

    Silas Mariusz SysOp Administrator

    Dołączył:
    5 Kwiecień 2008
    Wiadomości:
    6 033
    Miejscowość:
    Nowy Sącz
    Local Time:
    12:35
    Oceny:
    +1 340 / 30 / -5
    Followers:
    22
    QNAP:
    TVS-x71
    Ethernet:
    1 GbE
    TVS-x71 1 GbE
    Kod (Bash):
    1. type -f gawk
    2. type -f awk
    3. export | grep awk
    Co pokazuje?

    Ew. podstawić:
    Kod (Bash):
    1. export AWK=/opt/bin/gawk
    ... o ile tego zainstalowałeś z Optware.
     
  6. dragmar
    Offline

    dragmar Passing Basics Beginner

    Dołączył:
    27 Listopad 2012
    Wiadomości:
    13
    Miejscowość:
    Bytom
    Local Time:
    12:35
    Oceny:
    +3 / 0 / -0
    Followers:
    0
    QNAP:
    TS-x19P II
    Ethernet:
    1 GbE
    TS-x19P II 1 GbE
    Kod (Bash):
    1. type -f gawk
    Kod (Text):
    1. gawk is /opt/bin/gawk
    Kod (Bash):
    1. type -f awk
    Kod (Text):
    1. awk is /bin/awk
    export | grep awk nic nie wyświetla
    export AWK=/opt/bin/gawk nic nie dało
     
  7. pigers
    Offline

    pigers GOD's left hand - careful - he don't care anymore. Administrator

    Dołączył:
    26 Lipiec 2013
    Wiadomości:
    5 467
    Miejscowość:
    Nysa
    Local Time:
    12:35
    Oceny:
    +1 007 / 28 / -12
    Followers:
    2
    QNAP:
    TS-x53
    Synology:
    huh ? I do not collect crap
    Ethernet:
    1 GbE
    TS-x53 1 GbE
    Kod (Bash):
    1. export AWK=/opt/bin/gawk
    teraz wykonaj
    Kod (Bash):
    1. export | grep awk
    i sprawdź czy pomogło w kompilacji
     
  8. Silas Mariusz
    Offline

    Silas Mariusz SysOp Administrator

    Dołączył:
    5 Kwiecień 2008
    Wiadomości:
    6 033
    Miejscowość:
    Nowy Sącz
    Local Time:
    12:35
    Oceny:
    +1 340 / 30 / -5
    Followers:
    22
    QNAP:
    TVS-x71
    Ethernet:
    1 GbE
    TVS-x71 1 GbE
    Lub wymuś awk z /opt/bin:
    Kod (Bash):
    1. export PATH="/opt/bin:$PATH:/opt/bin"
    PS. Gogs [x64]
     
  9. dragmar
    Offline

    dragmar Passing Basics Beginner

    Dołączył:
    27 Listopad 2012
    Wiadomości:
    13
    Miejscowość:
    Bytom
    Local Time:
    12:35
    Oceny:
    +3 / 0 / -0
    Followers:
    0
    QNAP:
    TS-x19P II
    Ethernet:
    1 GbE
    TS-x19P II 1 GbE
    Wielkie dzięki podziałało. wmuszenie dało efekt
     
    • Lubię to! Lubię to! x 1
  10. Blackadm
    Offline

    Blackadm Passing Basics Beginner

    Dołączył:
    22 Marzec 2016
    Wiadomości:
    16
    Local Time:
    12:35
    Oceny:
    +6 / 0 / -0
    Followers:
    0
    QNAP:
    TVS-x71
    Ethernet:
    1 GbE
    TVS-x71 1 GbE
    Utknąłem przy kompilacji biblioteki libicu a konkretnie na linii 11. curl http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz |tar xz

    otrzymuje następujący komunikat :
    Kod (Text):
    1. [/share/homes/admin] # curl [URL]http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz[/URL] | tar xz
    2.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    3.                                  Dload  Upload   Total   Spent    Left  Speed
    4. 100   354  100   354    0     0    649      0 --:--:-- --:--:-- --:--:--  1011
    5. gzip: Invalid magic
    6. tar: Child returned status 1
    7. tar: Exiting with failure status due to previous errors
    sprawdzałem przez przeglądarkę pod adresem Index of /files/icu4c - zbiór jest dostępny
    nie pomógł restart serwera, ani próba pobrania wyższej wersji 53.1
    wygląda tak jakby gpzip nie rozpoznawał skompresowanego pliku

    dostępne w tej lokalizacji zbiory :
    adownload.icu_project.org_icons_compressed. icu4c-52_1-AIX7_1-VA.tgz 04-Oct-2013 16:44 13M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-HPUX11iv3-aCC.tgz 04-Oct-2013 16:31 15M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-RHEL6-i386.tgz 04-Oct-2013 16:15 12M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-RHEL6-x64.tgz 04-Oct-2013 15:52 12M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-Solaris10-CC.tgz 04-Oct-2013 16:44 13M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-Win32-msvc10.zip 04-Oct-2013 14:36 12M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-Win64-msvc10.zip 04-Oct-2013 14:31 12M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-data.zip 04-Oct-2013 14:16 13M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-docs.zip 04-Oct-2013 14:10 6.0M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-src.tgz 04-Oct-2013 14:10 23M
    adownload.icu_project.org_icons_compressed. icu4c-52_1-src.zip 04-Oct-2013 14:09 24M - ja wybrałem ten
    adownload.icu_project.org_icons_unknown. icu4c-bin-52_1.md5 07-Oct-2013 18:18 641
    adownload.icu_project.org_icons_unknown. icu4c-src-52_1.md5 07-Oct-2013 18:17 214
    Ściągnąłem zbiór z Neta ale przy próbie odpalenia z lokalnego dysku uzyskuje taki komunikat :

    Kod (Text):
    1. [/share/homes/admin] # curl /share/Public/Serwis/icu4c-52_1-src.tgz | tar xz    curl: (3) <url> malformed
    2. gzip: Short read
    3. tar: Child returned status 1
    4. tar: Exiting with failure status due to previous errors
    Pewnie czegoś zabrakło w składni.
     
  11. pigers
    Offline

    pigers GOD's left hand - careful - he don't care anymore. Administrator

    Dołączył:
    26 Lipiec 2013
    Wiadomości:
    5 467
    Miejscowość:
    Nysa
    Local Time:
    12:35
    Oceny:
    +1 007 / 28 / -12
    Followers:
    2
    QNAP:
    TS-x53
    Synology:
    huh ? I do not collect crap
    Ethernet:
    1 GbE
    TS-x53 1 GbE
    Kod (Bash):
    1. wget --no-check-certificate http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz
    2. tar xvf  icu4c-52_1-src.tgz
     
    • Lubię to! Lubię to! x 1
  12. Blackadm
    Offline

    Blackadm Passing Basics Beginner

    Dołączył:
    22 Marzec 2016
    Wiadomości:
    16
    Local Time:
    12:35
    Oceny:
    +6 / 0 / -0
    Followers:
    0
    QNAP:
    TVS-x71
    Ethernet:
    1 GbE
    TVS-x71 1 GbE
    nie mogę przejść przez kompilację biblioteki libicu.
    Kod (Text):
    1. _CFLAGS="${CFLAGS}"
    2. _CXXFLAGS="${CXXFLAGS}"
    3.  
    4. # UWAGA!
    5. # Poniższe linijki wylacznie dla serwerow QNAP NAS na platformie Intel!
    6. export CFLAGS="-O2 -march=i686"
    7. export CXXFLAGS="-O2 -march=i686"
    8. # Koniec :)
    9.  
    10. cd /share/homes/admin
    11. curl http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz | tar xz
    12. cd icu/source
    13. ./configure --prefix=/opt
    14. make
    15. make install
    16.  
    17. export CFLAGS="$_CFLAGS" ; export -n _CFLAGS
    18. export CXXFLAGS="$_CXXFLAGS" ; export -n _CXXFLAGS
    wynik zatwierdzenia linii nr. 13 kończy się błędem :
    Kod (Text):
    1. [/share/homes/admin/icu/source] # ./configure --prefix=/opt
    2. checking for ICU version numbers... release 52.1, library 52.1, unicode version 6.3
    3. checking build system type... x86_64-unknown-linux-gnu
    4. checking host system type... x86_64-unknown-linux-gnu
    5. ...
    6. ...
    7. CXXFLAGS=-O2 -march=i686 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long $(THREADSCXXFLAGS)
    8. configure: creating ./config.status
    9. config.status: creating icudefs.mk
    10. awk: ./confYsue5f/subs.awk:2: Unexpected token
    11. config.status: error: could not create icudefs.mk
    próbę wykonałem na bibliotekach icu4c-52_1-src.tgz z dwóch różnych źródeł :
    http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz
    http://pkgs.fedoraproject.org/repo/pkgs/icu/icu4c-52_1-src.tgz/md5/9e96ed4c1d99c0d14ac03c140f9f346c/
    efekt ten sam. Co może być przyczyną tego błędu ? Platforma na której wykonuję instalacje to QNAP TVS-671
    --- Połączono posty, 4 Kwiecień 2016 ---
    Znalazłem rozwiązanie problemu. Brakowało dwóch dodatków - Optware-devel i automake.
    "You need use ipkg to install Optware-devel and automake (some configure scripts require binaries from the autotools toolchain)."
    oraz :
    Kod (Text):
    1. export PATH=/opt/bin:$PATH
    2. ./configure --prefix=/opt
    referencje: Can't figure out how to compile - 'configure' command fails - QNAP NAS Community Forum

    teraz utknąłem na modyfikacjach libv8. Chodzi o tę część z Code (GNU make) dotyczącą zmian :
    dodaj-fno-strict-aliasing
    WYŁĄCZcheck_git-svn!
    usuń-Wno-unused-local-typedefs
    jak to zaimplementować ? z konsoli tego wpisać nie mogę (tam mam tryb "-sh")
    być może to trywialne pytanie - nie jestem zaawansowany w Linuxach. prośba o podpowiedź.
    --- Połączono posty, 5 Kwiecień 2016, Data oryginalnego postu: 4 Kwiecień 2016 ---
    już wiem. Kod który sprawia mi tyle problemów rozwiązuje niżej zapisana linia kodu:
    curl http://www.commani.net/post/ts-212-gitlab/@data/ts-212-armv5tel.patch |patch-p1
    Na dobry trop naprowadziła mnie strona : Gitlab install to QNAP TS-212 | COMMANI.NET

    Kolejny problem na jaki natrafiłem przy zatwierdzeniu linii: bundle exec rake compile

    uzyskałem :
    Kod (Text):
    1. ruby ext/libv8/extconf.rb
    2. creating Makefile
    3. HEAD is now at 2f0efde... Version 3.16.14
    4. Using existing [svn-remote "svn"]
    5. HEAD is now at f7bc250... Make gyp/win32 compatible with upstream ninja.
    6. Compiling v8 for ia32
    7. Using python 2.7.5
    8. Using compiler: /opt/bin/c++ (GCC version 4.2.1)
    9. Unable to find a compiler officially supported by v8.
    10. It is recommended to use GCC v4.4 or higher
    11. Traceback (most recent call last):
    12.   File "build/gyp/gyp", line 15, in <module>
    13.     import gyp
    14.   File "build/gyp/pylib/gyp/__init__.py", line 8, in <module>
    15.     import gyp.input
    16.   File "build/gyp/pylib/gyp/input.py", line 5, in <module>
    17.     from compiler.ast import Const
    18.   File "/root/daily_build/4.2.0/Model/TS-X71/../../SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/__init__.py", line 29, in <module>
    19.   File "/root/daily_build/4.2.0/Model/TS-X71/../../SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/transformer.py", line 29, in <module>
    20. ImportError: No module named parser
    21. make: *** [out/Makefile.ia32] Error 1
    22. GYP_GENERATORS=make \
    23. build/gyp/gyp --generator-output="out" build/all.gyp \
    24.               -Ibuild/standalone.gypi --depth=. \
    25.               -Dv8_target_arch=ia32 \
    26.               -S.ia32  -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3 -Dwerror='' -Dv8_no_strict_aliasing=1
    27. /share/CACHEDEV1_DATA/homes/admin/libv8/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/share/CACHEDEV1_DATA/homes/admin/libv8/vendor/v8/out/ia32.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
    28.         from /share/CACHEDEV1_DATA/homes/admin/libv8/ext/libv8/location.rb:35:in `each'
    29.         from /share/CACHEDEV1_DATA/homes/admin/libv8/ext/libv8/location.rb:35:in `verify_installation!'
    30.         from /share/CACHEDEV1_DATA/homes/admin/libv8/ext/libv8/location.rb:26:in `install!'
    31.         from ext/libv8/extconf.rb:7:in `<main>'
    32. rake aborted!
    33. Command failed with status (1): [ruby ext/libv8/extconf.rb...]
    34. /share/CACHEDEV1_DATA/homes/admin/libv8/Rakefile:25:in `block in <top (required)>'
    35. Tasks: TOP => compile
    36. (See full trace by running task with --trace)
    linia która zwróciła moją uwagę, to : It is recommended to use GCC v4.4 or higher
    Czy to oznacza, że mam niewłaściwą wersje kompilatora ?
    Jeśli tak, to w jaki sposób podnieść jego wersję ?
     
    • Lubię to! Lubię to! x 1
  13. pigers
    Offline

    pigers GOD's left hand - careful - he don't care anymore. Administrator

    Dołączył:
    26 Lipiec 2013
    Wiadomości:
    5 467
    Miejscowość:
    Nysa
    Local Time:
    12:35
    Oceny:
    +1 007 / 28 / -12
    Followers:
    2
    QNAP:
    TS-x53
    Synology:
    huh ? I do not collect crap
    Ethernet:
    1 GbE
    TS-x53 1 GbE
    zalecają - nie wymagają, to dwie różne sprawy
    gcc masz z Optware'a ? jak je zainstalowałeś /
     
  14. Blackadm
    Offline

    Blackadm Passing Basics Beginner

    Dołączył:
    22 Marzec 2016
    Wiadomości:
    16
    Local Time:
    12:35
    Oceny:
    +6 / 0 / -0
    Followers:
    0
    QNAP:
    TVS-x71
    Ethernet:
    1 GbE
    TVS-x71 1 GbE
    Kod (Text):
    1. ipkg update
    2. ipkg upgrade
    3. ipkg install gcc
     
  15. Silas Mariusz
    Offline

    Silas Mariusz SysOp Administrator

    Dołączył:
    5 Kwiecień 2008
    Wiadomości:
    6 033
    Miejscowość:
    Nowy Sącz
    Local Time:
    12:35
    Oceny:
    +1 340 / 30 / -5
    Followers:
    22
    QNAP:
    TVS-x71
    Ethernet:
    1 GbE
    TVS-x71 1 GbE
    Pisany How-to miał jakiś czas temu. Nie wiem czy w obecnych wersjach Optware i jego dostępnych wersjach libów nadal działa. Rozwiązania problemów szukałbym w znajomości Linuxa.
     
  16. spietrza
    Offline

    spietrza Download Station Q's Professional

    Dołączył:
    20 Marzec 2013
    Wiadomości:
    590
    Miejscowość:
    Poznań
    Local Time:
    12:35
    Oceny:
    +92 / 5 / -1
    Followers:
    2
    QNAP:
    TVS-x71
    Synology:
    Xpenology na DIY NAS Server
    Ethernet:
    802.11ad
    TVS-x71 802.11ad
    Jestem na etapie komendy bundle install w Skompiluj: libv8.
    Kończy się wywołanie błędem
    Unfortunately, an unexpected error occurred, and Bundler cannot continue.

    Czy przed komendą mam uruchomić plik patch i dopiero wtedy bundle install.
    Jeśli mam QNAP Intel wystarczy # linię + flags << "hardfp=off" if RUBY_PLATFORM.include? "arm"

    Reszta jak we wzorcu. Dalej pomijam curl ts212-patch... ale muszę go uruchomić. Jak ?
     

Poleć tę stronę

Użytkownicy znaleźli te stronę szukając słów:

  1. gitlab on qnap

    ,
  2. gitlab on qts

    ,
  3. qnap gitlab