Composer update - RuntimeException

时间:2015-05-26 12:19:12

标签: composer-php

安装Composer后,我尝试size_t intersect_scalar_omp(int *A, int *B, size_t s_a, size_t s_b, int *C) { size_t counter = 0; #pragma omp parallel { size_t i_a = 0, i_b = 0; size_t aend = s_a, bend = s_b; size_t counter_private = 0; int ithread = omp_get_thread_num(); int nthreads = omp_get_num_threads(); if (s_a > s_b) { i_a = ithread*s_a / nthreads; aend = (ithread + 1)*s_a / nthreads; } else { i_b = ithread*s_b / nthreads; bend = (ithread + 1)*s_b / nthreads; } int *C_private = new int[aend > bend ? aend : bend]; while (i_a < aend && i_b < bend) { if (A[i_a] < B[i_b]) { i_a++; } else if (B[i_b] < A[i_a]) { i_b++; } else { C_private[counter_private++] = A[i_a]; i_a++; i_b++; } } #pragma omp critical { memcpy(&C[counter], C_private, sizeof(int)*counter_private); counter += counter_private; } delete[] C_private; } std::sort(C, C + counter); return counter; } 告诉我:

composer update

我正在运行OSX 10.6.8(旧的,我知道)。是什么导致了这个错误?

[Symfony\Component\Process\Exception\RuntimeException] The process has been signaled with signal "11". 跑得很好。

4 个答案:

答案 0 :(得分:3)

signal 11 is a segmentation fault。我猜你的php版本有问题。

你能告诉我们php --version的输出吗?如果它不是最新版本,你可以升级吗?

答案 1 :(得分:1)

您可能有权限问题。尝试以sudo

运行命令
sudo composer update

答案 2 :(得分:1)

我遇到了 models = _context.something .Where(i => i.Amount > 0) .Select(x => new { Amount = x.amount, CurrentPrice = x.GetCurrentPrice(), CurrentRent = x.GetCurrentRent() }) .Select(o => new somemodel { one = (o.CurrentPrice.Value - o.CurrentPrice.Value.Price).ToString(), two = o.CurrentPrice.Value.Price, three = o.CurrentPrice.Value.Price.ToPriceStr("£"), four = o.CurrentRent.Rent * 1200 / o.CurrentRent.Price, five = Convert.ToInt64(o.CurrentPrice.Value) * o.Amount, six = (Convert.ToInt64(o.CurrentPrice.Value) * o.Amount).ToPriceStr("£"), }) .Distinct() .ToList(); 错误,我必须在以下命令下运行:

The process has been signaled with signal "6".

问题就解决了! :)

答案 3 :(得分:0)

brew upgrade subversion
brew link --overwrite subversion

以上命令解决了运行时与Symphony相关的错误

composer global update