Data about my system
R version 3.2.1 (2015-06-18) (World-Famous Astronaut)
Ubuntu 12.04 LTS
$ locate RCurl.so:
~/R/i686-pc-linux-gnu-library/2.15/RCurl/libs/RCurl.so
~/R/i686-pc-linux-gnu-library/3.0/RCurl/libs/RCurl.so
~/R/i686-pc-linux-gnu-library/3.1/RCurl/libs/RCurl.so
/usr/local/lib/R/site-library/RCurl/libs/RCurl.so
$ r -pie '.libPaths()':
[1] "~/R/i686-pc-linux-gnu-library/3.2"
[2] "/usr/local/lib/R/site-library"
[3] "/usr/lib/R/site-library"
[4] "/usr/lib/R/library"
$ R CMD ldd /usr/local/lib/R/site-library/RCurl/libs/RCurl.so:
linux-gate.so.1 => (0xb7734000)
libcurl-gnutls.so.4 => /usr/lib/i386-linux-gnu/libcurl-gnutls.so.4 (0xb7696000)
libR.so => /usr/lib/R/lib/libR.so (0xb7319000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb716f000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb7151000)
libidn.so.11 => /usr/lib/i386-linux-gnu/libidn.so.11 (0xb711d000)
liblber-2.4.so.2 => /usr/lib/i386-linux-gnu/liblber-2.4.so.2 (0xb710e000)
libldap_r-2.4.so.2 => /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2 (0xb70bc000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb70b2000)
libgssapi_krb5.so.2 => /usr/lib/i386-linux-gnu/libgssapi_krb5.so.2 (0xb7075000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb705f000)
libgnutls.so.26 => /usr/lib/i386-linux-gnu/libgnutls.so.26 (0xb6f9a000)
libgcrypt.so.11 => /lib/i386-linux-gnu/libgcrypt.so.11 (0xb6f14000)
librtmp.so.0 => /usr/lib/i386-linux-gnu/librtmp.so.0 (0xb6ef9000)
libblas.so.3gf => /usr/lib/libblas.so.3gf (0xb6c24000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6bf8000)
libreadline.so.6 => /lib/i386-linux-gnu/libreadline.so.6 (0xb6bbe000)
libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb6b82000)
liblzma.so.5 => /usr/lib/i386-linux-gnu/liblzma.so.5 (0xb6b5a000)
libbz2.so.1.0 => /lib/i386-linux-gnu/libbz2.so.1.0 (0xb6b49000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb6b44000)
libgomp.so.1 => /usr/lib/i386-linux-gnu/libgomp.so.1 (0xb6b21000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb6b06000)
/lib/ld-linux.so.2 (0xb7735000)
libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xb6aed000)
libsasl2.so.2 => /usr/lib/i386-linux-gnu/libsasl2.so.2 (0xb6ad1000)
libgssapi.so.3 => /usr/lib/i386-linux-gnu/libgssapi.so.3 (0xb6a94000)
libkrb5.so.3 => /usr/lib/i386-linux-gnu/libkrb5.so.3 (0xb69c5000)
libk5crypto.so.3 => /usr/lib/i386-linux-gnu/libk5crypto.so.3 (0xb699d000)
libcom_err.so.2 => /lib/i386-linux-gnu/libcom_err.so.2 (0xb6997000)
libkrb5support.so.0 => /usr/lib/i386-linux-gnu/libkrb5support.so.0 (0xb698e000)
libtasn1.so.3 => /usr/lib/i386-linux-gnu/libtasn1.so.3 (0xb697c000)
libp11-kit.so.0 => /usr/lib/i386-linux-gnu/libp11-kit.so.0 (0xb696a000)
libgpg-error.so.0 => /lib/i386-linux-gnu/libgpg-error.so.0 (0xb6965000)
libgfortran.so.3 => /usr/lib/i386-linux-gnu/libgfortran.so.3 (0xb6856000)
libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb6837000)
libheimntlm.so.0 => /usr/lib/i386-linux-gnu/libheimntlm.so.0 (0xb682f000)
libkrb5.so.26 => /usr/lib/i386-linux-gnu/libkrb5.so.26 (0xb67ac000)
libasn1.so.8 => /usr/lib/i386-linux-gnu/libasn1.so.8 (0xb6707000)
libhcrypto.so.4 => /usr/lib/i386-linux-gnu/libhcrypto.so.4 (0xb66d1000)
libroken.so.18 => /usr/lib/i386-linux-gnu/libroken.so.18 (0xb66bb000)
libkeyutils.so.1 => /lib/i386-linux-gnu/libkeyutils.so.1 (0xb66b7000)
libquadmath.so.0 => /usr/lib/i386-linux-gnu/libquadmath.so.0 (0xb6624000)
libwind.so.0 => /usr/lib/i386-linux-gnu/libwind.so.0 (0xb65fb000)
libheimbase.so.1 => /usr/lib/i386-linux-gnu/libheimbase.so.1 (0xb65eb000)
libhx509.so.5 => /usr/lib/i386-linux-gnu/libhx509.so.5 (0xb65a4000)
libsqlite3.so.0 => /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xb64ff000)
libcrypt.so.1 => /lib/i386-linux-gnu/libcrypt.so.1 (0xb64ce000)
(Noted: no ??? error as suggested in Got message unable to load shared object stats.so when R starts.)
Problem description & what I tried
I apparently have several RCurl.so objects, but when I try to install.packages('RCurl') into ~/R/i686-pc-linux-gnu-library/3.2/RCurl/, I get the following error:
Error in library.dynam(lib, package, package.lib) :
shared object ‘RCurl.so’ not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘~/R/i686-pc-linux-gnu-library/3.2/RCurl’
The downloaded source packages are in
‘/tmp/user/1001/RtmpVJ2RYv/downloaded_packages’
Running library.dynam() with one of the old RCurl.so's didn't work either.
I also tried R CMD INSTALL [path to downloaded omega-hat source].tar.gz. Same error.
Question
Looking around on the internet there seem to be a lot of people with shared object problems. But I can't tell from those who answered them, what I need to do, or even what help files I need to be reading. I think I've worked through most / every one of the arguments in ?install.packages and ?INSTALL.
What else could be going wrong here?
Related
Running Codeception 2.4.5 in a php Webproject on Ubuntu, where codeception is installed via composer
==== Redirecting to Composer-installed version in vendor/codeception ====
I get the Error
An option named "config" already exists.
While not finding the cause and the reason for this error, my temporary solution was to empty the /vendor/codeception Directory and run
composer install
This fixed the error. But now I made some changes to my tests, and it reappears.
What can be the reason ?
$: which codecept
/usr/local/bin/codecept
Content of codeception.yml
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
config:
Db:
dsn: ''
user: ''
password: ''
dump: tests/_data/dump.sql
Content of tests/acceptance.suite.yml
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser
- \Helper\Acceptance
config:
PhpBrowser:
url: 'http://localhost/suite/www/'
Debug Output (Equal with codecept run, bin/codecept run or vendor/codeception/codeception/codecept run)
w#machine:/var/www/_wbs/wbs_suite[master]$ ./vendor/codeception/codeception/codecept run -vvv
In InputDefinition.php line 232:
[Symfony\Component\Console\Exception\LogicException]
An option named "config" already exists.
Exception trace:
Symfony\Component\Console\Input\InputDefinition->addOption() at /var/www/_wbs/wbs_suite/vendor/symfony/console/Input/InputDefinition.php:222
Symfony\Component\Console\Input\InputDefinition->addOptions() at /var/www/_wbs/wbs_suite/vendor/symfony/console/Command/Command.php:306
Symfony\Component\Console\Command\Command->mergeApplicationDefinition() at /var/www/_wbs/wbs_suite/vendor/symfony/console/Command/Command.php:206
Symfony\Component\Console\Command\Command->run() at /var/www/_wbs/wbs_suite/vendor/symfony/console/Application.php:946
Symfony\Component\Console\Application->doRunCommand() at /var/www/_wbs/wbs_suite/vendor/symfony/console/Application.php:248
Symfony\Component\Console\Application->doRun() at /var/www/_wbs/wbs_suite/vendor/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /var/www/_wbs/wbs_suite/vendor/codeception/codeception/src/Codeception/Application.php:108
Codeception\Application->run() at /var/www/_wbs/wbs_suite/vendor/codeception/codeception/codecept:42
Debug Output in Symfony/Console/Command/Command.php->mergeApplicationDefinition()
mergeApplicationDefinitionArray
(
[help] => Symfony\Component\Console\Input\InputOption Object
(
[name:Symfony\Component\Console\Input\InputOption:private] => help
[shortcut:Symfony\Component\Console\Input\InputOption:private] => h
[mode:Symfony\Component\Console\Input\InputOption:private] => 1
[default:Symfony\Component\Console\Input\InputOption:private] =>
[description:Symfony\Component\Console\Input\InputOption:private] => Display this help message
)
[quiet] => Symfony\Component\Console\Input\InputOption Object
(
[name:Symfony\Component\Console\Input\InputOption:private] => quiet
[shortcut:Symfony\Component\Console\Input\InputOption:private] => q
[mode:Symfony\Component\Console\Input\InputOption:private] => 1
[default:Symfony\Component\Console\Input\InputOption:private] =>
[description:Symfony\Component\Console\Input\InputOption:private] => Do not output any message
)
[verbose] => Symfony\Component\Console\Input\InputOption Object
(
[name:Symfony\Component\Console\Input\InputOption:private] => verbose
[shortcut:Symfony\Component\Console\Input\InputOption:private] => v|vv|vvv
[mode:Symfony\Component\Console\Input\InputOption:private] => 1
[default:Symfony\Component\Console\Input\InputOption:private] =>
[description:Symfony\Component\Console\Input\InputOption:private] => Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
)
[version] => Symfony\Component\Console\Input\InputOption Object
(
[name:Symfony\Component\Console\Input\InputOption:private] => version
[shortcut:Symfony\Component\Console\Input\InputOption:private] => V
[mode:Symfony\Component\Console\Input\InputOption:private] => 1
[default:Symfony\Component\Console\Input\InputOption:private] =>
[description:Symfony\Component\Console\Input\InputOption:private] => Display this application version
)
[ansi] => Symfony\Component\Console\Input\InputOption Object
(
[name:Symfony\Component\Console\Input\InputOption:private] => ansi
[shortcut:Symfony\Component\Console\Input\InputOption:private] =>
[mode:Symfony\Component\Console\Input\InputOption:private] => 1
[default:Symfony\Component\Console\Input\InputOption:private] =>
[description:Symfony\Component\Console\Input\InputOption:private] => Force ANSI output
)
[no-ansi] => Symfony\Component\Console\Input\InputOption Object
(
[name:Symfony\Component\Console\Input\InputOption:private] => no-ansi
[shortcut:Symfony\Component\Console\Input\InputOption:private] =>
[mode:Symfony\Component\Console\Input\InputOption:private] => 1
[default:Symfony\Component\Console\Input\InputOption:private] =>
[description:Symfony\Component\Console\Input\InputOption:private] => Disable ANSI output
)
[no-interaction] => Symfony\Component\Console\Input\InputOption Object
(
[name:Symfony\Component\Console\Input\InputOption:private] => no-interaction
[shortcut:Symfony\Component\Console\Input\InputOption:private] => n
[mode:Symfony\Component\Console\Input\InputOption:private] => 1
[default:Symfony\Component\Console\Input\InputOption:private] =>
[description:Symfony\Component\Console\Input\InputOption:private] => Do not ask any interactive question
)
[config] => Symfony\Component\Console\Input\InputOption Object
(
[name:Symfony\Component\Console\Input\InputOption:private] => config
[shortcut:Symfony\Component\Console\Input\InputOption:private] => c
[mode:Symfony\Component\Console\Input\InputOption:private] => 4
[default:Symfony\Component\Console\Input\InputOption:private] =>
[description:Symfony\Component\Console\Input\InputOption:private] => Use custom path for config
)
)
In InputDefinition.php line 232:
[Symfony\Component\Console\Exception\LogicException]
An option named "config" already exists.
In the codeception Source are several Commands (>10), where the Option 'config' is added to the Command:
new InputOption('config', 'c', InputOption::VALUE_OPTIONAL, 'Use custom path for config')
No Idea, where to reset this and how to avoid the double Option ...
I'm new in Symfony, so excuse my ignorance.
I try to edit date and time of some event using Sonata Admin and 'sonata_type_datetime_picker' field type.
But sonata_type_datetime_picker return wrong time. It gives time for an hour less.
Here's a filled form field screenshot (time is 10:00):
Here's dump of form field value (time is 09:00):
Here's form field options:
->add('datebegin', 'sonata_type_datetime_picker', array(
'format' => 'dd.MM.yyyy HH:mm',
'label' => 'Event begins at...',
'dp_use_current' => false,
'model_timezone' => 'Europe/Moscow'
))
I'd like to note that this error exists only on the server. On my local machine everything is ok.
What could it be?
Thanks a lot in advance!
I've got this problem too. I think that you need to upgrade the software on your server (packet: tzdata etc).
See: https://en.wikipedia.org/wiki/Moscow_Time
If this doesn't help you, you can use this hack:
'view_timezone' => 'Europe/Minsk'
See:
https://en.wikipedia.org/wiki/Time_zone
https://en.wikipedia.org/wiki/UTC%2B03:00
https://en.wikipedia.org/wiki/Minsk (UTC+3)
For example:
->add('endTimestamp', 'sonata_type_datetime_picker', array(
'widget' => 'single_text',
'label' => 'sip_event_end_timestamp',
'dp_side_by_side' => true,
'dp_use_seconds' => false,
'model_timezone' => 'Europe/Moscow',
'view_timezone' => 'Europe/Minsk',
'format' => 'dd.MM.yyyy HH:mm'
)
)
I've resolved all issues with sending data, but receive issue when trying to refund.
I've sent this array to measurement protocol :
'v' => '1',
'tid' => $tid,
'cid' => $cid,
'ti' => '12345', // this transaction exist in google
't' => 'event',
'ec'=> 'Ecommerce',
'ea'=> 'Refund',
'ni'=> '1',
'pa'=> 'refund'
But without any result. So my question is what's wrong? Maybe I need some additional call to measurement system, please advice.
BTW Google hit debugger return 'valid'.
For full refund you need to send the following
'v'='1',
't'='pageview',
'tid'='UA-3333333-8',
'cid'='382537459.1455511043',
'pa'='refund',
'ti'='000000038',
'dp'='admin/order/refund'
for partial refund you need to send
'v'='1',
't'='pageview',
'tid'='UA-3333333-8',
'cid'='382537459.1455511043',
'pa'='refund',
'ti'='000000038',
'dp'='admin/order/refund',
'pr1id' => '24-WB04',
'pr1qt' => 1
Hope it helps!
I've resolve it in this way :
I've sent new transaction with negative val
'v' => '1',
'tid' => $tid,
'cid' => $cid,
'ti' => $order,
't' => 'transaction',
'tr' => '-'.$order_total
Then send event with negative value
'v' => '1',
'tid' => $tid,
'cid' => $cid,
'ti' => $order,
't' => 'item',
'in' => $product['name'],
'ip' => '-'.$order_total,
'ic' => $products['sku'],
'iq' => -1
And it works, transactions disappear from google reports, btw also want to note that I switch script to use GET ( https://www.google-analytics.com/collect?payload_data& ) instead of POST.
I am new to drupal, working on custom module, here is my .install file code, but its not creating table in database when I install module. can anyone please tell me where I am wrong
<?php
function make_application_schema()
{
$schema['make_master'] = array(
'description' => 'Make master table',
'fields' => array(
'make_id' => array(
'description' => 'make id primary key auto increment',
'type' => 'serial',
'not null' => TRUE,
),
'make_name' => array(
'description' => 'Make name',
'type' => 'varchar',
'length' => '100',
'not null' => TRUE,
),
'make_status' => array(
'description' => 'check make status',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
),
),
'primary key' => array('make_id'),
);
return $schema;
}
function make_application_install()
{
}
function make_application_uninstall()
{
}
What is the name of your module? When you are installing and you use hook_schema, you should name your function like this:
my_module.module
In my_module.install
function my_module_schema () ....
And... after that, this should be work :)
In order to install your database 'make_master' you have to call drupal_install_schema with your module name:
drupal_install_schema('make_application');
according to your question I think you have forgot to call drupal_install_schema function. Here are updated make_application_install and make_application_uninstall of your make_application.install.
function make_application_install() {
// Use schema API to create database table.
drupal_install_schema('make_master');
}
function make_application_uninstall() {
// Remove tables.
drupal_uninstall_schema('make_master');
}
NOTE
The tables won't install on module enable, they will only install on first-time install. First, disable the module, then click the 'uninstall' tab, select the module, and uninstall it (note: if your module doesn't have a hook_uninstall() function, it won't appear here - make sure you have added this function). Then, click the list tab, and re-enable your module. This is a first-time install, and the tables will install.
Either that or use the devel module, enable the development block and then use the 'reinstall modules' link in the block.
You can refer this link for more info : https://www.drupal.org/node/811594
I try to install an existing Symfony 2.0 project, and so i run rm -rf vendor, and bin/vendor install.
He can't find DoctrineFixturesBundle, so i update my deps file and i put :
[DoctrineFixturesBundle]
git=https://github.com/doctrine/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
version=origin/2.0
I run again rm -rf vendor/* and bin/vendor install, and i get this error :
The autoloader expected class "Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle" to be defined in file "/home/me/developpement/myproject/app/../vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle/DoctrineFixturesBundle.php". The file was found but the class was not in it, the class name or namespace probably has a typo.
So, in my AppKernel.php i replace :
new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(),
with :
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
because the DoctrineFixturesBundle.php file namespace is Doctrine\Bundle\FixturesBundle.
And now, i get this error :
Fatal error: Class 'Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle' not found in /home/me/developpement/myproject/app/AppKernel.php on line 21
What should i do to make it work ?
Edited to add:
This is my autoload.php :
$loader->registerNamespaces(array(
'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
'Sensio' => __DIR__.'/../vendor/bundles',
'JMS' => __DIR__.'/../vendor/bundles',
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib',
'Doctrine' => __DIR__.'/../vendor/doctrine/lib',
'Monolog' => __DIR__.'/../vendor/monolog/src',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Metadata' => __DIR__.'/../vendor/metadata/src',
'Gedmo' => __DIR__.'/../vendor/gedmo-doctrine-extensions/lib',
'Doctrine\\Common\\DataFixtures' => __DIR__.'/../vendor/doctrine-fixtures/lib',
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../vendor/doctrine-migrations/lib',
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib',
'Knp\Component' => __DIR__.'/../vendor/knp-components/src',
'Knp\Bundle' => __DIR__.'/../vendor/bundles',
));
Did you check your autoload.php? This is where you tell Symfony which Namespace is located in a specific directory.
The namespace is probably not auto loaded. Check this vendor\composer\autoload_namespaces.php file and make sure it contains the following code.
'Doctrine\\Bundle\\FixturesBundle' => array($vendorDir . '/doctrine/doctrine-fixtures-bundle'),